From 5233ff84430a70fa83c91ca4a4bfa3c02ad143eb Mon Sep 17 00:00:00 2001 From: Martial COULIBALY Date: Mon, 13 Aug 2018 15:32:39 +0200 Subject: [PATCH] fix netconf testtool portmapping Change-Id: I0a1aa88e3488fd585ea85616210761799ba046ad Signed-off-by: Martial COULIBALY --- tests/transportpce_tests/test_portmapping.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/transportpce_tests/test_portmapping.py b/tests/transportpce_tests/test_portmapping.py index c51744b14..2a0b81734 100644 --- a/tests/transportpce_tests/test_portmapping.py +++ b/tests/transportpce_tests/test_portmapping.py @@ -208,7 +208,7 @@ class TransportPCEPortMappingTesting(unittest.TestCase): def test_10_xpdr_portmapping_NETWORK1(self): url = ("{}/config/portmapping:network/" - "nodes/XPDRA/mapping/NETWORK1" + "nodes/XPDRA/mapping/XPDR1-NETWORK1" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( @@ -217,12 +217,12 @@ class TransportPCEPortMappingTesting(unittest.TestCase): res = response.json() self.assertIn( {'supporting-port': '1', 'supporting-circuit-pack-name': '1/0/1-PLUG-NET', - 'logical-connection-point': 'NETWORK1'}, + 'logical-connection-point': 'XPDR1-NETWORK1'}, res['mapping']) def test_11_xpdr_portmapping_CLIENT1(self): url = ("{}/config/portmapping:network/" - "nodes/XPDRA/mapping/CLIENT1" + "nodes/XPDRA/mapping/XPDR1-CLIENT1" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( @@ -232,7 +232,7 @@ class TransportPCEPortMappingTesting(unittest.TestCase): self.assertIn( {'supporting-port': '1', 'supporting-circuit-pack-name': '1/0/2-PLUG-CLIENT', - 'logical-connection-point': 'CLIENT1'}, + 'logical-connection-point': 'XPDR1-CLIENT1'}, res['mapping']) def test_12_xpdr_device_disconnected(self): -- 2.36.6