Outsource tests scripts not in envlist 64/96564/10
authorGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 18 Jun 2021 12:13:52 +0000 (14:13 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Tue, 17 Aug 2021 23:05:44 +0000 (01:05 +0200)
Gnpy and nbinotifications tests requires docker and cannot be run
easily in the gate.
For this reason, they are not listed in tox.ini envlist.
Moving them to a separate folder will ease tests management in the gate.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I57b69bc3c4482c4ef2ed9d0aaeffd874b9925deb

tests/transportpce_tests/with_docker/__init__.py [new file with mode: 0644]
tests/transportpce_tests/with_docker/test_gnpy.py [moved from tests/transportpce_tests/1.2.1/test_gnpy.py with 100% similarity]
tests/transportpce_tests/with_docker/test_nbinotifications.py [moved from tests/transportpce_tests/2.2.1/test_nbinotifications.py with 100% similarity]
tox.ini

diff --git a/tests/transportpce_tests/with_docker/__init__.py b/tests/transportpce_tests/with_docker/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tox.ini b/tox.ini
index 707d38efd9097729cb4f17a6b568896b38d8737c..9cd2a744e4f195e04baf3540faca985df88ee116 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -112,7 +112,7 @@ whitelist_externals = sh
 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/1.2.1/test_gnpy.py
+  nosetests --with-xunit transportpce_tests/with_docker/test_gnpy.py
   sudo docker container rm -f gnpy_tpce_rest1
 
 [testenv:nbinotifications]
@@ -121,7 +121,7 @@ whitelist_externals = sh
                       sudo
 commands =
   sudo docker-compose -f ./nbinotifications/docker-compose.yml up -d
-  nosetests --with-xunit transportpce_tests/2.2.1/test_nbinotifications.py
+  nosetests --with-xunit transportpce_tests/with_docker/test_nbinotifications.py
   sudo docker-compose -f ./nbinotifications/docker-compose.yml down --rmi all
 
 [testenv:docs]