diff options
author | 2018-08-12 15:23:14 +0300 | |
---|---|---|
committer | 2018-08-12 15:23:57 +0300 | |
commit | 8f848c65ee0000bb4211b228cf66ace774a8d9c6 (patch) | |
tree | 8abec7471adb0cac4ba9ff0fbcbedc56ea792621 /vid-ext-services-simulator/src/main/resources/preset_registration/environment | |
parent | 91b057331b92ecf7f3c2d495681b05295dc8346c (diff) |
vid-simulator dev and test tool
Change-Id: I38e7eead042bde3beeebbdf4e05a7f62f174fd1e
Issue-ID: VID-281
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-ext-services-simulator/src/main/resources/preset_registration/environment')
5 files changed, 432 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/environment/get_cloud_resources_request_status.json b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/get_cloud_resources_request_status.json new file mode 100644 index 00000000..9d2699cd --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/get_cloud_resources_request_status.json @@ -0,0 +1,119 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams" : { + "requestId": [ "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "3212b08c-0dcd-4d20-8c84-d3a24873dfbd", + "startTime": "Thu, 02 Jun 2017 02:51:59 GMT", + "instanceReferences": { + "operationalEnvironmentInstanceId": "bc305d54-75b4-431b-adb2-eb6b9e546014" + }, + "requestScope": "operationalEnvironment", + "requestType": "deactivate", + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "az2017" + }, + "requestParameters": { + "operationalEnvironmentType": "VNF" + } + }, + "requestStatus": { + "timestamp": "Thu, 02 Jun 2017 02:53:39 GMT", + "requestState": "COMPLETE", + "statusMessage": "Operational Environment successfully deactivated", + "percentProgress": "100" + } + } + } + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams" : { + "requestId": [ "dbe54591-c8ed-46d3-abc7-d3a24873dfbf" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "3212b08c-0dcd-4d20-8c84-d3a24873dfbf", + "startTime": "Thu, 02 Jun 2017 02:51:59 GMT", + "instanceReferences": { + "operationalEnvironmentInstanceId": "bc305d54-75b4-431b-adb2-eb6b9e546014" + }, + "requestScope": "operationalEnvironment", + "requestType": "activate", + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "az2017" + }, + "requestParameters": { + "operationalEnvironmentType": "VNF" + } + }, + "requestStatus": { + "timestamp": "Thu, 02 Jun 2017 02:53:39 GMT", + "requestState": "COMPLETE", + "statusMessage": "Operational Environment successfully activated", + "percentProgress": "100" + } + } + } + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams" : { + "requestId": [ "dbe54591-c8ed-46d3-abc7-d3a24873dfbc" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "3212b08c-0dcd-4d20-8c84-d3a24873dfbc", + "startTime": "Thu, 02 Jun 2017 02:51:59 GMT", + "instanceReferences": { + "operationalEnvironmentInstanceId": "bc305d54-75b4-431b-adb2-eb6b9e546014" + }, + "requestScope": "operationalEnvironment", + "requestType": "create", + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "az2017" + }, + "requestParameters": { + "operationalEnvironmentType": "VNF" + } + }, + "requestStatus": { + "timestamp": "Thu, 02 Jun 2017 02:53:39 GMT", + "requestState": "COMPLETE", + "statusMessage": "Operational Environment successfully created", + "percentProgress": "100" + } + } + } + } + } +]
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/environment/get_operational_environments_aai.json b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/get_operational_environments_aai.json new file mode 100644 index 00000000..b2834d6d --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/get_operational_environments_aai.json @@ -0,0 +1,165 @@ +[{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../cloud-infrastructure/operational-environments", + "queryParams": { + "operational-environment-type" : "VNF" + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[ + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "operational_environment_ea", + "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": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-environment-name", + "property-value": "operational_environment_ecomp_ea" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "operational_environment_eb", + "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": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-environment-name", + "property-value": "operational_environment_ecomp_eb" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "operational_environment_ec", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-environment-name", + "property-value": "operational_environment_ecomp_ec" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "operational-environment-name": "operational_environment_ed", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-environment-name", + "property-value": "operational_environment_ecomp_ed" + } + ] + } + ] + } + } + ]} + } +}, + { + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../cloud-infrastructure/operational-environments", + "queryParams": { + "operational-environment-type": "ECOMP" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment": [ + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "operational_environment_ec", + "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": "operational_environment_ed", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + } + ] + } + } + }] diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_activate_operational_environment.json b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_activate_operational_environment.json new file mode 100644 index 00000000..4d24391e --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_activate_operational_environment.json @@ -0,0 +1,74 @@ +[ + { + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974eb/activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbf" + } + } + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974ea/activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbf" + } + } + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974ec/activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbf" + } + } + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974ed/activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbf" + } + } + } + } +] diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_deactivate_operational_environment.json b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_deactivate_operational_environment.json new file mode 100644 index 00000000..420d26e6 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_deactivate_operational_environment.json @@ -0,0 +1,56 @@ +[ + { + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974ec/deactivate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974ea/deactivate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974ed/deactivate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } + } +]
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_operational_environment.json b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_operational_environment.json new file mode 100644 index 00000000..c7380ea4 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/environment/post_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments" +} , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body":{ + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ef", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbc" + } + } + } +}
\ No newline at end of file |