aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
AgeCommit message (Collapse)AuthorFilesLines
2022-01-04Remove ansiblelint as tox entryCédric Ollivier1-6/+1
It false asks for ansible in any XtestingCI child's test requirements. Change-Id: I6cff0ba900360c97db64f519ef4055e2e18cc28c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit ee4aeafa6a7073c90e0496fb9efe147375197caf)
2021-11-09Leverage latest pylint featuresCédric Ollivier1-1/+1
It adds encoding in all open call and leverage f-strings. Change-Id: I70ccd2bfcadae44929d5874f98fa3bf4ff644488 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 17739d718901a10f7ec0aaf9a6d53141294a347d)
2021-10-08Update Xtesting to stable/xenaCédric Ollivier1-1/+1
Change-Id: Ice25cd175566451faa0dc5f6efc8f2bd27c6a952 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-08-11Update to Alpine 3.14Cédric Ollivier1-10/+10
Change-Id: Id0b5ecc341315b0010a4e52dcb54ebe7bb37c5f7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-05-25Fix remaining py37 testenvVincent Danno1-1/+1
Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I7847ac6f9f642fb64097a172bd4e8396040f8aa7
2021-02-09Update ansible-lint verificationCédric Ollivier1-1/+1
Change-Id: I1f0e2a4dc3d2410a409c990605a9086a5776ca34 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-12-10Use pip==20.2.4 in tox venvCédric Ollivier1-0/+1
pip 20.3 is disruptive and would lead to big changes in stable branches. Change-Id: Ifc4abd2d1f28bfb63ba66796e1690b398c1e4760 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-08-05Add MTS driverVincent Mahe1-1/+1
It creates a new container xtesting-mts to avoid increase core container size. Signed-off-by: Vincent Mahe <v.mahe@orange.com> Change-Id: I59544023e1235747e140a442815778a133bf6acf
2020-06-07Drop py27Cédric Ollivier1-1/+1
We can no longer support py27 due to rally or bashate here. Change-Id: I716d388df227b9cb54c9c71b072c7aa01577f3fe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-01-04Update Alpine to 3.11Cédric Ollivier1-10/+10
It also updates Python to 3.8 (default version). https://alpinelinux.org/posts/Alpine-3.11.0-released.html Change-Id: I1401c37adb71a6f7d37bd8724b93a058ecb68557 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-12-07Disable false ansible list warningsCédric Ollivier1-1/+1
git commit has to be executed via shell module [1]. [1] https://github.com/ansible/ansible/issues/50334 Change-Id: I0ad8abe12bd592cb2a790ec3373452d46573776a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-08-03Run perm when verifying changesCédric Ollivier1-1/+1
umask is now correct in lf-virtual1 (0022). Change-Id: I073a48eddaf1e26bcb3bbeeb232eb69d4a03a124 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-07-27Fix remaining py36 testenvCédric Ollivier1-1/+1
Change-Id: Ifa6bfc7beb992cc9094435b734bbca68fcc5a931 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-07-26Switch to Python 3.7 and Alpine 3.10Cédric Ollivier1-10/+10
It also allows building docs as doc8 is broken due to latest OpenStack's upper-constraints. pylint is updated to 2.3.1 (lastest py3.7 version) It disables perm as umask is currently false on lf-virtual1. Change-Id: I8568eeafa44c5dba72e206c532c1f50e3ad547f2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-07-11Adding first patch for behave featureDeepak Chandella1-1/+2
Change-Id: Ic975c301103b49cdec2bd26746b708388f21e892 Signed-off-by: Deepak Chandella <deepak.chandella@orange.com>
2019-06-14Remove energy modulesCédric Ollivier1-2/+0
The public recorder api has been down for a while. Change-Id: Ib879ef3b9ef56338c10cfcdeb733451c6f7573a6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-05-25Run bandit when verifying changesCédric Ollivier1-0/+4
It reports only MEDIUM issues or higher like nova [1]. It selects bandit 1.1.0 as defined in nova and neutron lower constraints [2]. [1] https://github.com/openstack/nova/blob/master/tox.ini#L221 [2] https://github.com/openstack/nova/blob/master/lower-constraints.txt#L8 Change-Id: I52524df867d99fae75798475c762a5f8253dacfa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-04-21Update to opendev.org in tox.iniCédric Ollivier1-1/+1
It completes the previous commit [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/67651/ Change-Id: I5298e406d7973572034242224b867ba8fd79e60f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-26Fix OpenStack version (master) in tox.iniCédric Ollivier1-1/+1
Change-Id: I4a5c3a85870ce515d64be5efb25b016908b56164 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-15Verify the Ansible playbook via ansible-lintCédric Ollivier1-1/+6
Change-Id: I9e6778b935a0a8d6e76cb4f1f16ef08c811eee73 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-15Verify missing yaml files via yamllintCédric Ollivier1-0/+2
Change-Id: I0cd412cd49cac62b393658bf55e0e32def908c85 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-10-19Temporarily disable py36Cédric Ollivier1-1/+1
Verify servers haven't been updated yet to support py36. Change-Id: Id2999a94f9c2c03432412a4b40a4b3c593aaffb5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-10-17Update python3 to python3.6Cédric Ollivier1-2/+2
Change-Id: I845f8eb0544dc32febec7a17ac7c05412eb31198 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-12Leverage on abc and stevedoreCédric Ollivier1-0/+1
Change-Id: I7b3c4c0c5dd0c9e6fb3e52c3fff5221d4b831b02 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-12Skip the selected testcase too0.56Cédric Ollivier1-1/+0
It completes "Allow calling a skip test" [1] [1] https://gerrit.opnfv.org/gerrit/60655 Change-Id: I02499aed56e6b23563165ea1f17b476e12408823 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-12Skip testcases by any env var0.51Cédric Ollivier1-1/+0
It also removes CI_LOOP which is releng centric. It can be passed as dependency if required. Change-Id: I146bb97950cb88062451158b7cc6a16c7f9d47a2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-24Check shell scripts via bashateCédric Ollivier1-1/+7
Change-Id: I33df0017945a32946c46bff0768624901e13f6f1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-12Update to stable/queens0.40Cédric Ollivier1-1/+1
Change-Id: I2a8d624df52c0c705d5fbc662f11948bdc51d765 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-11Exclude doc/reveal.js from permCédric Ollivier1-1/+1
Change-Id: I6c81163d55217a374269ee7d2aae63a854c9fdeb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-07Check README.rst by doc8Cédric Ollivier1-1/+1
Change-Id: I9ac9fa26d49fd9cd01844e5579255cfadbd8b276 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-04Check API doc via doc8Cédric Ollivier1-1/+3
It also cleans unseless dirs. Change-Id: I52ddc9e2adcd13c95e4a8939397686f50b9e6c4c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Ensure py27 and py35 supportsCédric Ollivier1-6/+1
Change-Id: Ia1cd423be2e55ab7539bcd2551c53792c08b976a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Rename all Functest refs to XtestingCédric Ollivier1-18/+18
It mainly renames python modules and then the related documentation config files. Change-Id: I186010bb88d3d39afe7b8fd1ebcef9c690cc1282 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-27Clean all OpenStack related modulesCédric Ollivier1-43/+1
Xtesting is only focused on the framework and entry points. Change-Id: I1a4146ed8519438b13810a20ddf1140c35bb6ecd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-09Fix pylint errors/warnings in tempest modulesJuha Kosonen1-0/+2
JIRA: FUNCTEST-913 Change-Id: I37b25bbcf43fb1d6f7de0c815ad49070d1e1af12 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2018-01-30Fix pylint errors/warnings in rallyJuha Kosonen1-1/+3
JIRA: FUNCTEST-906 Change-Id: I484f9a291d5adbedb855450e4ff067dfa4a3b2ae Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2018-01-29Fix pylint errors about refstackLinda Wang1-0/+2
JIRA: FUNCTEST-907 Change-Id: Ib08a88523c700d35894b9b89b7585425a02065c3 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-01-28Fix warnings in all snaps-related modulesCédric Ollivier1-0/+4
It also adds vping/__init__.py to stop skipping vping unit tests. It removes the useless import os which is not required for mock (here the mock patch was simply false). It should be noted that the code is partially duplicated between snaps_test_runner.py and vping_base_base.py. A small part of code has been rewritten to fix that without multi inheritance. Change-Id: I2e3e181ad7dab8aa41afb1e63d0b6795ff0d1610 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-01-26Fix pylint errors in several utils modulesCédric Ollivier1-1/+5
All utils which are moving to xtesting are now fixed. It remains OpenStack and Functest utils (+ the related unit tests) which doesn't move to the new package. Change-Id: If13c627c8444c62d5c6bf9c8057d6413aa0e56c7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-01-26Fix last Pylint error in FunctestCédric Ollivier1-0/+3
It also fixes all pylint warnings in router and the related unit tests. tox.ini is updated to ensure that no error is introduced. Change-Id: Iddd74b0dac7b6581d72b04369140006c9e19f998 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-01-24Fix pylint warnings/errors in cliCédric Ollivier1-0/+2
cli_testcase and cli_tier have been refactored to avoid duplicating code. Then functest/cli and funtest/unit/cli can be added to the list of modules rated 10/10. Change-Id: Iec90e806397248a10f39080ec554e3f0a6eda7c1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
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>