Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix functional tests
[transportpce.git]
/
tests
/
transportpce_tests
/
test_portmapping.py
diff --git
a/tests/transportpce_tests/test_portmapping.py
b/tests/transportpce_tests/test_portmapping.py
index b2df50ac552a5863e1e156a36b76983f924da1a9..c51744b14a3c545fb6c02e47fa0931dc9cf57011 100644
(file)
--- 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/"
def test_10_xpdr_portmapping_NETWORK1(self):
url = ("{}/config/portmapping:network/"
- "nodes/XPDRA/mapping/
XPDR-LINE
1"
+ "nodes/XPDRA/mapping/
NETWORK
1"
.format(self.restconf_baseurl))
headers = {'content-type': 'application/json'}
response = requests.request(
.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',
res = response.json()
self.assertIn(
{'supporting-port': '1', 'supporting-circuit-pack-name': '1/0/1-PLUG-NET',
- 'logical-connection-point': '
XPDR-LINE
1'},
+ 'logical-connection-point': '
NETWORK
1'},
res['mapping'])
def test_11_xpdr_portmapping_CLIENT1(self):
url = ("{}/config/portmapping:network/"
res['mapping'])
def test_11_xpdr_portmapping_CLIENT1(self):
url = ("{}/config/portmapping:network/"
- "nodes/XPDRA/mapping/
XPDR-CL
NT1"
+ "nodes/XPDRA/mapping/
CLIE
NT1"
.format(self.restconf_baseurl))
headers = {'content-type': 'application/json'}
response = requests.request(
.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',
self.assertIn(
{'supporting-port': '1',
'supporting-circuit-pack-name': '1/0/2-PLUG-CLIENT',
- 'logical-connection-point': '
XPDR-CL
NT1'},
+ 'logical-connection-point': '
CLIE
NT1'},
res['mapping'])
def test_12_xpdr_device_disconnected(self):
res['mapping'])
def test_12_xpdr_device_disconnected(self):