def test_02_connect_SPDR_SC1(self):
        response = test_utils.mount_device("SPDR-SC1", ('spdrc', self.NODE_VERSION))
        self.assertEqual(response.status_code, requests.codes.created,
                         test_utils.CODE_SHOULD_BE_201)
        time.sleep(10)

        response = test_utils.get_netconf_oper_request("SPDR-SC1")
        self.assertEqual(response.status_code, requests.codes.ok)
        res = response.json()
        self.assertEqual(
            res['node'][0]['netconf-node-topology:connection-status'],
            'connected')
 def test_02_xpdr_device_connected(self):
     response = test_utils.mount_device("XPDRA01",
                                        ('xpdra', self.NODE_VERSION))
     self.assertEqual(response.status_code, requests.codes.created,
                      test_utils.CODE_SHOULD_BE_201)
 def test_01_rdm_device_connected(self):
     response = test_utils.mount_device("ROADMA01",
                                        ('roadma', self.NODE_VERSION))
     self.assertEqual(response.status_code, requests.codes.created,
                      test_utils.CODE_SHOULD_BE_201)
Exemplo n.º 4
0
 def test_21_connect_spdr_sc1(self):
     response = test_utils.mount_device("SPDR-SC1",
                                        ('spdrc', self.NODE_VERSION))
     self.assertEqual(response.status_code, requests.codes.created,
                      test_utils.CODE_SHOULD_BE_201)
     time.sleep(10)
Exemplo n.º 5
0
 def test_09_connect_rdmc(self):
     response = test_utils.mount_device("ROADM-C1",
                                        ('roadmc', self.NODE_VERSION))
     self.assertEqual(response.status_code, requests.codes.created,
                      test_utils.CODE_SHOULD_BE_201)
     time.sleep(10)
Exemplo n.º 6
0
 def test_06_connect_xpdra(self):
     response = test_utils.mount_device("XPDR-A1",
                                        ('xpdra', self.NODE_VERSION))
     self.assertEqual(response.status_code, requests.codes.created,
                      test_utils.CODE_SHOULD_BE_201)
     time.sleep(10)