aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-04-14Define xtesting user to harden securityCédric Ollivier2-0/+5
It applies security guidelines even if everybody was already free to harden his own containers via the python package. Change-Id: Ia9936d158c02b4e5c86386cb046ff7e35af07f03 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-03-04Protect vs Bucket containing html charsCédric Ollivier1-11/+14
It allows dumping MTS output files. Change-Id: I2b35ee81a764573a9d17cb3a225cb5febed5fa46 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-03-03Complete previous commitCédric Ollivier1-0/+23
It adds xtesting/utils/config.py Change-Id: Iaa36568d7b4e1f6c3cfa1d74cf81d9d73a61f3eb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-03-03Rewrite last direct call to ci/testcases.yamlCédric Ollivier3-23/+24
Change-Id: Ic4a857b6cdee7e3f9e2330414b0e6a6df98eea25 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-03-03Only erase the fallback config files.Cédric Ollivier2-2/+2
It enforces the best backward compatibility. Change-Id: I6516ad15c4ca514dde7ae761c9c00f437646e3b4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-03-03Search config files in treeCédric Ollivier5-13/+34
It allows putting configurations in classical dirs. It fallbacks to the python package for backward compatibility. Change-Id: Ie33b9482fb197926c7d7d66ace815fa4ae01d02d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-03-03Allow overriding project_name via envCédric Ollivier2-1/+20
It now offers a new env var, PROJECT_NAME, to override the default value in testcases.yaml. Change-Id: I911f1af56afe88edb37de40176733b65bc8e490a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-01-27Reset argv to prevent wrong usageCédric Ollivier1-0/+4
It bypasses a clear pyats issue Change-Id: Ib5e8d51b5bea1015c7e1b371b5ba4679c0921555 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-01-21Protect if detail is returned as NoneCédric Ollivier2-1/+3
It occured when running ansible. Change-Id: I908270fdb76fbc3bdf60787b189cdbc29c41b52b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-01-04Fix incorrect f-stringCédric Ollivier1-1/+1
Change-Id: I463dc155d03b0d5c86b72f4fb7868c1aa7c29a0b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-01-04Remove ansiblelint as tox entryCédric Ollivier2-7/+2
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>
2021-11-09Leverage latest pylint featuresCédric Ollivier20-101/+123
It adds encoding in all open call and leverage f-strings. Change-Id: I70ccd2bfcadae44929d5874f98fa3bf4ff644488 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-11-08Update robotframework to latest releaseCédric Ollivier4-18/+14
Change-Id: I298320f666e048d42047fd00de74df83142a5186 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-11-08Update requirementsCédric Ollivier2-2/+2
Change-Id: Id7f0007a87df545f97d9674a4055b2bb26dff30d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-08-19Correct documented return valuesVincent Danno1-2/+2
In particular, for mts, error cases can yield values other than -1. Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I50ba896b835075fd3f3dd01f848fcc45076245ac
2021-08-12Fix .circleci/config.yml (py39)Cédric Ollivier1-1/+1
Change-Id: I151092e3e1b7388c24de3a9763fee640bebf899b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-08-12Merge "Update pylint to 2.9.6"Cedric Ollivier7-48/+55
2021-08-12Update pylint to 2.9.6Cédric Ollivier7-48/+55
It stops filtering upper constraints by versions as python 2 (and 3.5) dropped. Change-Id: Ieb96d068ebda813e020a093f3291b4a9526402e4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-08-12Merge "Update container builds due to Alpine 3.14"Cedric Ollivier1-2/+2
2021-08-12Use python 3 super() styleVincent Danno7-8/+8
See https://www.python.org/dev/peps/pep-3135/ Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I4f74db4a019b70d0289f8969d57fa9ad629c586f
2021-08-12Update container builds due to Alpine 3.14Cédric Ollivier1-2/+2
Change-Id: I2db26b02adb2b9e19a6636f9527765fde3588fdb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-08-11Update to Alpine 3.14Cédric Ollivier8-20/+20
Change-Id: Id0b5ecc341315b0010a4e52dcb54ebe7bb37c5f7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-06-11Fix tag logics in behaveCédric Ollivier2-8/+10
The unit tests will be fully rewritten in a second change (out of this bugfix). Co-Authored-By: Ugur Caglar Kilic <ugur.caglar.kilic@oracle.com> Change-Id: I6413fbcecdf44dbfe9c978045f4b1d43ca0de2ec Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-06-08MTS inherits BashFeatureVincent Danno3-63/+52
Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: Ifa3a5d5946c29863905490de5f875e17026744a5
2021-06-03Merge "Drop six"Cedric Ollivier18-101/+75
2021-06-02Delete wrong docstringVincent Danno1-5/+1
This seems an unfortunate copy-paste from the file feature.py Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: If4c8eec10616f0dce3f1ac90abb0c2e78aeae11d
2021-06-01Drop sixVincent Danno18-101/+75
python 2 was dropped [1] so we don't need six anymore [1]: https://gerrit.opnfv.org/gerrit/c/functest-xtesting/+/68262 Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I840211990b76f77a46e9e737fc4a4c857b57c0b2
2021-06-01Merge "Add proper references to xml schemas"Cedric Ollivier2-9/+5
2021-05-25Switch to focal in travis-ci gatesCédric Ollivier1-8/+1
Change-Id: I8386e274813a4d41bf259145147f52d7bfee711d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-05-25Merge "Use constants instead of hard-coding paths"Cedric Ollivier2-5/+6
2021-05-25Merge "dash-separated keys will be deprecated in future"Cedric Ollivier1-3/+3
2021-05-25Merge "Fix remaining py37 testenv"Cedric Ollivier1-1/+1
2021-05-25Merge "Remove six from Openstack requirements"Cedric Ollivier1-0/+1
2021-05-25Fix remaining py37 testenvVincent Danno1-1/+1
Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I7847ac6f9f642fb64097a172bd4e8396040f8aa7
2021-05-25Remove six from Openstack requirementsCédric Ollivier1-0/+1
Attempting uninstall: six Found existing installation: six 1.15.0 [91mERROR: Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. https://github.com/openstack/requirements/blob/master/upper-constraints.txt#L445 Change-Id: Iad64341d8014621bc999bade94676d4059e71353 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-05-20Delete dead codeVincent Danno2-23/+0
The piece of code became unused following change https://gerrit.opnfv.org/gerrit/c/functest/+/39443 Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I0bf80790c05cef217be574ad196d8c4e8dfb4c2d
2021-05-19Add proper references to xml schemasVincent Danno2-9/+5
Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I1f837fede6b62260cc49a590b065de259df0d444
2021-05-18Use constants instead of hard-coding pathsVincent Danno2-5/+6
This complements https://gerrit.opnfv.org/gerrit/c/functest-xtesting/+/72495 which missed one occurence due to trailing slash difference. Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: Iabfa89161cc099c924a7609aeb4ef6ed1b027cd3
2021-05-17dash-separated keys will be deprecated in futureVincent Danno1-3/+3
See https://setuptools.readthedocs.io/en/latest/history.html#v54-1-0 Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I123266e2ebe0e18ceea3568000e13da12b39ca83
2021-05-16Merge "Correct version to actuals in PyPI classifiers"Cedric Ollivier1-4/+2
2021-05-12Remove superfluous property declarationVincent Danno2-2/+0
It is inherited. Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: Ic68172dfb93f03cc62cf4944b82de8bc1e37b097
2021-05-11Correct version to actuals in PyPI classifiersVincent Danno1-4/+2
Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I040bf8d139d0ce159de4999cd14db48fb12f5b25
2021-05-11Merge "Remove unnecessary condition in statement flow"Cedric Ollivier1-3/+2
2021-05-10Merge "Fix Flake8 abstact and concrete deps"Cedric Ollivier2-2/+2
2021-05-10Fix Flake8 abstact and concrete depsCédric Ollivier2-2/+2
It's no longer managed by OpenStack requirements. Co-Authored-By: Vincent Danno <vincent.danno@orange.com> Change-Id: I7c509d483b4daf9c8b47390426d9f60f8a6a7482 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-05-10Updated from global requirementsCédric Ollivier2-2/+2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I234f0a861709b4199aba2306ea9f858866009917
2021-05-10Use constants instead of hard-coding pathsVincent Danno5-17/+35
Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I9bef7db7584d6b615ef102d13797914095512733
2021-05-10Remove unnecessary condition in statement flowVincent Danno1-3/+2
First, the condition should be limited to only defining the default value, rather than applying to the statement flow. This not only avoids unnecessary repetition of statements, but is more logical. Second, it is not even necessary to explicitly code a condition here, because the language itself defaults to our desired default value. Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I119567f5b31444a0e864ba41dee8a5f640ff0c22
2021-05-01Add eighth in ansible/site.gate.ymlCédric Ollivier1-0/+1
Change-Id: I11f0aa1562dfa25c596e851d475f74778914ad0e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-04-29Merge "Allow printing playbook output to console"Cedric Ollivier2-18/+69