Extract in CI tapi functional tests from tests221 10/101010/4
authorGilles Thouenon <gilles.thouenon@orange.com>
Mon, 9 May 2022 08:30:42 +0000 (10:30 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 10 May 2022 11:32:19 +0000 (11:32 +0000)
That allows to manage TAPI as an optional feature in lighty build, as it
is the case with karaf and nbinotifications.
- create a new tests_tapi tox profile
- move the current two functional test suites in the new
  'transportpce_tests/tapi' directory
- run tapi functional tests first

JIRA: TRNSPRTPCE-663
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I24d663a3590f3f1c6a426eeb9f77db297e898fec

tests/transportpce_tests/tapi/test01_abstracted_topology.py [moved from tests/transportpce_tests/2.2.1/test10_tapi.py with 100% similarity]
tests/transportpce_tests/tapi/test02_full_topology.py [moved from tests/transportpce_tests/2.2.1/test13_tapi_full_multi_layer.py with 100% similarity]
tox.ini

diff --git a/tox.ini b/tox.ini
index ddbd19e705ba177a632cc83e170b4df40dfb92d7..de2aeec396d0f9145e5281e410ffad11f5fcdcd1 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -2,7 +2,7 @@
 minversion = 3.7.0
 envlist = buildcontroller,testsPCE,
     sims121,build_karaf_tests121,tests121,
-    sims221,build_karaf_tests221,tests221,
+    sims221,build_karaf_tests221,tests221,tests_tapi,
     sims71,build_karaf_tests71,tests71,
     build_karaf_tests_hybrid,tests_hybrid,
     docs
@@ -144,7 +144,7 @@ commands =
   ./build_karaf_for_tests.sh
 
 [testenv:tests71]
-depends = buildcontroller,build_karaf_tests71,sims71
+depends = buildcontroller,build_karaf_tests71,sims71,tests_tapi
 whitelist_externals = launch_tests.sh
 passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION
 setenv =
@@ -168,7 +168,7 @@ commands =
   ./build_karaf_for_tests.sh
 
 [testenv:tests_hybrid]
-depends = buildcontroller,sims121,sims221,sims71,tests121,tests221,tests71
+depends = buildcontroller,build_karaf_tests_hybrid,sims121,sims221,sims71,tests121,tests221,tests71
 #the last dependency is to avoid temporarily concurrent ressources problem in parallel mode
 whitelist_externals = launch_tests.sh
 passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION
@@ -180,6 +180,20 @@ commands =
 #  nosetests --with-xunit transportpce_tests/hybrid/test01_device_change_notifications.py
   ./launch_tests.sh hybrid {posargs:}
 
+[testenv:tests_tapi]
+depends = buildcontroller,build_karaf_tests221,sims221
+whitelist_externals = launch_tests.sh
+passenv = LAUNCHER USE_LIGHTY OLM_TIMER1 OLM_TIMER2 USE_ODL_RESTCONF_VERSION
+setenv =
+    USE_LIGHTY=True
+    USE_ODL_RESTCONF_VERSION=draft-bierman02
+    USE_ODL_ALT_KARAF_ENV=./karaf221.env
+    USE_ODL_ALT_KARAF_INSTALL_DIR=karaf221
+    INSTALL_TAPI=True
+
+commands =
+  ./launch_tests.sh tapi {posargs:}
+
 [testenv:nbinotifications]
 depends = buildcontroller,sims221
 whitelist_externals = launch_tests.sh