X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Ftransportpce_tests%2Fcommon%2Ftest_utils.py;h=d5118149b0816a022b83040eeea715af8aa07859;hb=refs%2Fchanges%2F18%2F98218%2F2;hp=46bf27a676ddb1b9a0e1978c9b7b4a3dbb0cd2ce;hpb=f166263a0424f3f0568ec61945ce2c61386de2f2;p=transportpce.git diff --git a/tests/transportpce_tests/common/test_utils.py b/tests/transportpce_tests/common/test_utils.py index 46bf27a67..d5118149b 100644 --- a/tests/transportpce_tests/common/test_utils.py +++ b/tests/transportpce_tests/common/test_utils.py @@ -393,6 +393,7 @@ def service_delete_request(servicename: str, "tail-retention": "no"}}} return post_request(URL_SERV_DELETE, attr) + def service_path_request(operation: str, servicename: str, wavenumber: str, nodes, centerfreq: str, slotwidth: int, minfreq: float, maxfreq: float, lowerslotnumber: int, higherslotnumber: int): @@ -446,20 +447,24 @@ def path_computation_request(requestid: str, servicename: str, serviceaend, serv attr.update(other_attr) return post_request(URL_PATH_COMPUTATION_REQUEST, {"input": attr}) + def tapi_create_connectivity_request(topologyidorname): return post_request(URL_TAPI_CREATE_CONNECTIVITY, topologyidorname) + def tapi_delete_connectivity_request(serviceidorname): attr = { "input": { "service-id-or-name": serviceidorname}} - return post_request(URL_TAPI_DELETE_CONNECTIVITY , attr) + return post_request(URL_TAPI_DELETE_CONNECTIVITY, attr) + def tapi_get_topology_details_request(topologyidorname): attr = { "input": { "topology-id-or-name": topologyidorname}} - return post_request(URL_TAPI_TOPOLOGY_DETAILS , attr) + return post_request(URL_TAPI_TOPOLOGY_DETAILS, attr) + def tapi_get_node_details_request(topologyidorname, nodeidorname): attr = { @@ -468,12 +473,15 @@ def tapi_get_node_details_request(topologyidorname, nodeidorname): "node-id-or-name": nodeidorname}} return post_request(URL_TAPI_NODE_DETAILS, attr) + def tapi_get_sip_details_request(): return post_request(URL_TAPI_SIP_LIST, "") + def tapi_get_service_list_request(): return post_request(URL_TAPI_SERVICE_LIST, "") + def shutdown_process(process): if process is not None: for child in psutil.Process(process.pid).children():