diff options
author | 2018-01-31 17:19:00 +0200 | |
---|---|---|
committer | 2018-01-31 17:19:00 +0200 | |
commit | 1cfb08779ea0e00be69e072a940b3063e049fe6b (patch) | |
tree | 6602a900387c8393ed0dcd81c0539381632903c6 /vid-automation/src/main/resources/registration_to_simulator/environment/deactivate | |
parent | 2f20b001b9243e0f8b44aecc768ec265fd538732 (diff) |
org.onap migration
Change-Id: I52f0b2851f2c765752b6d21f49b32136d7d72a3d
Issue-ID: VID-86
Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-automation/src/main/resources/registration_to_simulator/environment/deactivate')
3 files changed, 118 insertions, 0 deletions
diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/error_deactivate_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/error_deactivate_operational_environment.json new file mode 100644 index 000000000..ee5fecd7b --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/error_deactivate_operational_environment.json @@ -0,0 +1,13 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/deactivate" + } , + "simulatorResponse": { + "responseCode": "ERROR_CODE", + "responseHeaders": { + "Content-Type": "text/html" + }, + "body": "ERROR_PAYLOAD" + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/get_operational_environments_aai1.json b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/get_operational_environments_aai1.json new file mode 100644 index 000000000..3b991a16f --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/get_operational_environments_aai1.json @@ -0,0 +1,87 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v12/cloud-infrastructure/operational-environments" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[{ + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Deactivate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Deactivate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + } + ]} + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/post_deactivate_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/post_deactivate_operational_environment.json new file mode 100644 index 000000000..494fa0b2f --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/post_deactivate_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/deactivate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "ENV-UUID", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +} |