self.assertNotIn('avail-freq-maps', dict.keys(ele))
def test_26_check_openroadm_topology_links(self):
- #response = test_utils.get_ietf_network_request('otn-topology', 'config')
+ # response = test_utils.get_ietf_network_request('otn-topology', 'config')
response = test_utils.get_ietf_network_request('openroadm-topology', 'config')
self.assertEqual(response['status_code'], requests.codes.ok)
self.assertEqual(len(response['network'][0]['ietf-network-topology:link']), 22)
self.assertNotIn('avail-freq-maps', dict.keys(ele))
def test_39_getLinks_OtnTopology(self):
- #response = test_utils.get_ietf_network_request('otn-topology', 'config')
+ # response = test_utils.get_ietf_network_request('otn-topology', 'config')
response = test_utils.get_ietf_network_request('openroadm-topology', 'config')
self.assertEqual(response['status_code'], requests.codes.ok)
self.assertEqual(len(response['network'][0]['node']), 13)
('xpdrc', '7.1'): {'port': '17854', 'configfile': 'oper-XPDRC.xml', 'logfile': 'xpdrc-71.log', 'restconf_baseurl': 'http://127.0.0.1:8154/restconf'},
('xpdra2', '7.1'): {'port': '17857', 'configfile': 'oper-XPDRA2.xml', 'logfile': 'xpdra2-71.log', 'restconf_baseurl': 'http://127.0.0.1:8157/restconf'},
('xpdrc2', '7.1'): {'port': '17858', 'configfile': 'oper-XPDRC2.xml', 'logfile': 'xpdrc2-71.log', 'restconf_baseurl': 'http://127.0.0.1:8158/restconf'},
- ('sample-openconfig-mpdr', 'oc'): {'port': '19840', 'configfile': 'sample-openconfig-mpdr.xml', 'logfile': 'sample-openconfig-mpdr.log', 'restconf_baseurl': 'http://127.0.0.1:8159/restconf'}
+ ('oc-mpdr', 'oc'): {'port': '19840', 'configfile': 'sample-openconfig-mpdr.xml', 'logfile': 'sample-openconfig-mpdr.log', 'restconf_baseurl': 'http://127.0.0.1:8159/restconf'}
}
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-# pylint: disable=no-member
-# pylint: disable=too-many-public-methods
-
import unittest
import time
import requests
# pylint: disable=wrong-import-order
import sys
-from . import test_utils_oc
-sys.path.append('transportpce_tests/common')
+sys.path.append('transportpce_tests/common/')
# pylint: disable=wrong-import-position
# pylint: disable=import-error
import test_utils # nopep8
+import test_utils_oc # nopep8
class TransportpceOCPortMappingTesting(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.processes = test_utils.start_tpce()
- cls.processes = test_utils.start_sims([('sample-openconfig-mpdr', cls.NODE_VERSION)])
+ cls.processes = test_utils.start_sims([('oc-mpdr', cls.NODE_VERSION)])
@classmethod
def tearDownClass(cls):
def test_03_xpdr_device_connection(self):
response = test_utils.mount_device("XPDR-OC",
- ('sample-openconfig-mpdr', self.NODE_VERSION))
+ ('oc-mpdr', self.NODE_VERSION))
self.assertEqual(response.status_code, requests.codes.created,
test_utils.CODE_SHOULD_BE_201)