- test_utils.portmapping_request(nodeMapId)
- nbTp = len(resTopo['network'][0]['node'][i]['ietf-network-topology:termination-point'])
- for j in range(0, nbTp):
- tpId = resTopo['network'][0]['node'][i]['ietf-network-topology:termination-point'][j]['tp-id']
- if((not "CP" in tpId) and (not "CTP" in tpId)):
- test_utils.portmapping_request(nodeMapId+"/mapping/"+tpId)
+ response = test_utils_rfc8040.get_portmapping_node_info(nodeMapId)
+ self.assertEqual(response['status_code'], requests.codes.ok)
+ for val2 in val['ietf-network-topology:termination-point']:
+ tpId = val2['tp-id']
+ if (not "CP" in tpId) and (not "CTP" in tpId):
+ response2 = test_utils_rfc8040.portmapping_request(nodeMapId, tpId)
+ self.assertEqual(response2['status_code'], requests.codes.ok)