Add a Xtesting entry to combine all tests cases 52/107052/4
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 25 Jul 2023 14:23:55 +0000 (16:23 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 26 Jul 2023 05:36:17 +0000 (05:36 +0000)
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ifca5a721416ccfb3d8d8ef424698d15300702a5f

.pre-commit-config.yaml
tests/Xtesting/patch.diff [new file with mode: 0644]
tests/Xtesting/site.yml
tests/Xtesting/testcases.yaml

index e2513a9137ec63ec05c175b762b977a714621703..954379b1e9bce0d377613103bf09127883a63636 100644 (file)
@@ -4,7 +4,7 @@ repos:
     rev: v4.3.0
     hooks:
       - id: trailing-whitespace
-        exclude: '^ordmodels/'
+        exclude: '^ordmodels/|.diff$'
         # ordmodels trailing blanks shall preferably be fixed in OpenROADM upstream repo
 
   - repo: https://github.com/jorisroovers/gitlint
diff --git a/tests/Xtesting/patch.diff b/tests/Xtesting/patch.diff
new file mode 100644 (file)
index 0000000..d8999db
--- /dev/null
@@ -0,0 +1,31 @@
+diff --git a/tox.ini b/tox.ini
+index 7cae5c70..dd44b57a 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -94,7 +94,7 @@ commands =
+   ./build_karaf_for_tests.sh
+ [testenv:tests121]
+-depends = buildcontroller,build_karaf_tests121,sims121,testsPCE
++depends = buildcontroller,build_karaf_tests121,sims121
+ # testsPCE dependency is only here to chain tests in the gate and avoid resources starvation
+ allowlist_externals = launch_tests.sh
+ passenv = LAUNCHER, USE_LIGHTY, NO_ODL_STARTUP, USE_ODL_RESTCONF_VERSION
+@@ -127,7 +127,7 @@ commands =
+   ./build_karaf_for_tests.sh
+ [testenv:tests221]
+-depends = buildcontroller,build_karaf_tests221,sims221,tests71
++depends = buildcontroller,build_karaf_tests221,sims221,tests_tapi
+ # tests71 dependency is only here to chain tests in the gate and avoid ressources starvation
+ allowlist_externals = launch_tests.sh
+ passenv = LAUNCHER, USE_LIGHTY, NO_ODL_STARTUP, USE_ODL_RESTCONF_VERSION
+@@ -152,7 +152,7 @@ commands =
+   ./build_karaf_for_tests.sh
+ [testenv:tests71]
+-depends = buildcontroller,build_karaf_tests71,sims71,tests_tapi
++depends = buildcontroller,build_karaf_tests71,sims71
+ allowlist_externals = launch_tests.sh
+ passenv = LAUNCHER, USE_LIGHTY, NO_ODL_STARTUP, USE_ODL_RESTCONF_VERSION
+ setenv =
index df8887c522973e0c0e8187e5e5f2b672fed7030b..fc832f37f96015b5d9c34e4b7ee8fb26c255384d 100644 (file)
       suites:
         - container: tpce0
           tests:
-            - linters
-            - build
-            - PCE
-            - 121
-            - 221
-            - 71
-            - hybrid
+            - combined
+#            - linters
+#            - build
+#            - PCE
+#            - 121
+#            - 221
+#            - 71
+#            - hybrid
index e17ab82d58a20a15ad4a69e40cecb6ac7a7a5ef4..67cd870ffc071c18597ae0d65c6346230144c6b1 100644 (file)
@@ -89,3 +89,20 @@ tiers:
                     args:
                         cmd: 'cd /src/transportpce && tox -e buildcontroller,build_karaf_tests_hybrid,tests_hybrid'
                         console: true
+    -
+        name: combined
+        order: 1
+        description: 'combine all transportPCE tests'
+        testcases:
+            -
+                case_name: combined
+                project_name: transportpce
+                criteria: 100
+                blocking: true
+                clean_flag: false
+                description: 'run all transportPCE tests in parallell with tox'
+                run:
+                    name: 'bashfeature'
+                    args:
+                        cmd: 'cd /src/transportpce && git apply tests/Xtesting/patch.diff && tox -o -p auto'
+                        console: true