Merge "Update README.md deployment sample cmd"
authorCedric Ollivier <cedric.ollivier@orange.com>
Thu, 16 Nov 2023 14:58:32 +0000 (14:58 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 16 Nov 2023 14:58:32 +0000 (14:58 +0000)
README.md
elements/xtesting/element-deps [new file with mode: 0644]
elements/xtesting/install.d/16-xtesting [new file with mode: 0755]
tox.ini

index 8baef8e..d909db9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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 (file)
index 0000000..d06e3d7
--- /dev/null
@@ -0,0 +1 @@
+xtestingci
diff --git a/elements/xtesting/install.d/16-xtesting b/elements/xtesting/install.d/16-xtesting
new file mode 100755 (executable)
index 0000000..d380855
--- /dev/null
@@ -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
diff --git a/tox.ini b/tox.ini
index 3af21a1..7ce60f7 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -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 \) \