summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-06-27Add sfc in thirdparty-requirements.txtCédric Ollivier4-7/+3
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-26Add securityscanning in thirdparty-requirements.txtCédric Ollivier3-2/+1
Now it can be installed via python package [1] and then be listed in thirdparty-requirements.txt. [1] https://gerrit.opnfv.org/gerrit/#/c/36437/ Change-Id: Ib9489de1f46993fa9fe35485fa95baf003d44974 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-26Remove obsolete repos in functest/ci/config_functest.yamlCédric Ollivier4-6/+3
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-26Take OpenStack's constraints into accountCédric Ollivier3-4/+9
upper-constraints.txt contains a pinned list of the entire set of transitive requirements for OpenStack [1]. We will add OPNFV's constraints as well for OPNFV projects and their requirements when they are ready. [1] https://specs.openstack.org/openstack/openstack-specs/specs/requirements-management.html Change-Id: I2e23584f957e4de191341800d24c8b2776ef9143 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-21Define logger as Feature instance attributeJose Lausuch2-4/+37
It allows any Feature subclass to print warning messages in console and debug messages in a dedicated file. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ic5b1b1184c16cf50f0baadc3904075d0acdf3c6d Signed-off-by: Jose Lausuch <jose.lausuch@ericsson.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-21Install opera via python packageCédric Ollivier3-6/+1
It should be noted that the other OPNFV projects cannot currently be installed via python packages for many reasons (e.g. binaries not included, no setup.py...). Change-Id: Iaf1c960471b2dd8916eb1a49cb46f50b7dfb9b88 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-21Install OPNFV sdnvpn via python packagejose.lausuch3-10/+1
Change-Id: Ibcaef4eb8658bfe7d1900a8cd6a7b48740524526 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-21Stop personalizing the common DockerfileCédric Ollivier2-18/+2
Any personal config can be applied to another Dockerfile which inherits from this one. Change-Id: Ifb77c0d5821c2b40f2f3e1d6adee6f83d0cd0b29 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
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