Reenforce Lighty use in the gate 39/98239/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 6 Jul 2021 07:26:31 +0000 (09:26 +0200)
committerVachhani, Shweta (sv111y) <sv111y@att.com>
Sun, 31 Oct 2021 11:33:56 +0000 (07:33 -0400)
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I92e51984822ae392ae80d9f6e0814bcb049b9cef

tests/transportpce_tests/with_docker/test01_gnpy.py [moved from tests/transportpce_tests/with_docker/test_gnpy.py with 100% similarity]
tests/transportpce_tests/with_docker/test02_nbinotifications.py [moved from tests/transportpce_tests/with_docker/test_nbinotifications.py with 100% similarity]
tox.ini

diff --git a/tox.ini b/tox.ini
index a4bdaeeb6fb96806fc41a2d5076f78c8ca19f38c..0fd871eae36282c59e0faa1dd59d2cb6a83076c8 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -12,7 +12,7 @@ setupdir = tests/
 [testenv]
 passenv = USE_LIGHTY http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
 setenv =
-    USE_LIGHTY = False
+    USE_LIGHTY=True
 usedevelop = true
 basepython = python3
 deps =
@@ -63,6 +63,8 @@ commands =
 depends = buildcontroller
 whitelist_externals = launch_tests.sh
 passenv = LAUNCHER USE_LIGHTY
+setenv =
+    USE_LIGHTY=True
 commands =
   ./launch_tests.sh pce {posargs:}
 
@@ -70,9 +72,9 @@ commands =
 depends = buildcontroller,sims121,testsPCE
 # testsPCE dependency is only here to chain tests in the gate and avoid resources starvation
 whitelist_externals = launch_tests.sh
-passenv = LAUNCHER
+passenv = LAUNCHER USE_LIGHTY
 setenv =
-    USE_LIGHTY=False
+    USE_LIGHTY=True
     USE_ODL_ALT_WEBSOCKET_PORT=8186
     USE_ODL_ALT_AKKA_PORT=2551
     USE_ODL_ALT_AKKA_MGT_PORT=8559
@@ -96,9 +98,9 @@ commands =
 depends = buildcontroller,sims221,tests71
 # tests71 dependency is only here to chain tests in the gate and avoid ressources starvation
 whitelist_externals = launch_tests.sh
-passenv = LAUNCHER
+passenv = LAUNCHER USE_LIGHTY
 setenv =
-    USE_LIGHTY=False
+    USE_LIGHTY=True
     USE_ODL_ALT_WEBSOCKET_PORT=8187
     USE_ODL_ALT_AKKA_PORT=2552
     USE_ODL_ALT_AKKA_MGT_PORT=8560
@@ -113,9 +115,9 @@ commands =
 [testenv:tests71]
 depends = buildcontroller,sims71
 whitelist_externals = launch_tests.sh
-passenv = LAUNCHER
+passenv = LAUNCHER USE_LIGHTY
 setenv =
-    USE_LIGHTY=False
+    USE_LIGHTY=True
     USE_ODL_ALT_WEBSOCKET_PORT=8188
     USE_ODL_ALT_AKKA_PORT=2553
     USE_ODL_ALT_AKKA_MGT_PORT=8561
@@ -131,19 +133,21 @@ commands =
 depends = buildcontroller
 whitelist_externals = sh
                       sudo
+passenv = LAUNCHER USE_LIGHTY
 commands =
   #sudo docker pull atriki/gnpyrest:v1.2
   sudo docker run -d -p 8008:5000 --name gnpy_tpce_rest1 atriki/gnpyrest:v1.2
-  nosetests --with-xunit transportpce_tests/with_docker/test_gnpy.py
+  ./launch_tests.sh with_docker gnpy
   sudo docker container rm -f gnpy_tpce_rest1
 
 [testenv:nbinotifications]
 depends = buildcontroller,sims221
 whitelist_externals = sh
                       sudo
+passenv = LAUNCHER USE_LIGHTY
 commands =
   sudo docker-compose -f ./nbinotifications/docker-compose.yml up -d
-  nosetests --with-xunit transportpce_tests/with_docker/test_nbinotifications.py
+  ./launch_tests.sh with_docker nbinotifications
   sudo docker-compose -f ./nbinotifications/docker-compose.yml down --rmi all
 
 [testenv:docs]