Speed up functional tests execution 85/104585/3
authorGilles Thouenon <gilles.thouenon@orange.com>
Sat, 25 Feb 2023 09:30:35 +0000 (10:30 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 28 Feb 2023 07:18:37 +0000 (08:18 +0100)
Some functional test suites remained configured with a rather long delay
between each test. Homogenize the whole to a rather short value.

Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I082f82ac48b2e8530c008e311004ac52f0f0fd7c

14 files changed:
tests/transportpce_tests/1.2.1/test01_portmapping.py
tests/transportpce_tests/1.2.1/test02_topo_portmapping.py
tests/transportpce_tests/1.2.1/test03_topology.py
tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py
tests/transportpce_tests/2.2.1/test02_topo_portmapping.py
tests/transportpce_tests/2.2.1/test03_topology.py
tests/transportpce_tests/2.2.1/test04_otn_topology.py
tests/transportpce_tests/2.2.1/test05_flex_grid.py
tests/transportpce_tests/2.2.1/test07_otn_renderer.py
tests/transportpce_tests/2.2.1/test08_otn_sh_renderer.py
tests/transportpce_tests/2.2.1/test11_otn_end2end.py
tests/transportpce_tests/7.1/test02_otn_renderer.py
tests/transportpce_tests/7.1/test03_renderer_or_modes.py
tests/transportpce_tests/tapi/test02_full_topology.py

index 4e48bf63e291ca49bccf4db64e3b69dc9df7736a..51446b76237cbea21bd6fd2ccac60f69bbb4ad83 100644 (file)
@@ -43,7 +43,7 @@ class TransportPCEPortMappingTesting(unittest.TestCase):
     def setUp(self):
         # pylint: disable=consider-using-f-string
         print("execution of {}".format(self.id().split(".")[-1]))
-        time.sleep(10)
+        time.sleep(1)
 
     def test_01_rdm_device_connection(self):
         response = test_utils.mount_device("ROADMA01", ('roadma', self.NODE_VERSION))
index e88f125fdea91d7bcee078ac5a51299275a39d5b..d409cfa600a76e3e98be80d21d4819c797faf71c 100644 (file)
@@ -42,7 +42,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(10)
+        time.sleep(2)
 
     # Connect the ROADMA
     def test_01_connect_rdm(self):
index ed289d29fe25694b739716ec719559cb85d69303..36ca1550140b9f3cd5d2240a544c6e7ee58f6bdb 100644 (file)
@@ -110,7 +110,7 @@ class TransportPCETopologyTesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(5)
+        time.sleep(2)
 
     def test_01_connect_ROADMA(self):
         response = test_utils.mount_device("ROADMA01", ('roadma', self.NODE_VERSION))
index 506dbf73c4aedfe4939756a3402a0e8b4c61bab7..f6b4d84ef0ba5c82f68df027369078e17aae0002 100644 (file)
@@ -43,7 +43,7 @@ class TransportPCERendererTesting(unittest.TestCase):
     def setUp(self):
         # pylint: disable=consider-using-f-string
         print("execution of {}".format(self.id().split(".")[-1]))
-        time.sleep(10)
+        time.sleep(2)
 
     def test_01_rdm_device_connected(self):
         response = test_utils.mount_device("ROADMA01", ('roadma', self.NODE_VERSION))
index 326cb481db9ca413c27d497c8e62b7e919247b78..20b7bc1270c7261bab4b0d1d35ce1c20b7227d44 100644 (file)
@@ -41,7 +41,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(10)
+        time.sleep(2)
 
     # Connect the ROADMA
     def test_01_connect_rdm(self):
index 838bb4c008e45884108d09bf503497af8ef440c1..964ee8a4e95bf1f3de4e9b66081c2a8597fe8299 100644 (file)
@@ -111,7 +111,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(5)
+        time.sleep(2)
 
     def test_01_connect_ROADM_A1(self):
         response = test_utils.mount_device("ROADM-A1", ('roadma', self.NODE_VERSION))
index f7d9539926c3b47dae81320ad2c9aae86347a3c4..629c7a311dcc5444cd3f4da67a89871a054bcb41 100644 (file)
@@ -42,7 +42,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(5)
+        time.sleep(2)
 
     def test_01_connect_SPDR_SA1(self):
         response = test_utils.mount_device("SPDR-SA1", ('spdra', self.NODE_VERSION))
index a2a6958d62cb635a216f8b4c076c1205a251d0f3..371e6fb91c7dfb043240b682c3e6b51c119017bd 100644 (file)
@@ -42,7 +42,7 @@ class TransportPCEPortMappingTesting(unittest.TestCase):
     def setUp(self):
         # pylint: disable=consider-using-f-string
         print("execution of {}".format(self.id().split(".")[-1]))
-        time.sleep(10)
+        time.sleep(2)
 
     def test_01_rdm_device_connection(self):
         response = test_utils.mount_device("ROADM-D1", ('roadmd', self.NODE_VERSION))
index c27c5e8b7a777d27f5c91e61cf93eaba51ca9489..eab96048ef192ac9bb84dad57bb7e61447547c66 100644 (file)
@@ -53,7 +53,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(5)
+        time.sleep(2)
 
     def test_01_connect_SPDR_SA1(self):
         response = test_utils.mount_device("SPDR-SA1", ('spdra', self.NODE_VERSION))
index effe77bb0b2b595f57e03f0d6d3092b54e8bf5ec..c3a1dfdebcfd40d52eb93337db4d97dcdc38ddd3 100644 (file)
@@ -42,7 +42,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(5)
+        time.sleep(2)
 
     def test_01_connect_SPDR_SA1(self):
         response = test_utils.mount_device("SPDR-SA1", ('spdra', self.NODE_VERSION))
@@ -166,6 +166,7 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertIn('Operation Successful',
                       response['output']['configuration-response-common']['response-message'])
+        time.sleep(2)
 
     # Test OCH-OTU interfaces on SPDR-A1
     def test_04_check_interface_och(self):
@@ -343,6 +344,7 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertIn('Operation Successful',
                       response['output']['configuration-response-common']['response-message'])
+        time.sleep(2)
 
     # Test ODU4 interfaces on SPDR-A1 and SPDR-C1
     def test_09_check_interface_ODU4(self):
@@ -499,6 +501,7 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertIn('Operation Successful',
                       response['output']['configuration-response-common']['response-message'])
+        time.sleep(2)
 
     # Test the interfaces on SPDR-A1
     def test_12_check_interface_10GE_CLIENT(self):
index b6181acf60a4bab1f4ba366cb910a0b27439c1f7..4da4d80b07032775082a8838b9b9704372b65550 100644 (file)
@@ -151,7 +151,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(5)
+        time.sleep(2)
 
     def test_01_connect_spdrA(self):
         response = test_utils.mount_device("SPDR-SA1", ('spdra', self.NODE_VERSION))
index a0a4c1ed6e888b5f41e21d8c6c50773beab2ad01..bcf644f8fbf562f80c9d479cc3db3b3fd2909771 100644 (file)
@@ -54,7 +54,7 @@ class TransportPCE400GPortMappingTesting(unittest.TestCase):
     def setUp(self):
         # pylint: disable=consider-using-f-string
         print("execution of {}".format(self.id().split(".")[-1]))
-        time.sleep(10)
+        time.sleep(2)
 
     def test_01_xpdr_device_connection(self):
         response = test_utils.mount_device("XPDR-A2",
index b8173c2aa06e36c1fc651bd323321ea86766d421..2592457856fb28d96885455c69b9a162758d9326 100644 (file)
@@ -58,7 +58,7 @@ class TransportPCE400GPortMappingTesting(unittest.TestCase):
     def setUp(self):
         # pylint: disable=consider-using-f-string
         print("execution of {}".format(self.id().split(".")[-1]))
-        time.sleep(10)
+        time.sleep(2)
 
     def test_01_xpdr_device_connection(self):
         response = test_utils.mount_device("XPDR-A2",
index 10ec7bf07bf3892ece459150e9fd220e54e0574e..c8d79a78ca599e83a4d24492c452cec7de2c862b 100644 (file)
@@ -132,7 +132,7 @@ class TransportPCEtesting(unittest.TestCase):
         print("all processes killed")
 
     def setUp(self):
-        time.sleep(5)
+        time.sleep(2)
 
     def test_01_connect_spdrA(self):
         print("Connecting SPDRA")