aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting
AgeCommit message (Collapse)AuthorFilesLines
2024-03-23Enforce self.details as a collectionCédric Ollivier1-1/+1
Change-Id: If34c1c7ff2d2b5e635b7a03cb8ba1572511bb5ff Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d33e1ce346faeedf4a4ce166feca871d2066a0e4)
2024-01-18Don't override env values via testcases.yaml if they existCédric Ollivier1-3/+4
Change-Id: I0d7a52f8bae37ea09f15a5344ee1f7d19d0ecd77 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit a337116e0a023c2cfcbe4a4c56da4e8be15afae0)
2023-09-29Upgrade pylint and fix latest warningsCédric Ollivier7-16/+28
Change-Id: I8b9e4b663a12ac9be18fded2d7b4e4b38428fa9f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f430ee4d9ef63f104dde63710fce7f8fa3c61591)
2023-04-14Remove MTS from XtestingCédric Ollivier2-259/+0
The MTS drivers is unmaintained and they are lots of security issues in its dependencies. Change-Id: I397e22c8868204b8d52a8ac35906278b5e530961 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 781fc313c1c59018edb892ff0423963191781592)
2023-04-14Add pytest driver in XtestingCédric Ollivier2-0/+112
Co-authored-by: Edouard Hinard <edouard.hinard@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ice364f7f4287aacc7f375ed4a23503fd38c8e543 (cherry picked from commit 12732b13c55eb91f32ed65f1d8a1f72b4aa2c534)
2023-04-13Allow setting env vars via testcases.yamlCédric Ollivier1-0/+6
It helps defining env vars per test cases. /home/opnfv/functest/conf/env_file is rather designed for comme env vars ro all test cases (see OpenStack Creds). Change-Id: Ic5d34701475440e1f768bbb22be7a4cfa3e1625b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit fd8498598096cabb991cf3494220a9715d3360f7)
2023-04-13Add missing api docsCédric Ollivier1-3/+3
Change-Id: I29a470f74d2429862d0e26426a375d0a76550082 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8aac8f8eb357c595fc2e8272d6302bfd068cd4ab)
2022-09-23Make robot driver even more genericCédric Ollivier2-14/+24
It allows setting any option via testcases.yaml Change-Id: I8cb5ead037a65f962c3ba1a14729b52195e95483 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-07-07Add deny_skipping parameterBellengé Maxime2-7/+31
It takes into account or not skip tests in the global result It also adds unit tests to cover it. It should be noted that if follows the deny skipping model proposed by Functest (tempest). Change-Id: I15fa7a3946c6e3b2ae190e4f8abf3b9361a391a4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-04-15Change working dirCédric Ollivier1-0/+1
/ is no longer good as we allow non root user. Change-Id: If2483f7d177db8f2b99e05456d1ea803e3153466 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-03Search config files in treeCédric Ollivier3-11/+32
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>
2021-11-09Leverage latest pylint featuresCédric Ollivier17-94/+116
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 Ollivier2-16/+12
Change-Id: I298320f666e048d42047fd00de74df83142a5186 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-12Update pylint to 2.9.6Cédric Ollivier6-45/+53
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-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-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 Ollivier17-100/+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 Danno17-100/+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-25Merge "Use constants instead of hard-coding paths"Cedric Ollivier2-5/+6
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-12Remove superfluous property declarationVincent Danno2-2/+0
It is inherited. Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: Ic68172dfb93f03cc62cf4944b82de8bc1e37b097
2021-05-11Merge "Remove unnecessary condition in statement flow"Cedric Ollivier1-3/+2
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-04-29Merge "Allow printing playbook output to console"Cedric Ollivier2-18/+69
2021-04-29Allow printing playbook output to consoleAjay Kumar2-18/+69
User can specify quiet: False in "testcases.yaml" if he wants to print the output on console. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Signed-off-by: Ajay kumar <ajay4.kumar@orange.com> Change-Id: I30fa21bdcc2ed97757cd3c0b4720f9413466833f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-04-28Add console parameter to behaveframeworkFrancois Regis Menguy2-4/+11
Change-Id: I289de43bdea8c52181ec0622c83c5c56dd6890e3 Signed-off-by: Francois Regis Menguy <francoisregis.menguy@orange.com>
2021-04-27Add an Ansible driverAjay Kumar6-104/+330
It calls ansible_runner.interface.run() by converting the testcase description data to kwargs. It only overrides quiet and artifact_dir to implement the Xtesting behavior. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ifd09810400babc0f2b81f2c33edf55a3ed88807b Signed-off-by: Ajay kumar <ajay4.kumar@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-02-11Create dummy xtesting-mts:armCédric Ollivier1-0/+8
Change-Id: Ib6cc1236aa46b7fb1fd9dfa96750894d87c3563e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-02-09Take pylint's len-as-condition into accountCédric Ollivier1-2/+2
Change-Id: Ib19de453857a2732d9c70a24539a96cd7129613d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-11-16Cleanup previous run output filesVincent Mahe1-4/+13
Signed-off-by: Vincent Mahe <v.mahe@orange.com> Change-Id: I9ec39012457ae1a5f7017d41d79237d7a1e300d4
2020-09-05Protect mts vs py2Cédric Ollivier1-8/+12
Change-Id: I7a9aa9267a81161b10b1d625efbaa924187f8690 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-09-05Wrap long env valuesCédric Ollivier1-1/+3
https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-healthcheck-kali-k8s_smoke-run/162/console Change-Id: If6837a85f54309ad7c221144570c10eb1615993d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-09-05Fix duration calculationCédric Ollivier1-2/+3
It falsy printed 00:60 Change-Id: Ib2852268a6833b353232c80e9013b6926058479c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-09-05Remove order in testcases.yamlCédric Ollivier6-24/+8
It's not used and asked for useless configuration data. Change-Id: Ie1713873aa880bed74bc3c9c4c08da5b30ea3bbb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-09-05Make testcases descriptions optionalCédric Ollivier1-4/+4
Change-Id: If0e45f10816edd2199c589bb5fbfc03fbc0a4b77 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-09-05Suppress admin password in default logsajay333-3/+3
Currently, OS_PASSWORD is getting printed in the console of Functest. This password is secret and must not be printed in default log file. This patch suppresses the logging of OS_PASSWORD unless users ask for debug logs. Signed-off-by: mahajanajay33@gmail.com Change-Id: Ib83a12eb09a8551b30b352858649932a5ca842e4