odl_process = None
restconf_baseurl = "http://localhost:8181/restconf"
+#START_IGNORE_XTESTING
+
@classmethod
def __start_honeynode1(cls):
executable = ("./honeynode/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
if os.path.isfile(executable):
with open('honeynode1.log', 'w') as outfile:
cls.honeynode_process1 = subprocess.Popen(
- [executable, "17830", "sample_configs/ord_2.1/oper-ROADMA.xml"],
+ [executable, "17830", "sample_configs/openroadm/2.1/oper-ROADMA.xml"],
stdout=outfile)
@classmethod
if os.path.isfile(executable):
with open('honeynode2.log', 'w') as outfile:
cls.honeynode_process2 = subprocess.Popen(
- [executable, "17831", "sample_configs/ord_2.1/oper-XPDRA.xml"],
+ [executable, "17831", "sample_configs/openroadm/2.1/oper-XPDRA.xml"],
stdout=outfile)
@classmethod
print ("execution of {}".format(self.id().split(".")[-1]))
time.sleep(10)
+#END_IGNORE_XTESTING
+
def test_01_rdm_device_connected(self):
url = ("{}/config/network-topology:"
"network-topology/topology/topology-netconf/node/ROADMA"
res = response.json()
self.assertIn(
{"error-type":"application", "error-tag":"data-missing",
- "error-message":"Request could not be completed because the relevant data model content does not exist "},
+ "error-message":"Request could not be completed because the relevant data model content does not exist"},
res['errors']['error'])
def test_16_service_path_delete_rdm_check(self):
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist "},
+ {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist"},
res['errors']['error'])
def test_17_service_path_delete_rdm_check(self):
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist "},
+ {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist"},
res['errors']['error'])
def test_18_service_path_delete_xpdr_check(self):
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist "},
+ {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist"},
res['errors']['error'])
def test_19_service_path_delete_xpdr_check(self):
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist "},
+ {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist"},
res['errors']['error'])
def test_20_service_path_delete_xpdr_check(self):
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist "},
+ {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist"},
res['errors']['error'])
def test_21_service_path_delete_xpdr_check(self):
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist "},
+ {"error-type":"application", "error-tag":"data-missing", "error-message":"Request could not be completed because the relevant data model content does not exist"},
res['errors']['error'])
def test_22_service_path_delete_xpdr_check(self):