Merge "Fix links of v2 API resources"
This commit is contained in:
commit
f55ed58501
@ -41,11 +41,11 @@ def get_lcmocc_all(context):
|
||||
|
||||
|
||||
def lcmocc_href(lcmocc_id, endpoint):
|
||||
return "{}/v2/vnflcm/vnf_lcm_op_occs/{}".format(endpoint, lcmocc_id)
|
||||
return "{}/vnflcm/v2/vnf_lcm_op_occs/{}".format(endpoint, lcmocc_id)
|
||||
|
||||
|
||||
def lcmocc_task_href(lcmocc_id, task, endpoint):
|
||||
return "{}/v2/vnflcm/vnf_lcm_op_occs/{}/{}".format(endpoint, lcmocc_id,
|
||||
return "{}/vnflcm/v2/vnf_lcm_op_occs/{}/{}".format(endpoint, lcmocc_id,
|
||||
task)
|
||||
|
||||
|
||||
|
@ -47,7 +47,7 @@ def get_subsc_all(context):
|
||||
|
||||
|
||||
def subsc_href(subsc_id, endpoint):
|
||||
return "{}/v2/vnflcm/subscriptions/{}".format(endpoint, subsc_id)
|
||||
return "{}/vnflcm/v2/subscriptions/{}".format(endpoint, subsc_id)
|
||||
|
||||
|
||||
def _get_notification_auth_handle(subsc):
|
||||
|
@ -35,7 +35,7 @@ def get_inst_all(context):
|
||||
|
||||
|
||||
def inst_href(inst_id, endpoint):
|
||||
return "{}/v2/vnflcm/vnf_instances/{}".format(endpoint, inst_id)
|
||||
return "{}/vnflcm/v2/vnf_instances/{}".format(endpoint, inst_id)
|
||||
|
||||
|
||||
def make_inst_links(inst, endpoint):
|
||||
|
@ -645,11 +645,11 @@ class TestVnfLcmDriverV2(base.BaseTestCase):
|
||||
def _grant_req_links(self, lcmocc_id, inst_id):
|
||||
return {
|
||||
'vnfLcmOpOcc': {
|
||||
'href': '{}/v2/vnflcm/vnf_lcm_op_occs/{}'.format(
|
||||
'href': '{}/vnflcm/v2/vnf_lcm_op_occs/{}'.format(
|
||||
self.driver.endpoint, lcmocc_id)
|
||||
},
|
||||
'vnfInstance': {
|
||||
'href': '{}/v2/vnflcm/vnf_instances/{}'.format(
|
||||
'href': '{}/vnflcm/v2/vnf_instances/{}'.format(
|
||||
self.driver.endpoint, inst_id)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user