cls.init_failed = False
cls.processes = test_utils.start_tpce()
# NBI notification feature is not installed by default in Karaf
- if "USE_LIGHTY" not in os.environ or os.environ['USE_LIGHTY'] != 'True':
+ if "NO_ODL_STARTUP" not in os.environ or "USE_LIGHTY" not in os.environ or os.environ['USE_LIGHTY'] != 'True':
print("installing NBI notification feature...")
result = test_utils.install_karaf_feature("odl-transportpce-nbinotifications")
if result.returncode != 0:
self.assertEqual(response.status_code,
requests.codes.created, test_utils.CODE_SHOULD_BE_201)
- def test_05_connect_xprdA_N1_to_roadmA_PP1(self):
+ def test_05_connect_xpdrA_N1_to_roadmA_PP1(self):
response = test_utils.transportpce_api_rpc_request(
'transportpce-networkutils', 'init-xpdr-rdm-links',
{'links-input': {'xpdr-node': 'XPDR-A1', 'xpdr-num': '1', 'network-num': '1',
self.assertIn('Roadm Xponder links created successfully', response["output"]["result"])
time.sleep(2)
- def test_07_connect_xprdC_N1_to_roadmC_PP1(self):
+ def test_07_connect_xpdrC_N1_to_roadmC_PP1(self):
response = test_utils.transportpce_api_rpc_request(
'transportpce-networkutils', 'init-xpdr-rdm-links',
{'links-input': {'xpdr-node': 'XPDR-C1', 'xpdr-num': '1', 'network-num': '1',