aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-06-20Use directly OpenStack project packagesCédric Ollivier3-42/+22
It stops cloning via git for the next OpenStack projects: - networking-bgpvpn - rally - tempest - kingbird - refstack-client It should be noted that refstack_client's setup_env is not designed to run in Alpine. Change-Id: I00d17912cad39a0c872d317317e98a78ca9ded2c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-20Change barometer module to loadJose Lausuch10-79/+8
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 Ollivier25-163/+138
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-19Stop getting git data from functest dirCédric Ollivier4-57/+0
Functest is no longer a git clone. Change-Id: Ieaceacaa820e9a7a3c64e8c1fbd2a8a9321f234d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-19Clean requirements.txtCédric Ollivier1-11/+5
It removes all requirements which are not detected by pipreqs [1] except: - robotframework-httplibrary - robotframework-requests==0.4.7 - robotframework-sshlibrary==2.1.3 They seem indirectly required for the next ODL suites: old_netvirt and fds. It also defines pbr as requirement and orders dnspython3 conditions. [1] https://github.com/bndr/pipreqs Change-Id: Idcd01296e5a5862ff8528dc083468b5c4905c9f9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-19Remove module references __file__Cédric Ollivier2-4/+6
It allows functest to be run directly from a zip file [1]. [1] https://setuptools.readthedocs.io/en/latest/setuptools.html#setting-the-zip-safe-flag Change-Id: I596a71e8cf2bed6dd79655bd5beeb047876a188c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-15Merge "Update Suite details pushed to DB"Morgan Richomme2-6/+13
2017-06-14Merge "Update (test-)requirements.txt"Jose Lausuch3-46/+40
2017-06-14Update Suite details pushed to DBCédric Ollivier2-6/+13
It now reports stats and dumps stream into details. By the way, it fixes a bug when serializing the former details. Change-Id: Idd388708071ca3185e5a07bc7e977f2d9837dc95 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-13Merge "Refactor core VNF class"valentin boucher12-581/+594
2017-06-12Update (test-)requirements.txtCédric Ollivier3-46/+40
It updates requirements.txt and test-requirements.txt according to OpenStack stable/ocata. It removes useless copyrights. Change-Id: I603b3030df231f210af47232f20aef85a08e20ba Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-08Merge "Leverage on pbr (Python Build Reasonableness)"Jose Lausuch9-123/+63
2017-06-07Merge "Configure the param auth_version in tempest.conf"Cedric Ollivier1-0/+5
2017-06-07Bugfix: fix the return valueLinda Wang2-0/+2
openstack_snapshot and openstack_clean should return 0 when they are run successfully. JIRA: FUNCTEST-835 Change-Id: I3fcc24ab985de382e0e59b129cb467d66a9a0de2 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-07Leverage on pbr (Python Build Reasonableness)Cédric Ollivier9-123/+63
pbr can inject requirements into the install_requires, tests_require and/or dependency_links arguments to setup. They were previously falsy unset. It also supports conditional dependencies which can be added to the requirements (e.g. subprocess32; python_version=='2.7'). Then requirements.py3.txt is removed. It also removes functest/cli/setup.py which seems false and obsolete. Dockerfile is updated as well. One temporarily link is created because of several hardcoded paths in Functest. Change-Id: I14b3b25e07fbac490dd1d5ce943ec02c5b11f242 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-07Configure the param auth_version in tempest.confLinda Wang1-0/+5
1. If the auth_url is "https://192.168.31.222:443/identity-admin/v3", the auth_version in tempest.conf is supposed to be "v3", not "id". 2. For rally 0.8.1. it is a bug when obtaining the auth_version, please see [1], which has been fixed in rally master. [1]: https://review.openstack.org/#/c/468599/ Change-Id: Ia7474938a741a0954f17f7c7650544dbc0a28853 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-06Merge "Remove call to fetch_os_creds.sh"Jose Lausuch7-204/+34
2017-06-06Merge "Make tempest user_password more complicated"Jose Lausuch1-1/+1
2017-06-06Merge "Remove a former action listed in framework.md"Jose Lausuch1-2/+1
2017-06-06Merge "Add the copyright header to decorators.py"Jose Lausuch1-0/+7
2017-06-06Merge "Use PrettyTable to show functest env"Jose Lausuch1-14/+13
2017-06-06Merge "Update setuptools version to 30.0.0"Jose Lausuch2-2/+2
2017-06-06Remove call to fetch_os_creds.shjose.lausuch7-204/+34
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-06Update setuptools version to 30.0.0Jose Lausuch2-2/+2
Change-Id: I318446a873a7362a1b7e53b00e9e4daf658c3abb Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-06Refactor core VNF classMorgan Richomme12-581/+594
- Simplify processing - Implement run method to inherit testcase methods - Add unit tests - Fix all pylint issues It also obliges vnf and its uts to be rated 10/10 by pylint. JIRA: FUNCTEST-830 Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I8dd24eea55089277c9e5b2b51fb14dc377f2fcaf Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-06Merge "Update setuptools version to 35.0.2"Jose Lausuch2-2/+2
2017-06-06Merge "Enable tempest offline by use_custom_images=True"valentin boucher3-4/+4
2017-06-05Remove a former action listed in framework.mdCédric Ollivier1-2/+1
This documentation was already updated to take criteria into account. Change-Id: I5d795e6dcbda6dec15b03debb3f3b8bce073d474 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-05Add the copyright header to decorators.pyCédric Ollivier1-0/+7
Change-Id: Ie7c60b8ca174c9c95920d0b7ef73b8eff60ae7e1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-04Use PrettyTable to show functest envCédric Ollivier1-14/+13
Change-Id: I64800ae7738e0f4215c4c2948967cf60c005032e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-02Use constants in odlLinda Wang1-3/+5
Change-Id: I134b0efd3dd0faec389087a4dac59de09eae087e Signed-off-by: Linda Wang <wangwulin@huawei.com>
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-02Update setuptools version to 35.0.2Linda Wang2-2/+2
Docker build failed in CI due to the low version of setuptools(3.3) Change-Id: I5e9b15f59e2cc5e78f5ab1b30fd1525b667f09fb Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-02Merge "Use CONST to retrieve db_url rather than getter function"Jose Lausuch6-78/+74
2017-06-01Merge "Added unit tests for the connection_check test case."Morgan Richomme7-14/+96
2017-06-01Use CONST to retrieve db_url rather than getter functionLinda Wang6-78/+74
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-31Added unit tests for the connection_check test case.spisarski7-14/+96
JIRA: FUNCTEST-813 Change-Id: Ib851a3942e181b1a91cad695504613868a340d15 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-31Return pylint status code for modules rated 10/10Cédric Ollivier1-3/+16
It ensures that no pylint errors or warnings can be introduced by a new change. The first pylint call (to report issues) will be safely removed when all pylint errors and warnings are fixed in functest. Change-Id: I9ff7b7d5a7738c3d6d769267a78c28828c3e4523 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.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-30Fix a typo in framework.mdCédric Ollivier1-8/+8
It completes [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/35551/ Change-Id: I7b12cf48d9f47665f5d6a005d3cb8d448946409d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-30Fix a typo in docstringCédric Ollivier1-1/+1
Change-Id: Ie03004474658bd3317a9be8a6b00f5bda1133f2c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-30Merge "Define create_snapshot() and clean() in TestCase"Cedric Ollivier17-118/+158
2017-05-30Merge "vping&snaps_xxx support not_hugepage_supported pod"Serena Feng2-2/+2
2017-05-30Define create_snapshot() and clean() in TestCaseCédric Ollivier17-118/+158
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 "Fix one email address in INFO"Cedric Ollivier1-1/+1
2017-05-30Merge "Switch shebangs to /usr/bin/env python"Cedric Ollivier12-12/+12
2017-05-30Merge "Export the Pylint results via pylint.out"Cedric Ollivier2-2/+4
2017-05-30Merge "Rename framework.html to index.html"valentin boucher1-0/+0
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>