aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci
AgeCommit message (Collapse)AuthorFilesLines
2017-06-30Define download_images.sh and check_os.sh as scriptsCédric Ollivier2-3/+2
It also updates all python scripts which call check_os.sh. The former healthcheck.sh is removed. No shell script must be executable in git. Change-Id: If4e8deb50ebd635a9091e3bb79ef61c07b9660dc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-30Define console_scriptsCédric Ollivier2-5/+12
Only prepare_env.py and run_tests.py remain executable to avoid breaking the gate. As soon as the jenkins jobs are updated to run them from $PATH, tox will be updated to protect against chmod a+x py files. Dockerfile will be simplified as well. Change-Id: Iac1a7ceb6b344e800177226ea39919826f6d3735 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-30Update securityscanning section in testcases.yamlCédric Ollivier1-1/+1
It follows the next updates of the securityscanning package: - Define config.ini as data_file [1] - Define security_scan console script [2] [1] https://gerrit.opnfv.org/gerrit/36635 [2] https://gerrit.opnfv.org/gerrit/36771 Depends-On: I54ffa61f4bcd366c185596056b49e492c88cc78b Change-Id: I342c00392bb68aad704a89060841eac665e91bdb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-29Merge "SNAPS tests now support offline testing."Jose Lausuch3-20/+13
2017-06-29Merge "Fix refstack_defcore"Jose Lausuch1-1/+0
2017-06-28Leverage on parser python packages in DockerfileCédric Ollivier1-1/+0
It also stops calling parser_install.sh. This file is replaced by the 2 new requirements in docker/thirdparty-requirements.txt: - tosca-parser - heat-translator Change-Id: Ic9dcdd81df9800fc8e559a07f9c100a20bea2290 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-28Update paths in functest/ci/testcases.yamlCédric Ollivier1-3/+3
It follows the changes switching to python packages. It shall be noted that several cmds could be enhanced. Change-Id: I8cf3595d1e8044b650deb4ec733bf973c0bf1b3f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-28Fix refstack_defcoreLinda Wang1-1/+0
As refstack-client is reinstalled only by the shell setup_env, the path of .venv and .tempest have been changed. Change-Id: Id50d0c6384295c2448705961942104abbd799b9b Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-27SNAPS tests now support offline testing.spisarski3-20/+13
Images by type (cirros, centos, ubuntu) can now have the download URL be overridden, told to leverage a local file, or have custom configuration when using the snaps.openstack.tests.openstack_tests.py image settings helper functions. JIRA: FUNCTEST-809 Change-Id: I790094a7a26eb5a55f53d6e875c658dc5e7ac2f9 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-27Updated fds testcase criteriajuraj.linkes1-1/+1
Initially, we only executed fds testcase on odl_l2 fdio scenarios. Now we're extending this to all odl fdio scenarios. Change-Id: Ieb2454f02847361fdf3274b11f20a996a916ad90 Signed-off-by: juraj.linkes <jlinkes@cisco.com>
2017-06-27Merge "Add sfc in thirdparty-requirements.txt"Jose Lausuch1-1/+0
2017-06-27Merge "Remove obsolete repos in functest/ci/config_functest.yaml"Jose Lausuch1-4/+0
2017-06-27Add sfc in thirdparty-requirements.txtCédric Ollivier1-1/+0
Now it can be installed via python package [1] and then be listed in thirdparty-requirements.txt. [1] https://gerrit.opnfv.org/gerrit/#/c/36445/ Change-Id: Iae7482865917e51a96a180b0a987ab0ff26a0190 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-27Remove Tempest repo and use the one created by Refstackjose.lausuch1-1/+1
Refstack clones the repo in /home/opnfv/.tempest. Rally can use that repo which is checked out to the REFSTACK_TAG=15.0.0 This way, we avoid having twice the same files. Change-Id: I9b05d29b1c9bdf3d10539b771d0d20abb2b7cc37 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-27Merge "enable doctor-notification test case"Morgan Richomme1-1/+0
2017-06-27Merge "Don't display functest report for single test cases"Jose Lausuch1-10/+12
2017-06-27enable doctor-notification test caseRyota MIBU1-1/+0
Change-Id: If2b6b46f3f192f58636c55f3ddc9e80b9e22be3c Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-06-26Remove obsolete repos in functest/ci/config_functest.yamlCédric Ollivier1-4/+0
It completes "Use directly OpenStack project packages" [1]. kingbird becomes a dependency. [1] https://gerrit.opnfv.org/gerrit/#/c/36125/ Change-Id: I2cb9e3a2146a2b2bbae89dde9917c5ace70048a6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-26Merge "Enable vping offline"Jose Lausuch1-3/+3
2017-06-26Don't display functest report for single test casesjose.lausuch1-10/+12
When executing a single test case, it is not neccessary to show duplicated information about the result of the test case. The functest report only makes sense when running multiple tests. e.g. functest testcase run vping_ssh The report is still showed when doing: functest testcase run all Change-Id: I92d97d6111ecd9484a14c72cf4bb0c2bbe3ae6bf Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-24Merge "Remove calls to deployment handler in prepare env"Jose Lausuch1-2/+0
2017-06-23Merge "Enable https insecure for functest"Jose Lausuch1-9/+15
2017-06-23Enable vping offlineLinda Wang1-3/+3
Images used are changed to leverage local file. Change-Id: I42a89c8c33054a23e226d22358fe268770986a76 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-22Remove calls to deployment handler in prepare envjose.lausuch1-2/+0
The reason is that some installers have changed the mechanism and the adapters are not valid any more and the method to access the deployment information fails Fuel -> MCP Compass -> Containers This shall be deactivated to avoid errors in CI until the new installer adapters are implememnted. Change-Id: I995b914bf55d5da76f27e715d170dd22e84d677c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-21Fix command in prepare env to execute check_os.shjose.lausuch1-2/+2
[1] introduced a bug when adding "sh" to the call. There is no need to use sh or bash in the command string. [1]: https://gerrit.opnfv.org/gerrit/#/c/36163/ Change-Id: I9ce443721b69945a4a749da0caa6c008cc8ca284 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-21Enable https insecure for functestLinda Wang1-9/+15
1. When running in https environment, functest should provide an option to disable server certificate verification. 2. For check_os.sh, the param "--insecure" is passed to openstack cli, e.g.. openstack --insecure server list. JIRA: FUNCTEST-828 Change-Id: Ie2c5b14152c92e87318fcfaf8b234f59275eb6b8 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-20Change barometer module to loadJose Lausuch1-1/+1
As [1] is merged, the way to call the barometer test case is different as it is hosted in Barometer repo instead of Functest. The former files are also simply removed too. baro-tests is no longer a requirement. It is installed as any third party project. [1] https://gerrit.opnfv.org/gerrit/#/c/35927/ Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Iea56b48fa781600eb3a6ac74662ea8a29f556f99 Signed-off-by: Jose Lausuch <jose.lausuch@ericsson.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-20Remove all references to /home/opnfv/repos/functestCédric Ollivier3-37/+20
It also removes relative (and incomplete) references which could be defined in modules instead of this global configuration. Change-Id: Ie20dc3547e49b6224aa8100cd380d37b87ece5a9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-06Merge "Remove call to fetch_os_creds.sh"Jose Lausuch1-34/+10
2017-06-06Merge "Make tempest user_password more complicated"Jose Lausuch1-1/+1
2017-06-06Remove call to fetch_os_creds.shjose.lausuch1-34/+10
After [1], the openstack credentials are provided to Functest as a volume directly from CI. The same has to be done manually. Functest doesn't need the script fetch_os_creds.sh any longer. [1] https://gerrit.opnfv.org/gerrit/#/c/35199/ Change-Id: I0883ad7b248526cfe9df3fde984345bd41869e82 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-06Merge "Enable tempest offline by use_custom_images=True"valentin boucher3-4/+4
2017-06-02Make tempest user_password more complicatedLinda Wang1-1/+1
For some SUTs, the password for creating user is required to contain at least 8 characters and three types of characters for security. Change-Id: Iea770397fc6781d24fbfd0798e2da6bd65293866 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-01Use CONST to retrieve db_url rather than getter functionLinda Wang1-3/+14
1. Remove get_db_url() 2. If TEST_DB_URL declared in env, update test_db_url in config_functest.yaml file during env preparation 3. No matter TEST_DB_URL declared in env or not, Result_DB = CONST.__getattribute__("results_test_db_url") JIRA: FUNCTEST-763 Change-Id: I20da7ef98bbcc56731e0ff7061b05c1dde6cbfc3 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-31Enable tempest offline by use_custom_images=TrueLinda Wang3-4/+4
1. The image cirros or testvm is required for tempest.conf to run tempest testcases. 2. If no images are created in openstack, which just match the img_name_regex (default="^.*(cirros|testvm).*$"), it is needed to download cirros image online. Change-Id: Ib5a38a0135b3dd80ad685e33ed35b7b6135b9c87 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-30Merge "Define create_snapshot() and clean() in TestCase"Cedric Ollivier4-66/+23
2017-05-30Define create_snapshot() and clean() in TestCaseCédric Ollivier4-66/+23
They replace the former calls in run_tests which are not suitable for all test cases. Now any test case can define how to clean its resources. If the snapshot cannot be created, the test case is considered as failed. Only a message is printed if any failure during cleaning. It also defines a new class called OSGCTestCase useful for test cases which don't clean their OpenStack resources. All test cases located in opnfv_tests/openstack inherit from it to keep the global behavior unchanged. It also deletes exit instructions in openstack_clean and openstack_snapshot, removes clean flags in testcases.yaml and updates the related utils. All Docs are modified as well. JIRA: FUNCTEST-438 Change-Id: I8938e6255708012380389763a24059ace4ce45d8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-30Merge "Chmod 755 functest/ci/download_images.sh"Cedric Ollivier1-0/+0
2017-05-30Merge "Switch shebangs to /usr/bin/env python"Cedric Ollivier1-1/+1
2017-05-29Chmod 755 functest/ci/download_images.shCédric Ollivier1-0/+0
It's designed to be called via Jenkins and was fixed by the next rule: $ find ${FUNCTEST_REPO_DIR} -name "*.sh" \ |xargs grep \#\! |cut -d\: -f 1 |xargs chmod -c 755 Change-Id: I186aa9c3227dbac4e80f9a463632efdb2512020e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-29Merge "Re-Enable Promise testcases"Morgan Richomme1-1/+0
2017-05-28Switch shebangs to /usr/bin/env pythonCédric Ollivier1-1/+1
It modified the shebang to /usr/bin/env which is considered as more flexible. Change-Id: I9c8cdb4243d41a83d524499cc91060d3700e008b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-23Bugfix: fix two typosLinda Wang1-1/+1
1. In run_tests.py, test case name is shown before running: logger.error(kwargs['test']) -> logger.info(kwargs['test']) 2. In tempest.py, Verication -> Verification Change-Id: I117838cdb4b0f920c4cf855645d910e623e06868 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-22Merge "Delete line breaks before binary operator"valentin boucher1-2/+3
2017-05-22Merge "Print stack when catching exceptions in run_tests.py"valentin boucher1-7/+8
2017-05-21Delete line breaks before binary operatorCédric Ollivier1-2/+3
They are considered as warnings by flake8. Change-Id: I84ffedc41c24133aa0d45e312bb095526aa1095b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-19Activating SDNVPN test cases for master.Tim Irnich1-1/+0
Change-Id: I4ba995d412bfeadc708d5a3c643576097867d1ac Signed-off-by: Tim Irnich <tim.irnich@ericsson.com>
2017-05-19Re-Enable Promise testcasesGerald Kunzmann1-1/+0
Change-Id: I438c8f5ad9a517a19b675205964a427e8b57ac44 Signed-off-by: Gerald Kunzmann <kunzmann@docomolab-euro.com>
2017-05-19Merge "Define Runner class"Jose Lausuch1-202/+202
2017-05-19Merge "Move few local ODL SFC confs to global functest confs"Morgan Richomme2-0/+14