aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/utils
AgeCommit message (Collapse)AuthorFilesLines
2023-09-29Upgrade pylint and fix latest warningsCédric Ollivier1-7/+14
Change-Id: I8b9e4b663a12ac9be18fded2d7b4e4b38428fa9f 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 Ollivier1-0/+7
Change-Id: Ic4a857b6cdee7e3f9e2330414b0e6a6df98eea25 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2022-03-03Search config files in treeCédric Ollivier1-2/+14
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>
2021-11-09Leverage latest pylint featuresCédric Ollivier1-3/+4
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-06-01Drop sixVincent Danno1-3/+3
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-05-18Use constants instead of hard-coding pathsVincent Danno1-1/+1
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-11Merge "Remove unnecessary condition in statement flow"Cedric Ollivier1-3/+2
2021-05-10Use constants instead of hard-coding pathsVincent Danno1-0/+9
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
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>
2019-11-09Print Test API links in consoleCédric Ollivier1-0/+1
It adds TEST_DB_EXT_URL to print the right links in case of NAT or SSH port forwardings. Change-Id: If85b00de7325909facc903fba13a3fd59a1e705f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-11-09Add S3 env vars in env.pyCédric Ollivier1-1/+4
It completes the previous commits adding S3 support: https://gerrit.opnfv.org/gerrit/c/functest-xtesting/+/68760 https://gerrit.opnfv.org/gerrit/c/functest-xtesting/+/68796 Change-Id: Iaaeb02ef2d9c6cdb7ff6c2c52e7086c751119871 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-06-14Remove energy modulesCédric Ollivier1-4/+1
The public recorder api has been down for a while. Change-Id: Ib879ef3b9ef56338c10cfcdeb733451c6f7573a6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-04-24Enable debug messages via env varCédric Ollivier1-0/+1
It stops printing in xtesting.debug.log by default. It decreases testing duration via Raspberry PI without additional tasks [1]. [1] https://wiki.opnfv.org/display/functest/Run+Functest+containers+on+Raspberry+PI Change-Id: I2eded47a7a150a45330a69f3262fc7ca6fdb7463 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-12Improve dependency managementCédric Ollivier1-1/+1
It avoids declaring dependencies if needed. Negative regex are correcty managed as well. Change-Id: I0e978823526246bc4a5192e63a8a893a4add0e2a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-01Remove Functest-related env varsCédric Ollivier1-3/+0
Change-Id: If1b44ad61db58fd3d02817373255c6467f515e85 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Switch from /home/opnfv/functest to /var/lib/xtestingCédric Ollivier1-1/+1
Functest containers will have to create symlinks to allow publishing artifacts. All classes create the mandatory dirs. Change-Id: Ia1f215005d553dd6d64685e4d8a3f5c843c5db7a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Rename all Functest refs to XtestingCédric Ollivier4-0/+106
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>