diff options
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 000000000..ee434d074 --- /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 000000000..6d135dd8d --- /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 000000000..33f5d93d1 --- /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 000000000..8aac9b676 --- /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 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" + } + } + } +} 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 000000000..3c501a093 --- /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 000000000..9b34b2a5a --- /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" + } +} |