disable failfast in rspn tests 12/90712/3
authorguillaume.lambert <guillaume.lambert@orange.com>
Thu, 25 Jun 2020 22:49:06 +0000 (00:49 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Fri, 26 Jun 2020 11:37:24 +0000 (13:37 +0200)
Otherwise, devices are not cleanly unmounted in case of tests failure

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I550d33f5bce832113ae699b310d3916507b55f3a

tests/transportpce_tests/1.2.1/test_renderer_service_path_nominal.py
tests/transportpce_tests/2.2.1/test_otn_renderer.py
tests/transportpce_tests/2.2.1/test_renderer_service_path_nominal.py

index 5d4e55931e8ef7732e85862182be874531316ba8..4132801a464ae5e0c4de72b46e5909866cc48e06 100644 (file)
@@ -439,4 +439,4 @@ class TransportPCERendererTesting(unittest.TestCase):
 
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2, failfast=True)
+    unittest.main(verbosity=2, failfast=False)
index 9c8abbc9bb5a42870d75477e792ab5c91c39067a..8a3b86e4110d07e20d3140d065c62b04b0c1eb83 100644 (file)
@@ -147,11 +147,11 @@ class TransportPCEtesting(unittest.TestCase):
         res = response.json()
 
         self.assertDictEqual(dict(res['interface'][0], **{'name': 'XPDR1-NETWORK1-1',
-                                   'administrative-state': 'inService',
-                                   'supporting-circuit-pack-name': 'CP1-CFP0',
-                                   'type': 'org-openroadm-interfaces:opticalChannel',
-                                   'supporting-port': 'CP1-CFP0-P1'
-                                   ),
+                                                          'administrative-state': 'inService',
+                                                          'supporting-circuit-pack-name': 'CP1-CFP0',
+                                                          'type': 'org-openroadm-interfaces:opticalChannel',
+                                                          'supporting-port': 'CP1-CFP0-P1'
+                                                          }),
                              res['interface'][0])
 
         self.assertDictEqual(
@@ -188,7 +188,7 @@ class TransportPCEtesting(unittest.TestCase):
                              res['interface'][0])
 
         self.assertDictEqual(input_dict_2,
-            res['interface'][0]['org-openroadm-otn-otu-interfaces:otu'])
+                             res['interface'][0]['org-openroadm-otn-otu-interfaces:otu'])
 
     def test_08_otn_service_path_create_ODU4(self):
         url = "{}/operations/transportpce-device-renderer:otn-service-path".format(test_utils.RESTCONF_BASE_URL)
@@ -260,7 +260,7 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertDictEqual(dict(res['interface'][0]['org-openroadm-otn-odu-interfaces:odu'],
                                   **input_dict_2
                                   ),
-                                  res['interface'][0]['org-openroadm-otn-odu-interfaces:odu']
+                             res['interface'][0]['org-openroadm-otn-odu-interfaces:odu']
                              )
         self.assertDictEqual(
             {u'payload-type': u'21', u'exp-payload-type': u'21'},
@@ -372,10 +372,10 @@ class TransportPCEtesting(unittest.TestCase):
                                   **input_dict_2),
                              res['interface'][0]['org-openroadm-otn-odu-interfaces:odu'])
         self.assertDictEqual(dict(res['interface'][0]['org-openroadm-otn-odu-interfaces:odu'][
-                                    'parent-odu-allocation'], **input_dict_3
-                                  ),
-                             res['interface'][0]['org-openroadm-otn-odu-interfaces:odu'][
-                               'parent-odu-allocation'])
+            'parent-odu-allocation'], **input_dict_3
+        ),
+            res['interface'][0]['org-openroadm-otn-odu-interfaces:odu'][
+            'parent-odu-allocation'])
         self.assertIn(1,
                       res['interface'][0][
                           'org-openroadm-otn-odu-interfaces:odu'][
index 47e8be5f70b846c49069ca20076843c1df8a1f41..3215eb820eae276c97702b3985148a0a2f266af2 100644 (file)
@@ -274,7 +274,7 @@ class TransportPCERendererTesting(unittest.TestCase):
                         'rate': 'org-openroadm-otn-common-types:OTU4',
                         'fec': 'scfec'}
         self.assertDictEqual(input_dict_2,
-            res['interface'][0]['org-openroadm-otn-otu-interfaces:otu'])
+                             res['interface'][0]['org-openroadm-otn-otu-interfaces:otu'])
 
     def test_13_service_path_create_xpdr_check(self):
         url = ("{}/config/network-topology:network-topology/topology/topology-netconf/"
@@ -554,4 +554,4 @@ class TransportPCERendererTesting(unittest.TestCase):
 
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2, failfast=True)
+    unittest.main(verbosity=2, failfast=False)