aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
AgeCommit message (Collapse)AuthorFilesLines
2018-01-21Partially rewrite test_run_tests.pyCédric Ollivier1-3/+1
It mainly fixes pylint issues and leverages on decorators. It should be noted that run_tests.py is not fully covered (see xtesting requirements). Change-Id: I114b67c3c5bfe61d72d004829af513e2014ad8b8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-01-21Fully test and cover functest/ci/tier_*Cédric Ollivier1-1/+6
It also fixes check_deployment.py and ci unit tests which were wrong when testing exceptions. Now ci modules are rated 10/10 and fully covered. Change-Id: I30dca491b44cc54aa1abc0d0433c00b4dcabfdc4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-01-20Configure password for the user in vnfLinda Wang1-1/+1
For some SUTs, the password for creating user is not allowed to be the same as user name, and some even is required to contain at least 8 characters and three types of characters for security. It also turns yamllint warnings into errors and fixes the remaining warnings. Change-Id: Icf25a7b9ff1c8cee55899198f1e519c9209877ff Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-12-14Improve the pylint score of functest-coreLinda Wang1-0/+3
It also modifies the file list to ensure the rating of ci modules. Change-Id: Ia1e414be5364cb3da3d54882db428024ed6bd99f Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-12-13Fix yamllint errors in functest/apiLinda Wang1-1/+1
JIRA: FUNCTEST-897 Change-Id: I49c7c87dfded000197fe6451fb96dc0749f2ceb0 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-12-12Ensure that all energy modules are fully coveredCédric Ollivier1-0/+2
Change-Id: I501a404d1202cc92da5e62dbf9db2aa453ffd324 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-12-12Add python3 support in cliCédric Ollivier1-0/+1
Change-Id: I222fde91cf236a272176bc2d9ec6732f98b76141 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-12-12Add python3 support in energyCédric Ollivier1-0/+3
It also converts Exception to str when expected. All energy modules are also listed in files rated 10/10 by pylint. Change-Id: Id382d60eb35f50c98b15423f9559a920ce5dac62 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-12-12Add python3 for Functest utilsCédric Ollivier1-1/+1
It also fixes test_utils RegexMatch and SubstrMatch. Change-Id: I124aa7d0c4110dcd2f50220aae7ba9b299799e93 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-12-11Add Python3 support in functest/ciCédric Ollivier1-0/+1
Change-Id: If13bfaa196b8dfab1e83feb28c5a4719c7acd8c7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-12-11Fix yaml format errors in vnfCédric Ollivier1-12/+5
All Rally yaml files are skipped because they leverage on jinja2. Now last errors are in functest/api directories [1]. [1] https://jira.opnfv.org/browse/FUNCTEST-897 Change-Id: I4d6c9b3b7c1f3602bd51c9cf7e1c5babf581ab82 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-12-06Fix the yamllint errors in functest/ciLinda Wang1-0/+3
And also, remove the params "tempest_use_custom_images" and "unique_names" of vping, rally and tempest. Change-Id: Ic4243ef2f5e965910e5befa87db8d585cad34fa2 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-12-04Create a tox env to check yaml filesCédric Ollivier1-0/+14
It also fixes all testcases config files. Change-Id: I81a6ffb8b7acf4239c79129dc842e283d3d32b35 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-29Force Framework to be fully coveredCédric Ollivier1-1/+14
Change-Id: Ida120fe28ea7860758a218189d905bebee2e8ba5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-15Remove the tox venv patcharm64Cédric Ollivier1-8/+0
It's now useless as Jenkins jobs call build.sh which modifies all Dockerfiles for both architectures. build.sh allows building private images as opposed to this former tox entry which only take opnfv into account. Change-Id: I21e2e5303b4310e053cf013cb7f0e0c4532d5db5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-09Remove the former DockerfileCédric Ollivier1-10/+1
opnfv/functest had been split into multiple containers based on Alpine (See Docker Slicing [1]) during Euphrates. As ARM is being switching to them, we can safely remove the related files. [1] https://git.opnfv.org/functest/tree/docs/com/pres/dockerslicing/dockerslicing.md?h=stable/euphrates Change-Id: I30294a94cc742ba80a7bc4f35db9330240385bb0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-09Patch Functest docker images for ARMDelia Popescu1-0/+8
A new tox env is defined to ease patching all Dockerfiles for ARM. This env will only patch the Dockerfile related to functest-core when the manifests are published. Jenkins jobs can simply apply the next command: $ tox -e patcharm64 Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Icf69e27c1da95a721ebf67d5ce190c9b8cefce0a Signed-off-by: Delia Popescu <delia.popescu@enea.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-05Update Functest to OpenStack stable/pikeCédric Ollivier1-2/+2
It updates setup.py, (test-)requirement.txt and upper-constraints.txt according to OpenStack requirements [1]. It disables all Features testcases as they are not synchronized with OpenStack stable/pike yet [2]. The docker functest-parser is simplified as it can be based on functest-core as both Functest and Parser leverage on OpenStack stable/pike. ODL_TAG and REFSTACK_TAG variables are set to master again. [1] http://git.openstack.org/cgit/openstack/requirements/log/?h=stable/pike [2] https://wiki.opnfv.org/display/functest/Requirements+management Change-Id: I23fa84f35244c1f4026abd89414b99576f042ee4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-10-16Update requests to 2.13.0 in virtualenvsCédric Ollivier1-4/+3
It completes "Force requests===2.13.0" [1] which only updated all Docker files. [1] https://gerrit.opnfv.org/gerrit/#/c/45077/ Change-Id: I416e01d86e82eb9e267a31463e75b6a4e11485c4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-08-23Ensure that aarch64 patch can be appliedCédric Ollivier1-1/+10
It simply creates a new testenv. Change-Id: I2675d1b3240a59fa985bd91f979efe1896c3d605 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-08-17API proposal for functestLinda Wang1-0/+1
1. Propose a basic framework for API 2. And these functions have been realized: 1) Show environment 2) Prepare Environment 3) Show credentials 4) List all testcases 5) Show a testcase 6) List all tiers 7) Show a tier 8) List all testcases within given tier JIRA: FUNCTEST-843 Change-Id: Ib961446708077b56465eda0052f6d38806b62594 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-10Add upper-constraints.txt for FunctestCédric Ollivier1-2/+1
It completes OpenStack's upper-constraints.txt by adding Functest's requirements. This file is temporarily duplicated to allow building the containers. It will be removed via a next patch when this patch is merged. openbaton-cli could be updated (e.g. 3.2.8). Change-Id: I26de2d22f9e8973c5a58c3cc5129142fa628e57a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-04Fix upper-constraints.txt urlCédric Ollivier1-1/+1
Change-Id: I44f7b476d56bcd7cdac4ba0e5c85717bd41f7e45 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-02Apply restrictive file permissionsCédric Ollivier1-1/+12
It conforms with [1] by creating a new venv which checks the unix permissions. As jjobs call Functest console scripts [2], all perms can be 644. Dockerfiles are updated as well. [1] https://security.openstack.org/guidelines/dg_apply-restrictive-file-permissions.html [2] https://gerrit.opnfv.org/gerrit/#/c/36805/ Depends-On: I9209e6efa1b493e24135402a46df72aaa14115d1 Change-Id: I31bc7f12b775928845e23b6b40288b0a50b87219 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-26Take OpenStack's constraints into accountCédric Ollivier1-0/+3
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-20Change barometer module to loadJose Lausuch1-1/+0
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-13Merge "Refactor core VNF class"valentin boucher1-6/+2
2017-06-07Leverage on pbr (Python Build Reasonableness)Cédric Ollivier1-7/+3
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-06Refactor core VNF classMorgan Richomme1-6/+2
- 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-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-30Merge "Export the Pylint results via pylint.out"Cedric Ollivier1-2/+3
2017-05-29Move api out of the docs directoryCédric Ollivier1-1/+1
The docs directory can only contain static documentation. All generated html files should be pushed as artifacts at the end of functest-verify-master. Change-Id: I17aeab5687b9eb0c7aaf21cbc6b41e8f321c2e63 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-28Export the Pylint results via pylint.outCédric Ollivier1-2/+3
It allows integrating Pylint with Jenkins (pylint.out can be defined as the "XML filename pattern" after installing the Violations plugin [1]). It's considered as fine to locally disable warnings such as docstrings in unit tests. No pylint rcfile is defined for only two options. Tox still prints the partial results in console to be interpreted by users. The persistent flag is removed to conform with nosetests args. [1] https://wiki.jenkins-ci.org/display/JENKINS/Violations Change-Id: I21662b27c8e4b61e65c4c3f5aab968e3e7dd6d90 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-22Update test_vnf.py to support py3Cédric Ollivier1-1/+1
Change-Id: I86dc83b1fc9205f7b8209d63e18439a7e05c646b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-22Test decorators.py in testenv:py35Cédric Ollivier1-0/+1
Change-Id: I91d5b04f105cf41bef799eccdaabf89cb0440747 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-22Turn Sphinx warnings into errorsCédric Ollivier1-1/+1
Change-Id: Iefc223a9fa6dbc4e9476aca84b3df4304058862b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Check python3 support when running toxCédric Ollivier1-4/+13
It only tests testcase, feature and odl which supports python3. It creates a temporary requirements.py3.txt which will be safely removed when we stop using subprocess32 [1] and robotframework-sshlibrary. [1] https://jira.opnfv.org/browse/FUNCTEST-827 Change-Id: I92021dcb4aca03f64e2441e3bcff34675a3ae879 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Generate api doc when running toxCédric Ollivier1-1/+6
Change-Id: I78b18981d9f916e6174d44c6280706e404c7c9f2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Analyse code when running toxCédric Ollivier1-1/+9
It filters all messages to ease reading the report. Change-Id: Iab55bc71cb6026edde29fb9f084a07b2dedf564f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Check style when running toxCédric Ollivier1-1/+7
Change-Id: Idedf823a1572c40692e445694461b4196b75275d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-20Tox utility to run unit testsashishk19941-0/+14
Now run_unit_tests.sh only calls tox to allow merging. It can be safely deleted as soon as the related jjob is updated. It also removes test_logging.ini. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I934f4ac739d99d0cb29bea8c6aac6d6780b30901 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>