X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Ftransportpce_tests%2Fhybrid%2Ftest01_device_change_notifications.py;h=c489551b1be95dba2a1e7a5e963d92a4d1f12ae1;hb=cb175462aba6a5f701c47e478248adbc8e9ce0ea;hp=9ab4ae2d5efedd27f441a8efed9ad2e78100575c;hpb=2c49b4f9dbd9f39543551003c92be4ab57a8e106;p=transportpce.git diff --git a/tests/transportpce_tests/hybrid/test01_device_change_notifications.py b/tests/transportpce_tests/hybrid/test01_device_change_notifications.py index 9ab4ae2d5..c489551b1 100644 --- a/tests/transportpce_tests/hybrid/test01_device_change_notifications.py +++ b/tests/transportpce_tests/hybrid/test01_device_change_notifications.py @@ -42,9 +42,7 @@ class TransportPCEFulltesting(unittest.TestCase): "clli": "SNJSCAMCJP8", "tx-direction": { "port": { - "port-device-name": "1/0/C1", "port-type": "fixed", - "port-name": "1", "port-rack": "000000.00", "port-shelf": "Chassis#1" }, @@ -57,9 +55,7 @@ class TransportPCEFulltesting(unittest.TestCase): }, "rx-direction": { "port": { - "port-device-name": "1/0/C1", "port-type": "fixed", - "port-name": "1", "port-rack": "000000.00", "port-shelf": "Chassis#1" }, @@ -79,9 +75,7 @@ class TransportPCEFulltesting(unittest.TestCase): "clli": "SNJSCAMCJT4", "tx-direction": { "port": { - "port-device-name": "1/0/C1", "port-type": "fixed", - "port-name": "1", "port-rack": "000000.00", "port-shelf": "Chassis#1" }, @@ -94,9 +88,7 @@ class TransportPCEFulltesting(unittest.TestCase): }, "rx-direction": { "port": { - "port-device-name": "1/0/C1", "port-type": "fixed", - "port-name": "1", "port-rack": "000000.00", "port-shelf": "Chassis#1" }, @@ -723,8 +715,7 @@ class TransportPCEFulltesting(unittest.TestCase): res = response.json() links = res['network'][0]['ietf-network-topology:link'] for link in links: - if (link["org-openroadm-common-network:link-type"] == "XPONDER-OUTPUT" or - link["org-openroadm-common-network:link-type"] == "XPONDER-INPUT"): + if link["org-openroadm-common-network:link-type"] in ('XPONDER-OUTPUT', 'XPONDER-INPUT'): link_name = link["link-id"] response = test_utils.delete_request(url+link_name) self.assertEqual(response.status_code, requests.codes.ok)