diff options
-rw-r--r-- | README.md | 23 | ||||
-rw-r--r-- | elements/xtesting/element-deps | 1 | ||||
-rwxr-xr-x | elements/xtesting/install.d/16-xtesting | 8 | ||||
-rw-r--r-- | tox.ini | 6 |
4 files changed, 34 insertions, 4 deletions
@@ -174,6 +174,27 @@ COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml CMD ["run_tests", "-t", "all"] ``` +site.yml + +```yaml +--- +- hosts: + - 127.0.0.1 + roles: + - role: collivier.xtesting + project: weather + registry_deploy: true + repo: 127.0.0.1 + dport: 5000 + suites: + - container: weather + tests: + - humidity + - pressure + - temp + - half +``` + ### make world Deploy your own Xtesting toolchain @@ -196,7 +217,7 @@ Build your container sudo docker build -t 127.0.0.1:5000/weather . ``` -Publish your container on your local repository +Publish your container on your local registry ```bash sudo docker push 127.0.0.1:5000/weather diff --git a/elements/xtesting/element-deps b/elements/xtesting/element-deps new file mode 100644 index 00000000..d06e3d77 --- /dev/null +++ b/elements/xtesting/element-deps @@ -0,0 +1 @@ +xtestingci diff --git a/elements/xtesting/install.d/16-xtesting b/elements/xtesting/install.d/16-xtesting new file mode 100755 index 00000000..d3808556 --- /dev/null +++ b/elements/xtesting/install.d/16-xtesting @@ -0,0 +1,8 @@ +#!/bin/bash + +download-frozen-image-v2.sh /data/docker/xtesting \ + opnfv/xtesting:latest +git clone https://git.opnfv.org/functest-xtesting /home/debian/functest-xtesting +chown -R 1000:1000 /home/debian/functest-xtesting + +exit 0 @@ -30,7 +30,7 @@ commands = flake8 [testenv:pylint] basepython = python3.10 -whitelist_externals = bash +allowlist_externals = bash commands = pylint --min-similarity-lines=10 \ --disable=locally-disabled --ignore-imports=y --reports=n --extension-pkg-whitelist=lxml xtesting @@ -66,8 +66,8 @@ commands = [testenv:perm] basepython = python3.10 -whitelist_externals = bash -path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*' +allowlist_externals = bash +path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*' -not -path './elements/xtesting/install.d/*' commands = bash -c "\ find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \ |