aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/resources/registration_to_simulator/environment/activate
diff options
context:
space:
mode:
Diffstat (limited to 'vid-automation/src/main/resources/registration_to_simulator/environment/activate')
-rw-r--r--vid-automation/src/main/resources/registration_to_simulator/environment/activate/get_operational_environments_aai1.json87
-rw-r--r--vid-automation/src/main/resources/registration_to_simulator/environment/activate/mso_error_response_for_post_operational_environment.json13
-rw-r--r--vid-automation/src/main/resources/registration_to_simulator/environment/activate/post_activate_operational_environment.json18
3 files changed, 118 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"
+ }
+ }
+ }
+}