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 | |
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')
9 files changed, 380 insertions, 0 deletions
diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/activate/get_operational_environments_aai1.json b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/get_operational_environments_aai1.json new file mode 100644 index 00000000..ee434d07 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/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": "Activate", + "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/activate/mso_error_response_for_post_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/mso_error_response_for_post_operational_environment.json new file mode 100644 index 00000000..6d135dd8 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/mso_error_response_for_post_operational_environment.json @@ -0,0 +1,13 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/activate" + } , + "simulatorResponse": { + "responseCode": "ERROR_CODE", + "responseHeaders": { + "Content-Type": "text/html" + }, + "body": "ERROR_PAYLOAD" + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/activate/post_activate_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/post_activate_operational_environment.json new file mode 100644 index 00000000..33f5d93d --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/post_activate_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "ENV-UUID", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/attachManifest/get_attachable_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/attachManifest/get_attachable_operational_environment.json new file mode 100644 index 00000000..8aac9b67 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/attachManifest/get_attachable_operational_environment.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": "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-7a77e2a974ec", + "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" + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "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" + } + ]} + } +}
\ No newline at end of file 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 00000000..ee5fecd7 --- /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 00000000..3b991a16 --- /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 00000000..494fa0b2 --- /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" + } + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status.json b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status.json new file mode 100644 index 00000000..3c501a09 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status.json @@ -0,0 +1,39 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams" : { + "requestId": [ "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "3212b08c-0dcd-4d20-8c84-51e4f325c14a", + "startTime": "Thu, 02 Jun 2017 02:51:59 GMT", + "instanceReferences": { + "operationalEnvironmentInstanceId": "bc305d54-75b4-431b-adb2-eb6b9e546014" + }, + "requestScope": "operationalEnvironment", + "requestType": "REQUEST-TYPE", + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "az2017" + }, + "requestParameters": { + "operationalEnvironmentType": "VNF" + } + }, + "requestStatus": { + "timestamp": "Thu, 02 Jun 2017 02:53:39 GMT", + "requestState": "COMPLETE", + "statusMessage": "status_message", + "percentProgress": "100" + } + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status_bad_response.json b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status_bad_response.json new file mode 100644 index 00000000..9b34b2a5 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status_bad_response.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams": { + "requestId": [ + "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + ] + } + }, + "simulatorResponse": { + "responseCode": "ERROR_CODE", + "responseHeaders": { + "Content-Type": "text/html" + }, + "body": "ERROR_PAYLOAD" + } +} |