# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+# pylint: disable=no-member
+# pylint: disable=too-many-public-methods
+
import unittest
import time
import requests
@classmethod
def tearDownClass(cls):
+ # pylint: disable=not-an-iterable
for process in cls.processes:
test_utils.shutdown_process(process)
print("all processes killed")
'port-qual': 'xpdr-client', 'lcp-hash-val': 'AO9UFkY/TLYy'},
res['mapping'])
+ def test_15_xpdr_portmapping_CLIENT4(self):
response = test_utils.portmapping_request("XPDRA01/mapping/XPDR1-CLIENT4")
self.assertEqual(response.status_code, requests.codes.ok)
res = response.json()
def test_17_xpdr_device_disconnected(self):
response = test_utils.get_netconf_oper_request("XPDRA01")
- self.assertEqual(response.status_code, requests.codes.not_found)
+ self.assertEqual(response.status_code, requests.codes.conflict)
res = response.json()
self.assertIn(
{"error-type": "application", "error-tag": "data-missing",
def test_18_xpdr_device_not_connected(self):
response = test_utils.portmapping_request("XPDRA01")
- self.assertEqual(response.status_code, requests.codes.not_found)
+ self.assertEqual(response.status_code, requests.codes.conflict)
res = response.json()
self.assertIn(
{"error-type": "application", "error-tag": "data-missing",
def test_20_rdm_device_disconnected(self):
response = test_utils.get_netconf_oper_request("ROADMA01")
- self.assertEqual(response.status_code, requests.codes.not_found)
+ self.assertEqual(response.status_code, requests.codes.conflict)
res = response.json()
self.assertIn(
{"error-type": "application", "error-tag": "data-missing",
def test_21_rdm_device_not_connected(self):
response = test_utils.portmapping_request("ROADMA01")
- self.assertEqual(response.status_code, requests.codes.not_found)
+ self.assertEqual(response.status_code, requests.codes.conflict)
res = response.json()
self.assertIn(
{"error-type": "application", "error-tag": "data-missing",