aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org
diff options
context:
space:
mode:
authorSonsino, Ofir (os0695) <os0695@intl.att.com>2018-08-12 14:51:28 +0300
committerSonsino, Ofir (os0695) <os0695@intl.att.com>2018-08-12 15:02:57 +0300
commit4a4dcc5185f8ba5a28c7f9fef509f32c0c2389e6 (patch)
tree23e55ee7e1ad9b91bcc3ef1dbe1fb7b183f8b2b6 /vid-automation/src/main/java/org
parent661a24fd57de02869a9771761e0fcba7eb77d121 (diff)
vid-automation selenium tests
Change-Id: I6c1b0a0cf3bbfa4314c81f0cc72507db805ec632 Issue-ID: VID-281 Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-automation/src/main/java/org')
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java12
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseEcompPortalPreset.java12
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java30
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java33
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BasePreset.java47
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java12
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/BasePresetAAIGetVersion.java48
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBadBodyForGetServicesGet.java15
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseGetServicesGet.java16
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseSearchNodeQuery.java16
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java93
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegion.java182
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionInvalidRequest.java185
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionRequiredMissing.java181
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java176
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java157
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetMultipleVersion.java59
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java338
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java342
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java337
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkZones.java794
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetOneVersion.java33
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java31
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java129
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java18
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java129
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServiceModelList.java80
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java122
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java46
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java159
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGetInvalidResponse.java17
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java27
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIPostNamedQueryForViewEdit.java100
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAISearchNodeQueryEmptyResult.java14
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIServiceDesignAndCreationPut.java427
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java18
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java18
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java18
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java20
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/RegistrationRequest.java54
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/Subscriber.java19
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetActivateServiceInstancePost.java12
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetDeactivateServiceInstancePost.java12
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOAssignServiceInstanceGen2WithNames.java16
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseCreateServiceInstancePost.java34
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseDelete.java37
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2.java104
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2WithNames.java15
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstancePost.java12
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVNFInstancePost.java21
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVfModuleInstancePost.java62
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteInstanceOrchestrationRequestGet.java64
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteNetwork.java23
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java30
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVfModule.java26
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVnf.java23
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVolumeGroup.java26
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGet.java77
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java24
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java30
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2WithNames.java131
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java50
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java30
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java22
64 files changed, 5445 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java
new file mode 100644
index 000000000..d75b41ee8
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java
@@ -0,0 +1,12 @@
+package org.opencomp.simulator.presetGenerator.presets.BasePresets;
+
+/**
+ * Created by itzikliderman on 27/12/2017.
+ */
+public abstract class BaseAAIPreset extends BasePreset {
+
+ @Override
+ protected String getRootPath() {
+ return "/aai/v..";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseEcompPortalPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseEcompPortalPreset.java
new file mode 100644
index 000000000..d073a7164
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseEcompPortalPreset.java
@@ -0,0 +1,12 @@
+package org.opencomp.simulator.presetGenerator.presets.BasePresets;
+
+/**
+ * Created by itzikliderman on 27/12/2017.
+ */
+public abstract class BaseEcompPortalPreset extends BasePreset {
+
+ @Override
+ protected String getRootPath() {
+ return "/ecompportal_att/auxapi";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java
new file mode 100644
index 000000000..e30bdefeb
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java
@@ -0,0 +1,30 @@
+package org.opencomp.simulator.presetGenerator.presets.BasePresets;
+
+import vid.automation.test.infra.Features;
+
+/**
+ * Created by itzikliderman on 27/12/2017.
+ */
+public abstract class BaseMSOPreset extends BasePreset {
+
+ public static String getRequestBodyWithTestApiOnly() {
+ if (Features.FLAG_ADD_MSO_TESTAPI_FIELD.isActive()) {
+ return "" +
+ "{" +
+ " \"requestDetails\": { " +
+ " \"requestParameters\": { " +
+ " \"testApi\": \"GR_API\" " +
+ " } " +
+ " } " +
+ "} " +
+ "";
+ } else {
+ return null;
+ }
+ }
+
+ @Override
+ protected String getRootPath() {
+ return "/mso";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java
new file mode 100644
index 000000000..8f298c45a
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java
@@ -0,0 +1,33 @@
+package org.opencomp.simulator.presetGenerator.presets.BasePresets;
+
+import org.springframework.http.HttpMethod;
+
+/**
+ * Created by itzikliderman on 21/12/2017.
+ */
+public abstract class BaseMSOPresetServiceInstanceOperationsPost extends BaseMSOPreset {
+ @Override
+ protected String getRootPath() {
+ return super.getRootPath() + "/cloudResources/v1/operationalEnvironments/ENV-UUID";
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{"+
+ " \"requestReferences\": {"+
+ " \"instanceId\": \"dbe54591-c8ed-46d3-abc7-d3a24873dfbd\","+
+ " \"requestId\": \"dbe54591-c8ed-46d3-abc7-d3a24873sssa\""+
+ " }"+
+ " }";
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.POST;
+ }
+
+ @Override
+ public int getResponseCode() {
+ return 202;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BasePreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BasePreset.java
new file mode 100644
index 000000000..51ba8590c
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BasePreset.java
@@ -0,0 +1,47 @@
+package org.opencomp.simulator.presetGenerator.presets.BasePresets;
+
+import org.opencomp.simulator.presetGenerator.presets.model.RegistrationRequest;
+import org.springframework.http.HttpMethod;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Created by itzikliderman on 13/12/2017.
+ */
+public abstract class BasePreset {
+
+ public RegistrationRequest generateScenario() {
+ Map<String, String> headers = new HashMap<>();
+ headers.put("Content-Type", getContentType());
+
+ return new RegistrationRequest(
+ new RegistrationRequest.SimulatorRequest(getReqMethod(), getReqPath(), getQueryParams(), getRequestBody()),
+ new RegistrationRequest.SimulatorResponse(getResponseCode(), headers, getResponseBody(), getFile()));
+ }
+
+ public Object getResponseBody() { return null; };
+
+ public String getContentType() {
+ return "application/json";
+ }
+
+ public String getFile() {
+ return null;
+ }
+
+ public int getResponseCode() { return 200; }
+
+ public abstract HttpMethod getReqMethod();
+
+ public abstract String getReqPath();
+
+ public Object getRequestBody() {
+ return null;
+ }
+
+ public Map<String, List> getQueryParams() { return null; }
+
+ protected abstract String getRootPath();
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java
new file mode 100644
index 000000000..ef64450b1
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java
@@ -0,0 +1,12 @@
+package org.opencomp.simulator.presetGenerator.presets.BasePresets;
+
+/**
+ * Created by itzikliderman on 27/12/2017.
+ */
+public abstract class BaseSDCPreset extends BasePreset {
+
+ @Override
+ protected String getRootPath() {
+ return "/sdc/v1/catalog/services";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/BasePresetAAIGetVersion.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/BasePresetAAIGetVersion.java
new file mode 100644
index 000000000..18644b819
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/BasePresetAAIGetVersion.java
@@ -0,0 +1,48 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class BasePresetAAIGetVersion extends BaseAAIPreset {
+ public String modelVersionId1;
+ public String modelInvariantId;
+
+ public BasePresetAAIGetVersion(String modelVersionId1, String modelInvariantId) {
+ this.modelVersionId1 = modelVersionId1;
+ this.modelInvariantId = modelInvariantId;
+ }
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of("format", Collections.singletonList("resource"));
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return "{\"start\" : \"service-design-and-creation/models/\", \"query\" : \"query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK\"}";
+ }
+
+ public String getModelVersionId1() {
+ return modelVersionId1;
+ }
+
+ public String getModelInvariantId() {
+ return modelInvariantId;
+ }
+
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBadBodyForGetServicesGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBadBodyForGetServicesGet.java
new file mode 100644
index 000000000..0a90bf8df
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBadBodyForGetServicesGet.java
@@ -0,0 +1,15 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIBadBodyForGetServicesGet extends PresetAAIBaseGetServicesGet {
+
+ private String responseBody;
+
+ public PresetAAIBadBodyForGetServicesGet(String responseBody) {
+ this.responseBody = responseBody;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return responseBody;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseGetServicesGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseGetServicesGet.java
new file mode 100644
index 000000000..82e3f406e
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseGetServicesGet.java
@@ -0,0 +1,16 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+public class PresetAAIBaseGetServicesGet extends BaseAAIPreset {
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/service-design-and-creation/services";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseSearchNodeQuery.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseSearchNodeQuery.java
new file mode 100644
index 000000000..d8553ca8d
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIBaseSearchNodeQuery.java
@@ -0,0 +1,16 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+public abstract class PresetAAIBaseSearchNodeQuery extends BaseAAIPreset {
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/search/nodes-query";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java
new file mode 100644
index 000000000..2e634bd9e
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java
@@ -0,0 +1,93 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAICloudRegionAndSourceFromConfigurationPut extends BaseAAIPreset {
+
+ public PresetAAICloudRegionAndSourceFromConfigurationPut(String configurationId, String cloudRegionId) {
+ this.configurationId = configurationId;
+ this.cloudRegionId = cloudRegionId;
+ }
+
+ private final String configurationId;
+ private final String cloudRegionId;
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("simple"),
+ "nodesOnly", Collections.singletonList("true")
+ );
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", ImmutableList.of("network/configurations/configuration/" + getConfigurationId()),
+ "query", "query/cloud-region-and-source-FromConfiguration"
+ );
+ // "{" +
+ // " \"start\": [\"network/configurations/configuration/{configuration-id}\"]," +
+ // " \"query\": \"query/cloud-region-and-source-FromConfiguration\"" +
+ // "}";
+ }
+
+ public String getConfigurationId() {
+ return configurationId;
+ }
+
+ public String getCloudRegionId() {
+ return cloudRegionId;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "" +
+ "{" +
+ " \"results\": [{" +
+ " \"id\": \"2979590232\"," +
+ " \"node-type\": \"cloud-region\"," +
+ " \"url\": \"/aai/v12/cloud-infrastructure/cloud-regions/cloud-region/att-aic/SDNO-S-BcloudReg-E1802\"," +
+ " \"properties\": {" +
+ " \"cloud-owner\": \"att-aic\"," +
+ " \"cloud-region-id\": \"" + getCloudRegionId() + "\"," +
+ " \"sriov-automation\": false," +
+ " \"resource-version\": \"1513631040564\"" +
+ " }" +
+ " }," +
+ " {" +
+ " \"id\": \"2979598424\"," +
+ " \"node-type\": \"generic-vnf\"," +
+ " \"url\": \"/aai/v12/network/generic-vnfs/generic-vnf/SOURCE-gVnf-E1802\"," +
+ " \"properties\": {" +
+ " \"vnf-id\": \"SOURCE-gVnf-E1802\"," +
+ " \"vnf-name\": \"SOURCE-vnf-SDNO\"," +
+ " \"vnf-type\": \"S-1-SDNO\"," +
+ " \"service-id\": \"a9a77d5a-123e-4-SDNO\"," +
+ " \"orchestration-status\": \"active\"," +
+ " \"in-maint\": true," +
+ " \"is-closed-loop-disabled\": false," +
+ " \"resource-version\": \"1513631043149\"" +
+ " }" +
+ " }" +
+ " ]" +
+ "}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegion.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegion.java
new file mode 100644
index 000000000..283befefa
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegion.java
@@ -0,0 +1,182 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetInstanceGroupsByCloudRegion extends BaseAAIPreset {
+
+ private String cloudOwner;
+ private String cloudRegionId;
+ private String networkFunction;
+ private final String type = "L3-NETWORK";
+ private final String role = "SUB-INTERFACE";
+
+ public PresetAAIGetInstanceGroupsByCloudRegion(String cloudOwner, String cloudRegionId, String networkFunction) {
+ this.cloudOwner = cloudOwner;
+ this.cloudRegionId = cloudRegionId;
+ this.networkFunction = networkFunction;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("resource")
+ );
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", ImmutableList.of("cloud-infrastructure/cloud-regions/cloud-region/" + getCloudOwner() + "/" + getCloudRegionId()),
+ "query", "query/instance-group-byCloudRegion?type=" + type + "&role=" + role + "&function=" + getNetworkFunction()
+ );
+ }
+
+ public String getCloudOwner() {
+ return cloudOwner;
+ }
+
+ public String getCloudRegionId() {
+ return cloudRegionId;
+ }
+
+ public String getNetworkFunction() {
+ return networkFunction;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"results\": [\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id3\",\n" +
+ " \"model-version-id\": \"a0efd5fc-f7be-4502-936a-a6c6392b958f\",\n" +
+ " \"id\": \"AAI-12002-test3-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520888659539\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id1\",\n" +
+ " \"model-version-id\": \"a0efd5fc-f7be-4502-936a-a6c6392b958f\",\n" +
+ " \"id\": \"AAI-12002-test1-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520886467989\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id2\",\n" +
+ " \"model-version-id\": \"version2\",\n" +
+ " \"id\": \"AAI-12002-test2-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520888629970\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ " ]\n" +
+ "}\n";
+ }
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionInvalidRequest.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionInvalidRequest.java
new file mode 100644
index 000000000..e47612d15
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionInvalidRequest.java
@@ -0,0 +1,185 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetInstanceGroupsByCloudRegionInvalidRequest extends BaseAAIPreset {
+
+ private String cloudOwner;
+ private String cloudRegionId;
+ private String networkFunction;
+ private final String type = "L3-NETWORK";
+ private final String role = "SUB-INTERFACE";
+
+ public PresetAAIGetInstanceGroupsByCloudRegionInvalidRequest(String cloudOwner, String cloudRegionId, String networkFunction) {
+ this.cloudOwner = cloudOwner;
+ this.cloudRegionId = cloudRegionId;
+ this.networkFunction = networkFunction;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("resource")
+ );
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", ImmutableList.of("cloud-infrastructure/cloud-regions/cloud-region/" + getCloudOwner() + "/" + getCloudRegionId()),
+ "query", "query/instance-group-byCloudRegion?type=" + type + "&role=" + role + "&function=" + getNetworkFunction()
+ );
+ }
+
+ public String getCloudOwner() {
+ return cloudOwner;
+ }
+
+ public String getCloudRegionId() {
+ return cloudRegionId;
+ }
+
+ public String getNetworkFunction() {
+ return networkFunction;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"results\": [\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"some-filed\": \"some-data\",\n" + //extra field
+ " \"model-invariant-id\": \"model-id3\",\n" +
+ " \"model-version-id\": \"a0efd5fc-f7be-4502-936a-a6c6392b958f\",\n" +
+ " \"id\": \"AAI-12002-test3-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520888659539\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"some-filed\": \"some-data\",\n" + //extra field
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id1\",\n" +
+ " \"model-version-id\": \"a0efd5fc-f7be-4502-936a-a6c6392b958f\",\n" +
+ " \"id\": \"AAI-12002-test1-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520886467989\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"some-filed\": \"some-data\",\n" + //extra field
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id2\",\n" +
+ " \"model-version-id\": \"version2\",\n" +
+ " \"id\": \"AAI-12002-test2-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520888629970\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ " ]\n" +
+ "}\n";
+ }
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionRequiredMissing.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionRequiredMissing.java
new file mode 100644
index 000000000..9c8f82d18
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetInstanceGroupsByCloudRegionRequiredMissing.java
@@ -0,0 +1,181 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetInstanceGroupsByCloudRegionRequiredMissing extends BaseAAIPreset {
+
+ private String cloudOwner;
+ private String cloudRegionId;
+ private String networkFunction;
+ private final String type = "L3-NETWORK";
+ private final String role = "SUB-INTERFACE";
+
+ public PresetAAIGetInstanceGroupsByCloudRegionRequiredMissing(String cloudOwner, String cloudRegionId, String networkFunction) {
+ this.cloudOwner = cloudOwner;
+ this.cloudRegionId = cloudRegionId;
+ this.networkFunction = networkFunction;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("resource")
+ );
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", ImmutableList.of("cloud-infrastructure/cloud-regions/cloud-region/" + getCloudOwner() + "/" + getCloudRegionId()),
+ "query", "query/instance-group-byCloudRegion?type=" + type + "&role=" + role + "&function=" + getNetworkFunction()
+ );
+ }
+
+ public String getCloudOwner() {
+ return cloudOwner;
+ }
+
+ public String getCloudRegionId() {
+ return cloudRegionId;
+ }
+
+ public String getNetworkFunction() {
+ return networkFunction;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"results\": [\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id3\",\n" +
+ " \"model-version-id\": \"version3\",\n" +
+ " \"id\": \"AAI-12002-test3-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"resource-version\": \"1520888659539\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id1\",\n" +
+ " \"model-version-id\": \"version1\",\n" +
+ " \"id\": \"AAI-12002-test1-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520886467989\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"model-id2\",\n" +
+ " \"model-version-id\": \"version2\",\n" +
+ " \"id\": \"AAI-12002-test2-vm230w\",\n" +
+ " \"description\": \"a9DEa0kpY\",\n" +
+ " \"instance-group-type\": \"type\",\n" +
+ " \"resource-version\": \"1520888629970\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"cloud-region\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/AAI-12002-vm230w/AAI-region-vm230w\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"AAI-12002-vm230w\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"AAI-region-vm230w\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"cloud-region.owner-defined-type\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ " ]\n" +
+ "}\n";
+ }
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java
new file mode 100644
index 000000000..0cf32095e
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java
@@ -0,0 +1,176 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetModelsByOwningEntity extends BaseAAIPreset {
+ String oeName;
+
+ public PresetAAIGetModelsByOwningEntity(String oeName) {
+ this.oeName = oeName;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/business/owning-entities";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "owning-entity-id", Collections.singletonList(oeName)
+ );
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"owning-entity\": [" +
+ " {" +
+ " \"owning-entity-id\": \"43b8a85a-0421-4265-9069-117dd6526b8a\"," +
+ " \"owning-entity-name\": \"" + oeName + "\"," +
+ " \"resource-version\": \"1527418700853\"," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/af9d52f9-13b2-4657-a198-463677f82dc0\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"MSO_1610_ST\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"MSO-dev-service-type\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"af9d52f9-13b2-4657-a198-463677f82dc0\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"xbghrftgr_shani\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/49769492-5def-4c89-8e73-b236f958fa40\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"MSO_1610_ST\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"MSO-dev-service-type\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"49769492-5def-4c89-8e73-b236f958fa40\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"fghghfhgf\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vMOG/service-instances/service-instance/13695dfb-db99-4c2f-905e-fe7bf2fc7b9f\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"vMOG\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"13695dfb-db99-4c2f-905e-fe7bf2fc7b9f\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"FIRSTNET_DEMO\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Mobility/service-instances/service-instance/7e4f8130-5dee-47c4-8770-1abc5f5ded83\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"Mobility\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"7e4f8130-5dee-47c4-8770-1abc5f5ded83\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"Amir123\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Mobility/service-instances/service-instance/d849b312-03f6-4fa3-a923-a469b850ec73\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"Mobility\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"d849b312-03f6-4fa3-a923-a469b850ec73\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"edbh54\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " ]" +
+ " }";
+ }
+} \ No newline at end of file
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java
new file mode 100644
index 000000000..df0df6ccc
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java
@@ -0,0 +1,157 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.UUID;
+
+public class PresetAAIGetModelsByProject extends BaseAAIPreset {
+ private String projectName;
+ private String serviceInstanceId;
+
+ public PresetAAIGetModelsByProject(String projectName) {
+ this.projectName = projectName;
+ ImmutableMap servicesPerProject = ImmutableMap.of ("x1","7e4f8130-5dee-47c4-8770-1abc5f5ded83",
+ "yyy1","13695dfb-db99-4c2f-905e-fe7bf2fc7b9f");
+ this.serviceInstanceId = (servicesPerProject.containsKey(projectName)) ? servicesPerProject.get(projectName).toString(): UUID.randomUUID().toString();
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/business/projects";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "project-name", Collections.singletonList(projectName)
+ );
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"project\": [" +
+ " {" +
+ " \"project-name\": \"" + projectName + "\"," +
+ " \"resource-version\": \"1527026201826\"," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Mobility/service-instances/service-instance/3f826016-3ac9-4928-9561-beee75fd91d5\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"Mobility\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"3f826016-3ac9-4928-9561-beee75fd91d5\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"Lital_SRIOV2_001\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/DHV1707-TestSubscriber-2/service-subscriptions/service-subscription/HNGATEWAY/service-instances/service-instance/45713f81-04b8-4fd0-b824-64536d493984\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"DHV1707-TestSubscriber-2\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"HNGATEWAY\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"45713f81-04b8-4fd0-b824-64536d493984\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"kkkk\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vMOG/service-instances/service-instance/" + serviceInstanceId + "\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"vMOG\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"" + serviceInstanceId + "\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"FIRSTNET_DEMO\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"related-to\": \"service-instance\"," +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
+ " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Mobility/service-instances/service-instance/ff2d9326-1ef5-4760-aba0-0eaf372ae675\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"customer.global-customer-id\"," +
+ " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-subscription.service-type\"," +
+ " \"relationship-value\": \"Mobility\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"service-instance.service-instance-id\"," +
+ " \"relationship-value\": \"ff2d9326-1ef5-4760-aba0-0eaf372ae675\"" +
+ " }" +
+ " ]," +
+ " \"related-to-property\": [" +
+ " {" +
+ " \"property-key\": \"service-instance.service-instance-name\"," +
+ " \"property-value\": \"VNF_INSTANCE_DEMO_THREE\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " ]" +
+ "}";
+ }
+
+
+} \ No newline at end of file
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetMultipleVersion.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetMultipleVersion.java
new file mode 100644
index 000000000..6586eb1bc
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetMultipleVersion.java
@@ -0,0 +1,59 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIGetMultipleVersion extends BasePresetAAIGetVersion {
+ public String modelVersionId2;
+ public String modelVersionId3;
+ public PresetAAIGetMultipleVersion(String modelVersionId1,
+ String modelVersionId2,
+ String modelVersionId3,
+ String modelInvariantId) {
+ super( modelVersionId1, modelInvariantId);
+ this.modelVersionId2 = modelVersionId2;
+ this.modelVersionId3 = modelVersionId3;
+ }
+ public String getModelVersionId2() {
+ return modelVersionId2;
+ }
+ public String getModelVersionId3() {
+ return modelVersionId3;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\"results\": [" +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"" + getModelInvariantId() + "\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1500138206526\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"" + getModelVersionId1() + "\"," +
+ " \"model-name\": \"action-data\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"decontamination arm circus ammonia hump edge\"," +
+ " \"resource-version\": \"1500137463984\"" +
+ " }," +
+ " {" +
+ " \"model-version-id\": \"" + getModelVersionId3() + "\"," +
+ " \"model-name\": \"action-data\"," +
+ " \"model-version\": \"3.0\"," +
+ " \"model-description\": \"Non decontamination arm circus ammonia hump edge\"," +
+ " \"resource-version\": \"1500137463986\"" +
+ " }," +
+ " {" +
+ " \"model-version-id\": \"" + getModelVersionId2() + "\"," +
+ " \"model-name\": \"action-data\"," +
+ " \"model-version\": \"2.0\"," +
+ " \"model-description\": \"The oldest one\"," +
+ " \"resource-version\": \"1500137463980\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }" +
+ " ]}";
+ }
+
+ } \ No newline at end of file
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java
new file mode 100644
index 000000000..8a27fbce8
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java
@@ -0,0 +1,338 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetNetworkCollectionDetails extends BaseAAIPreset {
+
+
+ private String serviceInstanceId;
+
+ public PresetAAIGetNetworkCollectionDetails(String serviceInstanceId) {
+ this.serviceInstanceId = serviceInstanceId;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("resource")
+ );
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", ImmutableList.of("nodes/service-instances/service-instance/" + getServiceInstanceId()),
+ "query", "query/network-collection-ByServiceInstance"
+ );
+ }
+
+ public String getServiceInstanceId() {
+ return serviceInstanceId;
+ }
+
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"results\": [\n" +
+ " {\n" +
+ " \"service-instance\": {\n" +
+ " \"service-instance-id\": \"2UJZZ01777-rs804s\",\n" +
+ " \"resource-version\": \"1521662813382\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"collection\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/collections/collection/collection-1-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"collection.collection-id\",\n" +
+ " \"relationship-value\": \"collection-1-2018-rs804s\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"collection\": {\n" +
+ " \"collection-id\": \"collection-1-2018-rs804s\",\n" +
+ " \"model-invariant-id\": \"5761e0a7-defj777\",\n" +
+ " \"model-version-id\": \"5761e0a7-defj232\",\n" +
+ " \"collection-name\": \"collection-name\",\n" +
+ " \"collection-type\": \"L3-NETWORK\",\n" +
+ " \"collection-role\": \"SUB-INTERFACE\",\n" +
+ " \"collection-function\": \"collection-function\",\n" +
+ " \"collection-customization-id\": \"custom-unique-data-id\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"service-instance\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/business/customers/customer/customer-1-2017-rs804s/service-subscriptions/service-subscription/service-value7-rs804s/service-instances/service-instance/2UJZZ01777-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"customer.global-customer-id\",\n" +
+ " \"relationship-value\": \"customer-1-2017-rs804s\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"service-subscription.service-type\",\n" +
+ " \"relationship-value\": \"service-value7-rs804s\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"service-instance.service-instance-id\",\n" +
+ " \"relationship-value\": \"2UJZZ01777-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"service-instance.service-instance-name\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " \"resource-version\": \"1521662811309\"\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"5761e0a7-defj777\",\n" +
+ " \"model-version-id\": \"5761e0a7-defj22\",\n" +
+ " \"id\": \"instanceGroup-2018-rs804s\",\n" +
+ " \"description\": \"zr6h\",\n" +
+ " \"instance-group-type\": \"7DDjOdNL\",\n" +
+ " \"resource-version\": \"1521662814023\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"collection\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/collections/collection/collection-1-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"collection.collection-id\",\n" +
+ " \"relationship-value\": \"collection-1-2018-rs804s\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-3-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-3-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-2-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-2-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662814627\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-3-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662816043\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-2-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662815304\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ " ]\n" +
+ "}";
+ }
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java
new file mode 100644
index 000000000..9e4d653d2
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java
@@ -0,0 +1,342 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetNetworkCollectionDetailsInvalidRequest extends BaseAAIPreset {
+
+ private String serviceInstanceId;
+
+ public PresetAAIGetNetworkCollectionDetailsInvalidRequest(String serviceInstanceId) {
+ this.serviceInstanceId = serviceInstanceId;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("resource")
+ );
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", ImmutableList.of("nodes/service-instances/service-instance/" + getServiceInstanceId()),
+ "query", "query/network-collection-ByServiceInstance"
+ );
+ }
+
+ public String getServiceInstanceId() {
+ return serviceInstanceId;
+ }
+
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"results\": [\n" +
+ " {\n" +
+ " \"service-instance\": {\n" +
+ " \"service-instance-id\": \"2UJZZ01777-rs804s\",\n" +
+ " \"resource-version\": \"1521662813382\",\n" +
+ " \"resource-versions\": \"1521662813382\",\n" + //extra field
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"collection\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/collections/collection/collection-1-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"collection.collection-id\",\n" +
+ " \"relationship-value\": \"collection-1-2018-rs804s\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"collection\": {\n" +
+ " \"collection-id\": \"collection-1-2018-rs804s\",\n" +
+ " \"model-invariant-id\": \"5761e0a7-defj777\",\n" +
+ " \"model-version-id\": \"5761e0a7-defj232\",\n" +
+ " \"collection-name\": \"collection-name\",\n" +
+ " \"collection-names\": \"collection-name\",\n" +//extra field
+ " \"collection-type\": \"L3-NETWORK\",\n" +
+ " \"collection-role\": \"SUB-INTERFACE\",\n" +
+ " \"collection-function\": \"collection-function\",\n" +
+ " \"collection-customization-id\": \"custom-unique-data-id\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"service-instance\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/business/customers/customer/customer-1-2017-rs804s/service-subscriptions/service-subscription/service-value7-rs804s/service-instances/service-instance/2UJZZ01777-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"customer.global-customer-id\",\n" +
+ " \"relationship-value\": \"customer-1-2017-rs804s\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"service-subscription.service-type\",\n" +
+ " \"relationship-value\": \"service-value7-rs804s\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"service-instance.service-instance-id\",\n" +
+ " \"relationship-value\": \"2UJZZ01777-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"service-instance.service-instance-name\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " \"resource-version\": \"1521662811309\"\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"5761e0a7-defj777\",\n" +
+ " \"model-version-id\": \"5761e0a7-defj22\",\n" +
+ " \"id\": \"instanceGroup-2018-rs804s\",\n" +
+ " \"ids\": \"instanceGroup-2018-rs804s\",\n" + //extra field
+ " \"description\": \"zr6h\",\n" +
+ " \"instance-group-type\": \"7DDjOdNL\",\n" +
+ " \"resource-version\": \"1521662814023\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"collection\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/collections/collection/collection-1-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"collection.collection-id\",\n" +
+ " \"relationship-value\": \"collection-1-2018-rs804s\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-3-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-3-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-2-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-2-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-roles\": \"HngwProtectedOam.OAM\",\n" +//extra field
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662814627\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-3-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662816043\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-2-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662815304\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ " ]\n" +
+ "}";
+ }
+
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java
new file mode 100644
index 000000000..e137ee233
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java
@@ -0,0 +1,337 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetNetworkCollectionDetailsRequiredMissing extends BaseAAIPreset {
+
+
+ private String serviceInstanceId;
+
+ public PresetAAIGetNetworkCollectionDetailsRequiredMissing(String serviceInstanceId) {
+ this.serviceInstanceId = serviceInstanceId;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("resource")
+ );
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", ImmutableList.of("nodes/service-instances/service-instance/" + getServiceInstanceId()),
+ "query", "query/network-collection-ByServiceInstance"
+ );
+ }
+
+ public String getServiceInstanceId() {
+ return serviceInstanceId;
+ }
+
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"results\": [\n" +
+ " {\n" +
+ " \"service-instance\": {\n" +
+ " \"service-instance-id\": \"2UJZZ01777-rs804s\",\n" +
+ " \"resource-version\": \"1521662813382\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"collection\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/collections/collection/collection-1-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"collection.collection-id\",\n" +
+ " \"relationship-value\": \"collection-1-2018-rs804s\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"collection\": {\n" +
+ " \"collection-id\": \"collection-1-2018-rs804s\",\n" +
+ " \"model-invariant-id\": \"5761e0a7-defj777\",\n" +
+ " \"model-version-id\": \"5761e0a7-defj232\",\n" +
+ " \"collection-name\": \"collection-name\",\n" +
+ " \"collection-type\": \"L3-NETWORK\",\n" +
+ " \"collection-role\": \"SUB-INTERFACE\",\n" +
+ " \"collection-function\": \"collection-function\",\n" +
+ " \"collection-customization-id\": \"custom-unique-data-id\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"service-instance\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/business/customers/customer/customer-1-2017-rs804s/service-subscriptions/service-subscription/service-value7-rs804s/service-instances/service-instance/2UJZZ01777-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"customer.global-customer-id\",\n" +
+ " \"relationship-value\": \"customer-1-2017-rs804s\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"service-subscription.service-type\",\n" +
+ " \"relationship-value\": \"service-value7-rs804s\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"service-instance.service-instance-id\",\n" +
+ " \"relationship-value\": \"2UJZZ01777-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"service-instance.service-instance-name\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " \"resource-version\": \"1521662811309\"\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"instance-group\": {\n" +
+ " \"instance-group-role\": \"JZmha7QSS4tJ\",\n" +
+ " \"model-invariant-id\": \"5761e0a7-defj777\",\n" +
+ " \"model-version-id\": \"5761e0a7-defj22\",\n" +
+ " \"id\": \"instanceGroup-2018-rs804s\",\n" +
+ " \"instance-group-type\": \"7DDjOdNL\",\n" +
+ " \"resource-version\": \"1521662814023\",\n" +
+ " \"instance-group-name\": \"wKmBXiO1xm8bK\",\n" +
+ " \"instance-group-function\": \"testfunction2\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"collection\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/collections/collection/collection-1-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"collection.collection-id\",\n" +
+ " \"relationship-value\": \"collection-1-2018-rs804s\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-3-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-3-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"l3-network\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/l3-networks/l3-network/l3network-id-2-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"l3-network.network-id\",\n" +
+ " \"relationship-value\": \"l3network-id-2-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"l3-network.network-name\",\n" +
+ " \"property-value\": \"oam-net\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662814627\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-3-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662816043\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " },\n" +
+ " {\n" +
+ " \"l3-network\": {\n" +
+ " \"network-id\": \"l3network-id-2-rs804s\",\n" +
+ " \"network-name\": \"oam-net\",\n" +
+ " \"network-type\": \"Tenant_Layer_3\",\n" +
+ " \"network-role\": \"HngwProtectedOam.OAM\",\n" +
+ " \"network-technology\": \"Contrail\",\n" +
+ " \"is-bound-to-vpn\": false,\n" +
+ " \"resource-version\": \"1521662815304\",\n" +
+ " \"is-provider-network\": false,\n" +
+ " \"is-shared-network\": false,\n" +
+ " \"is-external-network\": false,\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/instanceGroup-2018-rs804s\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"instanceGroup-2018-rs804s\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"zr6h\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"wKmBXiO1xm8bK\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ " ]\n" +
+ "}";
+ }
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkZones.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkZones.java
new file mode 100644
index 000000000..02f01bd7a
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkZones.java
@@ -0,0 +1,794 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+public class PresetAAIGetNetworkZones extends BaseAAIPreset {
+
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/network/zones";
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"zone\": [" +
+ " {" +
+ " \"zone-id\": \"NFT1\"," +
+ " \"zone-name\": \"NFTJSSSS-NFT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JAG1\"," +
+ " \"zone-name\": \"YUDFJULP-JAG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"YYY1\"," +
+ " \"zone-name\": \"UUUAIAAI-YYY1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"BAN1\"," +
+ " \"zone-name\": \"VSDKYUTP-BAN1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DKJ1\"," +
+ " \"zone-name\": \"DKJSJDKA-DKJ1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"MCS1\"," +
+ " \"zone-name\": \"ASACMAMS-MCS1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"UIO1\"," +
+ " \"zone-name\": \"uioclli1-UIO1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RAJ1\"," +
+ " \"zone-name\": \"YGBIJNLQ-RAJ1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"OPA1\"," +
+ " \"zone-name\": \"opaclli1-OPA1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SDE1\"," +
+ " \"zone-name\": \"ZXCVBNMA-SDE1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"VEN2\"," +
+ " \"zone-name\": \"FGHJUHIL-VEN2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ORL1\"," +
+ " \"zone-name\": \"ORLDFLMA-ORL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JAD1\"," +
+ " \"zone-name\": \"JADECLLI-JAD1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ZXL1\"," +
+ " \"zone-name\": \"LWLWCANN-ZXL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"CKL1\"," +
+ " \"zone-name\": \"CLKSKCKK-CKL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SDF1\"," +
+ " \"zone-name\": \"sdfclli1-SDF1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RAD1\"," +
+ " \"zone-name\": \"RADICAL1-RAD1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"KIT1\"," +
+ " \"zone-name\": \"BHYJFGLN-KIT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"REL1\"," +
+ " \"zone-name\": \"INGERFGT-REL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JNL1\"," +
+ " \"zone-name\": \"CJALSDAC-JNL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"OLK1\"," +
+ " \"zone-name\": \"OLKOLKLS-OLK1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"CHI1\"," +
+ " \"zone-name\": \"CHILLIWE-CHI1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"UUU4\"," +
+ " \"zone-name\": \"UUUAAAUU-UUU4\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TUF1\"," +
+ " \"zone-name\": \"TUFCLLI1-TUF1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"KJN1\"," +
+ " \"zone-name\": \"CKALDKSA-KJN1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAM1\"," +
+ " \"zone-name\": \"SNDGCA64-SAN1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SCK1\"," +
+ " \"zone-name\": \"SCKSCKSK-SCK1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HJH1\"," +
+ " \"zone-name\": \"AOEEQQQD-HJH1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HGD1\"," +
+ " \"zone-name\": \"SDFQWHGD-HGD1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"KOR1\"," +
+ " \"zone-name\": \"HYFLNBVT-KOR1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL43\"," +
+ " \"zone-name\": \"AICLOCID-ATL43\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL54\"," +
+ " \"zone-name\": \"AICFTAAI-ATL54\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL66\"," +
+ " \"zone-name\": \"CLLIAAII-ATL66\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"VEL1\"," +
+ " \"zone-name\": \"BNMLKUIK-VEL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ICC1\"," +
+ " \"zone-name\": \"SANJITAT-ICC1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"MNT11\"," +
+ " \"zone-name\": \"WSXEFBTH-MNT11\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DEF2\"," +
+ " \"zone-name\": \"WSBHGTYL-DEF2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"MAD11\"," +
+ " \"zone-name\": \"SDFQWGKL-MAD11\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"OLG1\"," +
+ " \"zone-name\": \"OLHOLHOL-OLG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"GAR1\"," +
+ " \"zone-name\": \"NGFVSJKO-GAR1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAN22\"," +
+ " \"zone-name\": \"GNVLSCTL-SAN22\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HRG1\"," +
+ " \"zone-name\": \"HRGHRGGS-HRG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JCS1\"," +
+ " \"zone-name\": \"JCSJSCJS-JCS1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DHA12\"," +
+ " \"zone-name\": \"WSXEDECF-DHA12\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HJE1\"," +
+ " \"zone-name\": \"AOEEWWWD-HJE1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"NCA1\"," +
+ " \"zone-name\": \"NCANCANN-NCA1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"IOP1\"," +
+ " \"zone-name\": \"iopclli1-IOP1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RTY1\"," +
+ " \"zone-name\": \"rtyclli1-RTY1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"KAP1\"," +
+ " \"zone-name\": \"HIOUYTRQ-KAP1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ZEN1\"," +
+ " \"zone-name\": \"ZENCLLI1-ZEN1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HKA1\"," +
+ " \"zone-name\": \"JAKHLASS-HKA1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"CQK1\"," +
+ " \"zone-name\": \"CQKSCAKK-CQK1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAI1\"," +
+ " \"zone-name\": \"UBEKQLPD-SAI1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ERT1\"," +
+ " \"zone-name\": \"ertclli1-ERT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"IBB1\"," +
+ " \"zone-name\": \"PLMKOIJU-IBB1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TIR2\"," +
+ " \"zone-name\": \"PLKINHYI-TIR2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HSD1\"," +
+ " \"zone-name\": \"CHASKCDS-HSD1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SLF78\"," +
+ " \"zone-name\": \"SDCTLFN1-SLF78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SEE78\"," +
+ " \"zone-name\": \"SDCTEEE4-SEE78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAN13\"," +
+ " \"zone-name\": \"TOKYJPFA-SAN13\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAA78\"," +
+ " \"zone-name\": \"SDCTAAA1-SAA78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"LUC1\"," +
+ " \"zone-name\": \"ATLDFGYC-LUC1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"AMD13\"," +
+ " \"zone-name\": \"MEMATLAN-AMD13\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TOR1\"," +
+ " \"zone-name\": \"TOROONXN-TOR1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"QWE1\"," +
+ " \"zone-name\": \"QWECLLI1-QWE1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ZOG1\"," +
+ " \"zone-name\": \"ZOGASTRO-ZOG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"CAL33\"," +
+ " \"zone-name\": \"CALIFORN-CAL33\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SHH78\"," +
+ " \"zone-name\": \"SDIT1HHH-SHH78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DSA1\"," +
+ " \"zone-name\": \"LKJHGFDS-DSA1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"CLG1\"," +
+ " \"zone-name\": \"CLGRABAD-CLG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"BNA1\"," +
+ " \"zone-name\": \"BNARAGBK-BNA1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL84\"," +
+ " \"zone-name\": \"CANTTCOC-ATL84\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"APP1\"," +
+ " \"zone-name\": \"WBHGTYUI-APP1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RJN1\"," +
+ " \"zone-name\": \"RJNRBZAW-RJN1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"EHH78\"," +
+ " \"zone-name\": \"SDCSHHH5-EHH78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"mac10\"," +
+ " \"zone-name\": \"PKGTESTF-mac10\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SXB78\"," +
+ " \"zone-name\": \"SDCTGXB1-SXB78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAX78\"," +
+ " \"zone-name\": \"SDCTAXG1-SAX78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SYD1\"," +
+ " \"zone-name\": \"SYDNAUBV-SYD1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TOK1\"," +
+ " \"zone-name\": \"TOKYJPFA-TOK1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"KGM2\"," +
+ " \"zone-name\": \"KGMTNC20-KGM2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DCC1b\"," +
+ " \"zone-name\": \"POIUYTGH-DCC1b\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SKK78\"," +
+ " \"zone-name\": \"SDCTKKK1-SKK78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SGG78\"," +
+ " \"zone-name\": \"SDCTGGG1-SGG78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SJJ78\"," +
+ " \"zone-name\": \"SDCTJJJ1-SJJ78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SBX78\"," +
+ " \"zone-name\": \"SDCTBXG1-SBX78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"LAG1\"," +
+ " \"zone-name\": \"LARGIZON-LAG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"IAA1\"," +
+ " \"zone-name\": \"QAZXSWED-IAA1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"POI1\"," +
+ " \"zone-name\": \"PLMNJKIU-POI1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"LAG1a\"," +
+ " \"zone-name\": \"LARGIZON-LAG1a\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"PBL1\"," +
+ " \"zone-name\": \"PBLAPBAI-PBL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"LAG45\"," +
+ " \"zone-name\": \"LARGIZON-LAG1a\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"MAR1\"," +
+ " \"zone-name\": \"MNBVCXZM-MAR1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HST70\"," +
+ " \"zone-name\": \"HSTNTX70-HST70\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DCC1a\"," +
+ " \"zone-name\": \"POIUYTGH-DCC1a\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TOL1\"," +
+ " \"zone-name\": \"TOLDOH21-TOL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"LON1\"," +
+ " \"zone-name\": \"LONEENCO-LON1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SJU78\"," +
+ " \"zone-name\": \"SDIT1JUB-SJU78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"STN27\"," +
+ " \"zone-name\": \"HSTNTX01-STN27\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SSW56\"," +
+ " \"zone-name\": \"ss8126GT-SSW56\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SBB78\"," +
+ " \"zone-name\": \"SDIT1BBB-SBB78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DCC3\"," +
+ " \"zone-name\": \"POIUYTGH-DCC3\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"GNV1\"," +
+ " \"zone-name\": \"GNVLSCTL-GNV1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"WAS1\"," +
+ " \"zone-name\": \"WASHDCSW-WAS1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TOY1\"," +
+ " \"zone-name\": \"TORYONNZ-TOY1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"STT1\"," +
+ " \"zone-name\": \"STTLWA02-STT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"STG1\"," +
+ " \"zone-name\": \"STTGGE62-STG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SLL78\"," +
+ " \"zone-name\": \"SDCTLLL1-SLL78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SBU78\"," +
+ " \"zone-name\": \"SDIT1BUB-SBU78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL2\"," +
+ " \"zone-name\": \"ATLNGANW-ATL2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"BOT1\"," +
+ " \"zone-name\": \"BOTHWAKY-BOT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SNG1\"," +
+ " \"zone-name\": \"SNGPSIAU-SNG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"NYC1\"," +
+ " \"zone-name\": \"NYCMNY54-NYC1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"LAG1b\"," +
+ " \"zone-name\": \"LARGIZON-LAG1b\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"AMD15\"," +
+ " \"zone-name\": \"AMDFAA01-AMD15\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SNA1\"," +
+ " \"zone-name\": \"SNANTXCA-SNA1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"PLT1\"," +
+ " \"zone-name\": \"PLTNCA60-PLT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TLP1\"," +
+ " \"zone-name\": \"TLPNXM18-TLP1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SDD81\"," +
+ " \"zone-name\": \"SAIT1DD6-SDD81\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DCC1\"," +
+ " \"zone-name\": \"POIUYTGH-DCC1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DCC2\"," +
+ " \"zone-name\": \"POIUYTGH-DCC2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"OKC1\"," +
+ " \"zone-name\": \"OKCBOK55-OKC1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"PAR1\"," +
+ " \"zone-name\": \"PARSFRCG-PAR1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TES36\"," +
+ " \"zone-name\": \"ABCEETES-TES36\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"COM1\"," +
+ " \"zone-name\": \"PLMKOPIU-COM1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ANI1\"," +
+ " \"zone-name\": \"ATLNGTRE-ANI1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SDG78\"," +
+ " \"zone-name\": \"SDIT1BDG-SDG78\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"mac20\"," +
+ " \"zone-name\": \"PKGTESTF-mac20\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DSF45\"," +
+ " \"zone-name\": \"DSFBG123-DSF45\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HST25\"," +
+ " \"zone-name\": \"HSTNTX01-HST25\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"AMD18\"," +
+ " \"zone-name\": \"AUDIMA01-AMD18\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAA80\"," +
+ " \"zone-name\": \"SAIT9AA3-SAA80\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SSA56\"," +
+ " \"zone-name\": \"SSIT2AA7-SSA56\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SDD82\"," +
+ " \"zone-name\": \"SAIT1DD9-SDD82\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JCV1\"," +
+ " \"zone-name\": \"JCVLFLBW-JCV1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SUL2\"," +
+ " \"zone-name\": \"WERTYUJK-SUL2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"PUR1\"," +
+ " \"zone-name\": \"purelyde-PUR1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"FDE55\"," +
+ " \"zone-name\": \"FDERT555-FDE55\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SITE\"," +
+ " \"zone-name\": \"LONEENCO-SITE\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL1\"," +
+ " \"zone-name\": \"ATLNGAMA-ATL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JUL1\"," +
+ " \"zone-name\": \"ZXCVBNMM-JUL1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TAT34\"," +
+ " \"zone-name\": \"TESAAISB-TAT34\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"XCP12\"," +
+ " \"zone-name\": \"CHKGH123-XCP12\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RAI1\"," +
+ " \"zone-name\": \"poiuytre-RAI1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"HPO1\"," +
+ " \"zone-name\": \"ATLNGAUP-HPO1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"KJF12\"," +
+ " \"zone-name\": \"KJFDH123-KJF12\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SCC80\"," +
+ " \"zone-name\": \"SAIT9CC3-SCC80\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAA12\"," +
+ " \"zone-name\": \"SAIT9AF8-SAA12\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAA14\"," +
+ " \"zone-name\": \"SAIT1AA9-SAA14\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL35\"," +
+ " \"zone-name\": \"TTESSAAI-ATL35\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"CWY1\"," +
+ " \"zone-name\": \"CWYMOWBS-CWY1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL76\"," +
+ " \"zone-name\": \"TELEPAAI-ATL76\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"DSL12\"," +
+ " \"zone-name\": \"DSLFK242-DSL12\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL53\"," +
+ " \"zone-name\": \"AAIATLTE-ATL53\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAA11\"," +
+ " \"zone-name\": \"SAIT9AA2-SAA11\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL62\"," +
+ " \"zone-name\": \"TESSASCH-ATL62\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"AUG1\"," +
+ " \"zone-name\": \"ASDFGHJK-AUG1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"POI22\"," +
+ " \"zone-name\": \"POIUY123-POI22\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SAA13\"," +
+ " \"zone-name\": \"SAIT1AA9-SAA13\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"BHY17\"," +
+ " \"zone-name\": \"BHYTFRF3-BHY17\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"LIS1\"," +
+ " \"zone-name\": \"HOSTPROF-LIS1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"SIP1\"," +
+ " \"zone-name\": \"ZXCVBNMK-SIP1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL99\"," +
+ " \"zone-name\": \"TEESTAAI-ATL43\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL64\"," +
+ " \"zone-name\": \"FORLOAAJ-ATL64\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TAT33\"," +
+ " \"zone-name\": \"TESAAISA-TAT33\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RAD10\"," +
+ " \"zone-name\": \"INDIPUNE-RAD10\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RTW5\"," +
+ " \"zone-name\": \"BHYTFRY4-RTW5\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JGS1\"," +
+ " \"zone-name\": \"KSJKKKKK-JGS1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL98\"," +
+ " \"zone-name\": \"TEESTAAI-ATL43\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"WAN1\"," +
+ " \"zone-name\": \"LEIWANGW-WAN1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL44\"," +
+ " \"zone-name\": \"ATLSANAB-ATL44\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RTD2\"," +
+ " \"zone-name\": \"BHYTFRk4-RTD2\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"NIR1\"," +
+ " \"zone-name\": \"ORFLMANA-NIR1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL75\"," +
+ " \"zone-name\": \"SANAAIRE-ATL75\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"NUM1\"," +
+ " \"zone-name\": \"QWERTYUI-NUM1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"MTN32\"," +
+ " \"zone-name\": \"MDTWNJ21-MTN32\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RTZ4\"," +
+ " \"zone-name\": \"BHYTFRZ6-RTZ4\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL56\"," +
+ " \"zone-name\": \"ATLSANAC-ATL56\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"AMS1\"," +
+ " \"zone-name\": \"AMSTNLBW-AMS1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"RCT1\"," +
+ " \"zone-name\": \"AMSTERNL-RCT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"JAN1\"," +
+ " \"zone-name\": \"ORFLMATT-JAN1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ABC14\"," +
+ " \"zone-name\": \"TESAAISA-ABC14\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"TAT37\"," +
+ " \"zone-name\": \"TESAAISD-TAT37\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"MIC54\"," +
+ " \"zone-name\": \"MICHIGAN-MIC54\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ABC11\"," +
+ " \"zone-name\": \"ATLSANAI-ABC11\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"AMF11\"," +
+ " \"zone-name\": \"AMDOCS01-AMF11\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL63\"," +
+ " \"zone-name\": \"ATLSANEW-ATL63\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ABC12\"," +
+ " \"zone-name\": \"ATLSECIA-ABC12\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"MTN20\"," +
+ " \"zone-name\": \"MDTWNJ21-MTN20\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ABC15\"," +
+ " \"zone-name\": \"AAITESAN-ABC15\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"AVT1\"," +
+ " \"zone-name\": \"AVTRFLHD-AVT1\"" +
+ " }," +
+ " {" +
+ " \"zone-id\": \"ATL34\"," +
+ " \"zone-name\": \"ATLSANAI-ATL34\"" +
+ " }" +
+ " ]" +
+ " }";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetOneVersion.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetOneVersion.java
new file mode 100644
index 000000000..1ccf8b9ea
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetOneVersion.java
@@ -0,0 +1,33 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIGetOneVersion extends BasePresetAAIGetVersion {
+
+ public PresetAAIGetOneVersion(String modelVersionId1,
+ String modelInvariantId) {
+ super(modelVersionId1, modelInvariantId);
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\"results\": [" +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"" + getModelInvariantId() + "\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1500138206526\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"" + getModelVersionId1() + "\"," +
+ " \"model-name\": \"action-data\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"decontamination arm circus ammonia hump edge\"," +
+ " \"resource-version\": \"1500137463984\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }" +
+ " ]}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java
new file mode 100644
index 000000000..dd5d0abfc
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java
@@ -0,0 +1,31 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+/**
+ * Created by itzikliderman on 21/12/2017.
+ */
+public class PresetAAIGetPNFByRegionErrorPut extends BaseAAIPreset {
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"start\": \"/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances?model-version-id=8a84e59b-45fe-4851-8ff1-34225a0b32c3&model-invariant-id=83b458fd-5dd3-419b-a9e3-7335814a0911\"," +
+ " \"query\": \"query/pnf-fromModel-byRegion?cloudRegionId=AAIAIC25&equipVendor=Cisco&equipModel=Nexus%203048-TP\"" +
+ " }";
+ }
+
+ @Override
+ public int getResponseCode() {
+ return 500;
+ }
+
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java
new file mode 100644
index 000000000..22accac1d
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java
@@ -0,0 +1,129 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetPortMirroringSourcePorts extends BaseAAIPreset {
+ public PresetAAIGetPortMirroringSourcePorts(String configurationId, String interfaceId, String interfaceName, boolean isPortMirrored) {
+ this.configurationId = configurationId;
+ this.interfaceId = interfaceId;
+ this.interfaceName = interfaceName;
+ this.isPortMirrored = isPortMirrored;
+ }
+
+ private final String configurationId;
+ private final String interfaceId;
+ private final String interfaceName;
+ private final boolean isPortMirrored;
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "format", Collections.singletonList("simple"));
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return ImmutableMap.of(
+ "start", "/network/configurations/configuration/" + getConfigurationId(),
+ "query", "query/pserver-fromConfiguration"
+ );
+ }
+
+ public String getConfigurationId() {
+ return configurationId;
+ }
+
+ public String getInterfaceId() {
+ return interfaceId;
+ }
+
+ public String getInterfaceName() { return interfaceName; }
+
+ public boolean getIsPortMirrored() { return isPortMirrored; }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"results\": [\n" +
+ " {\n" +
+ " \"id\": \"4876980240\",\n" +
+ " \"node-type\": \"l-interface\",\n" +
+ " \"url\": \"/aai/v12/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm5b/tenants/tenant/460f35aeb53542dc9f77105066483e83/vservers/vserver/15e46e2f-4b98-4e06-9644-f0e6e35cc79a/l-interfaces/l-interface/zrdm5bfprbVLBA005-vlbagent_aff_int_pktmirror_1_port-dr5jhyxva5ib\",\n" +
+ " \"properties\": {\n" +
+ " \"interface-name\": " + doubleQuoteIfNotNull(getInterfaceName()) + ",\n" +
+ " \"selflink\": \"https://network-aic.rdm5b.cci.att.com:9696/v2.0/ports/6de7bf87-6faa-4984-9492-18d1188b3d4a\",\n" +
+ " \"interface-id\": " + doubleQuoteIfNotNull(getInterfaceId()) + ",\n" +
+ " \"macaddr\": \"02:6d:e7:bf:87:6f\",\n" +
+ " \"network-name\": \"APP-C-24595-D-T001-vprobe_int_pktmirror_net_1\",\n" +
+ " \"is-port-mirrored\": " + getIsPortMirrored() + ",\n" +
+ " \"resource-version\": \"1519383879190\",\n" +
+ " \"in-maint\": false,\n" +
+ " \"is-ip-unnumbered\": false\n" +
+ " },\n" +
+ " \"related-to\": [\n" +
+ " {\n" +
+ " \"id\": \"4999893128\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\",\n" +
+ " \"node-type\": \"l3-interface-ipv4-address-list\",\n" +
+ " \"url\": \"/aai/v12/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm5b/tenants/tenant/460f35aeb53542dc9f77105066483e83/vservers/vserver/15e46e2f-4b98-4e06-9644-f0e6e35cc79a/l-interfaces/l-interface/zrdm5bfprbVLBA005-vlbagent_aff_int_pktmirror_1_port-dr5jhyxva5ib/l3-interface-ipv4-address-list/107.244.46.254\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"id\": \"6150074384\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Source\",\n" +
+ " \"node-type\": \"logical-link\",\n" +
+ " \"url\": \"/aai/v12/network/logical-links/logical-link/PMC_a22607fb-8392-42f4-bbe7-b8d845a97183_Sourcezrdm5bepdg_147_lb_2_Gn_UntrustedVrf_5_RVMI_Destzrdm5bfprbVLBA005-vlbagent_aff_int_pktmirror_1_port-dr5jhyxva5ib\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"id\": \"6975434912\",\n" +
+ " \"relationship-label\": \"tosca.relationships.network.LinksTo\",\n" +
+ " \"node-type\": \"logical-link\",\n" +
+ " \"url\": \"/aai/v12/network/logical-links/logical-link/PMC_a22607fb-8392-42f4-bbe7-b8d845a97183_Sourcezrdm5bepdg_147_lb_1_Gn_UntrustedVrf_5_RVMI_Destzrdm5bfprbVLBA005-vlbagent_aff_int_pktmirror_1_port-dr5jhyxva5ib\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"id\": \"7007121568\",\n" +
+ " \"relationship-label\": \"tosca.relationships.network.LinksTo\",\n" +
+ " \"node-type\": \"logical-link\",\n" +
+ " \"url\": \"/aai/v12/network/logical-links/logical-link/PMC_9c099448-a0e1-451d-ac20-c5e3ada8cccd_Sourcezrdm5bepdg_147_lb_2_Gn_UntrustedVrf_5_RVMI_Destzrdm5bfprbVLBA005-vlbagent_aff_int_pktmirror_1_port-dr5jhyxva5ib\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"id\": \"7048110232\",\n" +
+ " \"relationship-label\": \"tosca.relationships.network.LinksTo\",\n" +
+ " \"node-type\": \"logical-link\",\n" +
+ " \"url\": \"/aai/v12/network/logical-links/logical-link/PMC_9c099448-a0e1-451d-ac20-c5e3ada8cccd_Sourcezrdm5bepdg_147_lb_1_Gn_UntrustedVrf_5_RVMI_Destzrdm5bfprbVLBA005-vlbagent_aff_int_pktmirror_1_port-dr5jhyxva5ib\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"id\": \"5491453960\",\n" +
+ " \"relationship-label\": \"tosca.relationships.network.BindsTo\",\n" +
+ " \"node-type\": \"vserver\",\n" +
+ " \"url\": \"/aai/v12/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm5b/tenants/tenant/460f35aeb53542dc9f77105066483e83/vservers/vserver/15e46e2f-4b98-4e06-9644-f0e6e35cc79a\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ "}";
+ }
+
+ private String doubleQuoteIfNotNull(String str) {
+ if (str == null) {
+ return null;
+ } else {
+ return "\"" + str + "\"";
+ }
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java
new file mode 100644
index 000000000..0f2332397
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIGetPortMirroringSourcePortsError extends PresetAAIGetPortMirroringSourcePorts {
+
+ public PresetAAIGetPortMirroringSourcePortsError(String configurationId, String interfaceId, String interfaceName, boolean isPortMirrored) {
+ super(configurationId, interfaceId, interfaceName, isPortMirrored);
+ }
+
+ @Override
+ public int getResponseCode() {
+ return 503;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "You are not allowed to do things";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java
new file mode 100644
index 000000000..a70a43232
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java
@@ -0,0 +1,129 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetRelatedInstanceGroupsByVnfId extends BaseAAIPreset {
+
+ private String vnfId;
+
+
+ public String getVnfId() {
+ return vnfId;
+ }
+
+ public void setVnfId(String vnfId) {
+ this.vnfId = vnfId;
+ }
+
+
+ public PresetAAIGetRelatedInstanceGroupsByVnfId(String vnfId){
+ this.vnfId = vnfId;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/network/generic-vnfs/generic-vnf/" + getVnfId();
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "depth", Collections.singletonList("0")
+ );
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ " \"vnf-id\": \"vnf-id-3\",\n" +
+ " \"vnf-name\": \"zmtn6nf-code-110\",\n" +
+ " \"vnf-type\": \"vnf-type\",\n" +
+ " \"prov-status\": \"NVTPROV\",\n" +
+ " \"operational-status\": \"out-of-service-path\",\n" +
+ " \"equipment-role\": \"nf-role-1\",\n" +
+ " \"in-maint\": false,\n" +
+ " \"is-closed-loop-disabled\": false,\n" +
+ " \"resource-version\": \"1524162037142\",\n" +
+ " \"model-invariant-id\": \"inv-id-5000\",\n" +
+ " \"model-version-id\": \"ver-id-5000\",\n" +
+ " \"model-customization-id\": \"vnf-customization-uuid-1\",\n" +
+ " \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/bgb-instance-2/service-data/vnfs/vnf/vnf-id-3/vnf-data/vnf-topology\",\n" +
+ " \"relationship-list\": {\n" +
+ " \"relationship\": [\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/bgb-net-inst-group-1\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"bgb-net-inst-group-1\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"test\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"instance group name\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"instance-group\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.MemberOf\",\n" +
+ " \"related-link\": \"/aai/v13/network/instance-groups/instance-group/bgb-net-inst-group-2\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"instance-group.id\",\n" +
+ " \"relationship-value\": \"bgb-net-inst-group-2\"\n" +
+ " }\n" +
+ " ],\n" +
+ " \"related-to-property\": [\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.description\",\n" +
+ " \"property-value\": \"test\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"property-key\": \"instance-group.instance-group-name\",\n" +
+ " \"property-value\": \"instance group name\"\n" +
+ " }\n" +
+ " ]\n" +
+ " },\n" +
+ " {\n" +
+ " \"related-to\": \"availability-zone\",\n" +
+ " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" +
+ " \"related-link\": \"/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/availability-zones/availability-zone/AZ-MN02\",\n" +
+ " \"relationship-data\": [\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-owner\",\n" +
+ " \"relationship-value\": \"att-aic\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" +
+ " \"relationship-value\": \"mtn6\"\n" +
+ " },\n" +
+ " {\n" +
+ " \"relationship-key\": \"availability-zone.availability-zone-name\",\n" +
+ " \"relationship-value\": \"AZ-MN02\"\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ " ]\n" +
+ " }\n" +
+ "}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServiceModelList.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServiceModelList.java
new file mode 100644
index 000000000..48d630139
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServiceModelList.java
@@ -0,0 +1,80 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIGetServiceModelList extends BasePresetAAIGetVersion {
+
+ public String modelInvariant2;
+ public String modelInvariant3;
+ public PresetAAIGetServiceModelList(String modelVersionId1,
+ String modelInvariantId1, String modelInvariant2, String modelInvariant3) {
+ super(modelVersionId1, modelInvariantId1);
+ this.modelInvariant2 = modelInvariant2;
+ this.modelInvariant3 = modelInvariant3;
+ }
+
+ public String getModelInvariant2() {
+ return modelInvariant2;
+ }
+
+ public void setModelInvariant2(String modelInvariant2) {
+ this.modelInvariant2 = modelInvariant2;
+ }
+
+ public String getModelInvariant3() {
+ return modelInvariant3;
+ }
+
+ public void setModelInvariant3(String modelInvariant3) {
+ this.modelInvariant3 = modelInvariant3;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\n" +
+ "\"results\": [\n" +
+ " {\"model\": { \n" +
+ " \"model-invariant-id\": \"" + getModelInvariantId() + "\"," +
+ " \"model-type\": \"service\",\n" +
+ " \"resource-version\": \"1515103312329\",\n" +
+ " \"model-vers\": {\"model-ver\": [\n" +
+ " {\n" +
+ " \"model-version-id\": \"" + getModelVersionId1() + "\"," +
+ " \"model-name\": \"AAAvIRC_mm779p_Service\",\n" +
+ " \"model-version\": \"1.0\",\n" +
+ " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\",\n" +
+ " \"model-description\": \"tbd\",\n" +
+ " \"resource-version\": \"1516206395612\"\n" +
+ " }\n" +
+ " ]}\n" +
+ " }},\n" +
+ " {\"model\": { \n" +
+ " \"model-invariant-id\": \"" + getModelInvariant2() + "\"," +
+ " \"model-type\": \"service\",\n" +
+ " \"resource-version\": \"1515103312329\",\n" +
+ " \"model-vers\": {\"model-ver\": [\n" +
+ " {\n" +
+ " \"model-version-id\": \"1dae721c-a1ef-435f-b811-760c23f467bf\",\n" +
+ " \"model-name\": \"BBBvIRC_mm779p_Service\",\n" +
+ " \"model-version\": \"3.0\",\n" +
+ " \"model-description\": \"tbd\",\n" +
+ " \"resource-version\": \"1516025197086\"\n" +
+ " }\n" +
+ " ]}\n" +
+ " }},\n" +
+ " {\"model\": { \n" +
+ " \"model-invariant-id\": \"" + getModelInvariant3() + "\"," +
+ " \"model-type\": \"service\",\n" +
+ " \"resource-version\": \"1515103312329\",\n" +
+ " \"model-vers\": {\"model-ver\": [\n" +
+ "{\n" +
+ " \"model-version-id\": \"29236d45-e790-4c17-a115-1533cc09b7b1\",\n" +
+ " \"model-name\": \"CCCvIRC_mm779p_Service\",\n" +
+ " \"model-version\": \"4.0\",\n" +
+ " \"distribution-status\": \"DISTRIBUTION_COMPLETE_ERROR\",\n" +
+ " \"model-description\": \"tbd\",\n" +
+ " \"resource-version\": \"1517319724440\"\n" +
+ " }\n" +
+ " ]}\n" +
+ " }}\n" +
+ "]}\n";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java
new file mode 100644
index 000000000..e97e5fe3b
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java
@@ -0,0 +1,122 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIGetServicesGet extends PresetAAIBaseGetServicesGet {
+
+ @Override
+ public Object getResponseBody() {
+ return responseBody;
+ }
+
+ private String responseBody = "{\"service\":[" +
+ " {" +
+ " \"service-id\":\"ebc3bc3d-62fd-4a3f-a037-f619df4ff034\"," +
+ " \"service-description\":\"DHV\"," +
+ " \"resource-version\":\"1494001985150\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"17cc1042-527b-11e6-beb8-9e71128cae77\"," +
+ " \"service-description\":\"FLEXREACH\"," +
+ " \"resource-version\":\"1494001922171\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e\"," +
+ " \"service-description\":\"Netbond\"," +
+ " \"resource-version\":\"1494001855144\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"a4f6f2ae-9bf5-4ed7-b904-06b2099c4bd7\"," +
+ " \"service-description\":\"Enhanced Services\"," +
+ " \"resource-version\":\"1494001980153\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"vRRaaS\"," +
+ " \"service-description\":\"vRRaaS\"," +
+ " \"resource-version\":\"1484865266\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"323d69d9-2efe-4r45-ay0a-89ea7ard4e6f\"," +
+ " \"service-description\":\"vSCP\"," +
+ " \"resource-version\":\"1494001903012\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"," +
+ " \"service-description\":\"Mobility\"," +
+ " \"resource-version\":\"1503954056794\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"d8a6ed93-251c-47ca-adc9-86671fd19f4c\"," +
+ " \"service-description\":\"BVOIP\"," +
+ " \"resource-version\":\"1490910089351\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"db171b8f-115c-4992-a2e3-ee04cae357e0\"," +
+ " \"service-description\":\"FIRSTNET\"," +
+ " \"resource-version\":\"1490910095155\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"LRSI-OSPF\"," +
+ " \"service-description\":\"LRSI-OSPF\"," +
+ " \"resource-version\":\"1494001863930\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"vHNGWaas\"," +
+ " \"service-description\":\"HNGATEWAY\"," +
+ " \"resource-version\":\"1501192849249\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"vHNPaas\"," +
+ " \"service-description\":\"HNPORTAL\"," +
+ " \"resource-version\":\"1501192982895\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"e433710f-9217-458d-a79d-1c7aff376d89\"," +
+ " \"service-description\":\"VIRTUAL USP\"," +
+ " \"resource-version\":\"1494001802638\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"b6a3f28c-eebf-494c-a900-055cc7c874ce\"," +
+ " \"service-description\":\"VROUTER\"," +
+ " \"resource-version\":\"1492533254036\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"VIPRaaS\"," +
+ " \"service-description\":\"vIPRaaS\"," +
+ " \"resource-version\":\"1490910058887\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1\"," +
+ " \"service-description\":\"WAN Bonding\"," +
+ " \"resource-version\":\"1498053422512\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"c7611ebe-c324-48f1-8085-94aef0c6ef3d\"," +
+ " \"service-description\":\"HOSTED COMMUNICATIONS\"," +
+ " \"resource-version\":\"1494001913639\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"e30755dc-5673-4b6b-9dcf-9abdd96b93d1\"," +
+ " \"service-description\":\"Transport\"," +
+ " \"resource-version\":\"1506361785997\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"vVIGaaS\"," +
+ " \"service-description\":\"vVIGaaS\"," +
+ " \"resource-version\":\"1494001900545\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4\"," +
+ " \"service-description\":\"uCPE-VMS\"," +
+ " \"resource-version\":\"1494001941772\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"vPEaaS\"," +
+ " \"service-description\":\"vPEaaS\"," +
+ " \"resource-version\":\"1494001988229\"" +
+ " }," +
+ " {" +
+ " \"service-id\":\"12a96a9d-4b4c-4349-a950-fe1159602621\"," +
+ " \"service-description\":\"HOSTED COMMUNICATIONS\"," +
+ " \"resource-version\":\"1494001817126\"" +
+ " }" +
+ " ]}";
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java
new file mode 100644
index 000000000..5b9f2ff96
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java
@@ -0,0 +1,46 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+import static vid.automation.test.utils.ReadFile.loadResourceAsString;
+
+public class PresetAAIGetSubDetailsGet extends BaseAAIPreset {
+ private String subscriberId;
+ private String responseBody;
+
+ private static final String baseResponseBody = loadResourceAsString("presets_templates/PresetAAIGetSubDetailsGet.json");
+ private static final String GLOBAL_CUSTOMER_ID = "GLOBAL_CUSTOMER_ID";
+
+ public PresetAAIGetSubDetailsGet(String subscriberId) {
+ this.subscriberId = subscriberId == null ? "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb" : subscriberId;
+ this.responseBody = baseResponseBody.replace(GLOBAL_CUSTOMER_ID, this.subscriberId);
+ }
+
+ public void mapQueryParams(Map<String, List> map) {
+ map.put("depth", Collections.singletonList("2"));
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return responseBody;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/business/customers/customer/" + getSubscriberId();
+ }
+
+ public String getSubscriberId() {
+ return subscriberId;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java
new file mode 100644
index 000000000..955771295
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java
@@ -0,0 +1,159 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.opencomp.simulator.presetGenerator.presets.model.Subscriber;
+import org.springframework.http.HttpMethod;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public class PresetAAIGetSubscribersGet extends BaseAAIPreset {
+
+ private static ObjectMapper objectMapper = new ObjectMapper();
+ private List<Subscriber> subscriberList;
+
+ public PresetAAIGetSubscribersGet(List<Subscriber> subscriberList) {
+ this.subscriberList = subscriberList;
+ }
+
+ public PresetAAIGetSubscribersGet() {
+ TypeReference<List<Subscriber>> typeRef
+ = new TypeReference<List<Subscriber>>() {};
+
+ // like registration_to_simulator/create_new_instance/aai_get_full_subscribers.json
+ String subscribersString = "" +
+ "[ " +
+ " { " +
+ " \"global-customer-id\":\"MSO_1610_ST\", " +
+ " \"subscriber-name\":\"MSO_1610_ST\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1494001902987\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"21014aa2-526b-11e6-beb8-9e71128cae77\", " +
+ " \"subscriber-name\":\"PACKET CORE\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1494001776295\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1707-TestSubscriber-2\", " +
+ " \"subscriber-name\":\"ICORE CORE\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1498751754450\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1707-TestSubscriber-1\", " +
+ " \"subscriber-name\":\"PACKET1 CORE\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1498595633607\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"jimmy-example\", " +
+ " \"subscriber-name\":\"JimmyExampleCust-20161102\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1494001970063\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"jimmy-example2\", " +
+ " \"subscriber-name\":\"JimmyExampleCust-20161103\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1494001970225\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1802-TestSub-PWT-102\", " +
+ " \"subscriber-name\":\"DHV1802-TestSub-PWT-102\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1508852495058\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1802-TestSub-PWT-101\", " +
+ " \"subscriber-name\":\"DHV1802-TestSub-PWT-101\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1508179953733\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\", " +
+ " \"subscriber-name\":\"Mobility\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1494001894192\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1802-Subscriber-4\", " +
+ " \"subscriber-name\":\"DHV1802-Subscriber-5\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1509134064531\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1802-TestSub-PWT-103\", " +
+ " \"subscriber-name\":\"DHV1802-TestSub-PWT-103\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1509045503736\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1802-Subscriber-2\", " +
+ " \"subscriber-name\":\"DHV1802-Subscriber-2\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1509122065439\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"e433710f-9217-458d-a79d-1c7aff376d89\", " +
+ " \"subscriber-name\":\"USP VOICE\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1494001938080\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"DHV1802-Subscriber-3\", " +
+ " \"subscriber-name\":\"DHV1802-Subscriber-3\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1509122759407\" " +
+ " }, " +
+ " { " +
+ " \"global-customer-id\":\"31739f3e-526b-11e6-beb8-9e71128cae77\", " +
+ " \"subscriber-name\":\"FIREWALL/MISC\", " +
+ " \"subscriber-type\":\"INFRA\", " +
+ " \"resource-version\":\"1494001772223\" " +
+ " } " +
+ " ] ";
+ try {
+ this.subscriberList = objectMapper.readValue(subscribersString, typeRef);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ public List<Subscriber> getSubscriberList() {
+ return subscriberList;
+ }
+
+ public void setSubscriberList(List<Subscriber> subscriberList) {
+ this.subscriberList = subscriberList;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return ImmutableMap.of("customer", subscriberList);
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of(
+ "subscriber-type", Collections.singletonList("INFRA"),
+ "depth", Collections.singletonList("0"));
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/business/customers";
+ }
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGetInvalidResponse.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGetInvalidResponse.java
new file mode 100644
index 000000000..d5da2a92a
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGetInvalidResponse.java
@@ -0,0 +1,17 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIGetSubscribersGetInvalidResponse extends PresetAAIGetSubscribersGet {
+ private int httpCode;
+
+ public PresetAAIGetSubscribersGetInvalidResponse(int httpCode) {
+ this.httpCode = httpCode;
+ }
+
+ @Override
+ public int getResponseCode() { return httpCode; }
+
+ @Override
+ public Object getResponseBody() {
+ return "this payload is an invalid json";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java
new file mode 100644
index 000000000..45b577df4
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java
@@ -0,0 +1,27 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import static vid.automation.test.utils.ReadFile.loadResourceAsString;
+
+public class PresetAAIGetTenants extends BaseAAIPreset {
+
+ @Override
+ public Object getResponseBody() {
+ return responseBody;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL USP";
+ }
+
+ private String responseBody = loadResourceAsString("presets_templates/PresetAAIGetTenants.json");
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIPostNamedQueryForViewEdit.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIPostNamedQueryForViewEdit.java
new file mode 100644
index 000000000..07d7f1df6
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIPostNamedQueryForViewEdit.java
@@ -0,0 +1,100 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+public class PresetAAIPostNamedQueryForViewEdit extends BaseAAIPreset {
+
+ private final String serviceInstanceId;
+ private final boolean hasConfigurationInstance;
+
+ public PresetAAIPostNamedQueryForViewEdit(String serviceInstanceId) {
+ this(serviceInstanceId, true);
+ }
+
+ public PresetAAIPostNamedQueryForViewEdit(String serviceInstanceId, boolean hasConfigurationInstance) {
+ this.serviceInstanceId = serviceInstanceId;
+ this.hasConfigurationInstance = hasConfigurationInstance;
+ }
+
+ // inspired by
+ // registration_to_simulator/search_for_service_instance/aai_named_query_for_view_edit_test_sssdad.json
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.POST;
+ }
+
+ @Override
+ public String getReqPath() {
+ return "/aai/search/named-query";
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return "" +
+ "{" +
+ " \"instance-filters\": {" +
+ " \"instance-filter\": [{" +
+ " \"customer\": {" +
+ " \"global-customer-id\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" +
+ " }," +
+ " \"service-instance\": {" +
+ //" \"service-instance-id\": \"c187e9fe-40c3-4862-b73e-84ff056205f6\"" +
+ " \"service-instance-id\": \"" + serviceInstanceId + "\"" +
+ " }," +
+ " \"service-subscription\": {" +
+ " \"service-type\": \"VIRTUAL USP\"" +
+ " }" +
+ " }" +
+ " ]" +
+ " }," +
+ " \"query-parameters\": {" +
+ " \"named-query\": {" +
+ " \"named-query-uuid\": \"0367193e-c785-4d5f-9cb8-7bc89dc9ddb7\"" +
+ " }" +
+ " }" +
+ "}";
+ }
+
+ @Override
+ public Object getResponseBody() {
+ String response =
+ "{" +
+ " \"inventory-response-item\": [{" +
+ " \"model-name\": \"0eOHz2Yh8WJcBYzKy079\"," +
+ " \"service-instance\": {" +
+ " \"service-instance-id\": \"" + serviceInstanceId + "\"," +
+ " \"service-instance-name\": \"test_sssdad\"" +
+ " }," +
+ " \"extra-properties\": {}";
+ if(hasConfigurationInstance) {
+ response += "," +
+ " \"inventory-response-items\": {" +
+ " \"inventory-response-item\": [{" +
+ " \"model-name\": \"Proxy-Config-Instance\"," +
+ " \"configuration\": {" +
+ " \"configuration-id\": \"9533-config-LB1113\"," +
+ " \"configuration-name\": \"dummy_instance\"," +
+ " \"configuration-type\": \"configuration-type-9533\"," +
+ " \"configuration-sub-type\": \"configuration-sub-type-9533\"," +
+ " \"model-invariant-id\": \"model-invariant-id-9533\"," +
+ " \"model-version-id\": \"model-version-id-9533\"," +
+ //" \"orchestration-status\": \"<ORCH_STATUS>\"," +
+ " \"orchestration-status\": \"Active\"," +
+ " \"operational-status\": \"\"," +
+ " \"configuration-selflink\": \"\"," +
+ " \"model-customization-id\": \"08a181aa-72eb-435f-9593-e88a3ad0a86b\"," +
+ " \"resource-version\": \"1504038855716\"" +
+ " }," +
+ " \"extra-properties\": {}" +
+ " }" +
+ " ]" +
+ " }";
+ }
+ response += " }" +
+ " ]" +
+ "}";
+ return response;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAISearchNodeQueryEmptyResult.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAISearchNodeQueryEmptyResult.java
new file mode 100644
index 000000000..154aff755
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAISearchNodeQueryEmptyResult.java
@@ -0,0 +1,14 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAISearchNodeQueryEmptyResult extends PresetAAIBaseSearchNodeQuery {
+
+ @Override
+ public Object getResponseBody() {
+ return "{}";
+ }
+
+ @Override
+ public int getResponseCode() {
+ return 200;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIServiceDesignAndCreationPut.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIServiceDesignAndCreationPut.java
new file mode 100644
index 000000000..6a20c4796
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIServiceDesignAndCreationPut.java
@@ -0,0 +1,427 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+public class PresetAAIServiceDesignAndCreationPut extends BaseAAIPreset {
+
+ public PresetAAIServiceDesignAndCreationPut(boolean emptyList) {
+ serviceModelIdentifiers = ImmutableList.of();
+ this.emptyList = emptyList;
+ }
+
+ public PresetAAIServiceDesignAndCreationPut(String modelVersionId, String modelInvariantId) {
+ serviceModelIdentifiers = ImmutableList.of(new ServiceModelIdentifiers(modelVersionId, modelInvariantId));
+ }
+
+ public PresetAAIServiceDesignAndCreationPut(List<ServiceModelIdentifiers> serviceModelIdentifiers) {
+ this.serviceModelIdentifiers = serviceModelIdentifiers;
+ }
+
+ public static class ServiceModelIdentifiers {
+ public final String modelVersionId;
+ public final String modelInvariantId;
+
+ public ServiceModelIdentifiers(String modelVersionId, String modelInvariantId) {
+ this.modelVersionId = modelVersionId;
+ this.modelInvariantId = modelInvariantId;
+ }
+ }
+
+ private List<ServiceModelIdentifiers> serviceModelIdentifiers;
+ boolean emptyList;
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.PUT;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/query";
+ }
+
+ @Override
+ public Map<String, List> getQueryParams() {
+ return ImmutableMap.of("format", Collections.singletonList("resource"));
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return "{\"start\" : \"service-design-and-creation/models/\", \"query\" : \"query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK\"}";
+ }
+
+
+
+ private String presetModels() {
+ return
+ serviceModelIdentifiers.stream().map(identifiers ->
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"" + identifiers.modelInvariantId + "\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1500138206526\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"" + identifiers.modelVersionId + "\"," +
+ " \"model-name\": \"action-data\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"lustre settler sideways volcanic eight cellular\"," +
+ " \"resource-version\": \"1500137463984\"," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"model-element\"," +
+ " \"relationship-label\": \"isA\"," +
+ " \"related-link\": \"/aai/v12/service-design-and-creation/models/model/l2-bridge-for-wan-connector-model-id-ps-02/model-vers/model-ver/l2-bridge-for-wan-connector-resource-id-ps-02/model-elements/model-element/e874da22-729d-47bd-8c08-d596fd9c213d/model-elements/model-element/ccbb65b8-2faf-4f5f-80d9-804bb50f1455\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"model.model-invariant-id\"," +
+ " \"relationship-value\": \"l2-bridge-for-wan-connector-model-id-ps-02\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-ver.model-version-id\"," +
+ " \"relationship-value\": \"l2-bridge-for-wan-connector-resource-id-ps-02\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"e874da22-729d-47bd-8c08-d596fd9c213d\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"ccbb65b8-2faf-4f5f-80d9-804bb50f1455\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " },"
+ ).collect(Collectors.joining());
+ }
+
+
+ @Override
+ public Object getResponseBody() {
+ if(emptyList) {
+ return "{\"results\": [{}]}";
+ }
+ return "{\"results\": [" +
+ presetModels()+
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"00beb8f9-6d39-452f-816d-c709b9cbb87d\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"4076846985447\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"0903e1c0-8e03-4936-b5c2-260653b96413\"," +
+ " \"model-name\": \"action-data\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"honor immunity exile prong below misshapen\"," +
+ " \"resource-version\": \"4076846985447\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"ea78c9e3-514d-4a0a-9162-13837fa54c35\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1500137034452\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"666a06ee-4b57-46df-bacf-908da8f10c3f\"," +
+ " \"model-name\": \"multicast-configuration\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"python bullwhip appointment computation ambidextrous heaving\"," +
+ " \"resource-version\": \"1500136282691\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"78ca26d0-246d-11e7-93ae-92361f002671\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1492627634298\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"20c4431c-246d-11e7-93ae-92361f002671\"," +
+ " \"model-name\": \"vSAMP10aDEV::base::module-0\"," +
+ " \"model-version\": \"2\"," +
+ " \"model-description\": \"MSO aLaCarte VF vSAMP10aDEV Base\"," +
+ " \"resource-version\": \"1492627634300\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"5b607929-6088-4614-97ef-cac817508e0e\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1492814035001\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"797a6c41-0f80-4d35-a288-3920c4e06baa\"," +
+ " \"model-name\": \"CONTRAIL30_L2NODHCP\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"contrail 3.0.x L2 network for AIC 3.x sites (and No DHCP).\"," +
+ " \"resource-version\": \"1492814035003\"," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"model-element\"," +
+ " \"relationship-label\": \"isA\"," +
+ " \"related-link\": \"/aai/v12/service-design-and-creation/models/model/52b49b5d-3086-4ffd-b5e6-1b1e5e7e062f/model-vers/model-ver/aed5a5b7-20d3-44f7-90a3-ddbd16f14d1e/model-elements/model-element/2f622421-1c67-4142-be6e-cecad5242af6/model-elements/model-element/2add7556-a23b-46b8-b6b4-ad300b47ceab\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"model.model-invariant-id\"," +
+ " \"relationship-value\": \"52b49b5d-3086-4ffd-b5e6-1b1e5e7e062f\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-ver.model-version-id\"," +
+ " \"relationship-value\": \"aed5a5b7-20d3-44f7-90a3-ddbd16f14d1e\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"2f622421-1c67-4142-be6e-cecad5242af6\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"2add7556-a23b-46b8-b6b4-ad300b47ceab\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"0143d57b-a517-4de9-a0a1-eb76db51f402\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1497897268768\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"f1bde010-cc5f-4765-941f-75f15b24f9fc\"," +
+ " \"model-name\": \"BkVmxAv061917..base_vPE_AV..module-0\"," +
+ " \"model-version\": \"2\"," +
+ " \"resource-version\": \"1497897268769\"," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"model-element\"," +
+ " \"relationship-label\": \"isA\"," +
+ " \"related-link\": \"/aai/v12/service-design-and-creation/models/model/267ef491-3c1a-4c32-8e69-0e557bfb61e7/model-vers/model-ver/18655c7f-c846-4934-9e25-34378dfd33d6/model-elements/model-element/578492b2-36a4-47da-83dc-91b58c699ad1/model-elements/model-element/6b1fc7a5-fc01-4a9d-a87f-0ad0d8caa13f\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"model.model-invariant-id\"," +
+ " \"relationship-value\": \"267ef491-3c1a-4c32-8e69-0e557bfb61e7\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-ver.model-version-id\"," +
+ " \"relationship-value\": \"18655c7f-c846-4934-9e25-34378dfd33d6\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"578492b2-36a4-47da-83dc-91b58c699ad1\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"6b1fc7a5-fc01-4a9d-a87f-0ad0d8caa13f\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"ipe-resource-id-ps-02\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1493389430122\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"ipe-resource-id-ps-02\"," +
+ " \"model-name\": \"abc\"," +
+ " \"model-version\": \"v1.0\"," +
+ " \"resource-version\": \"1493389520357\"," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"model-element\"," +
+ " \"relationship-label\": \"isA\"," +
+ " \"related-link\": \"/aai/v12/service-design-and-creation/models/model/l2-bridge-for-wan-connector-model-id-ps-02/model-vers/model-ver/l2-bridge-for-wan-connector-resource-id-ps-02/model-elements/model-element/e874da22-729d-47bd-8c08-d596fd9c213d/model-elements/model-element/ccbb65b8-2faf-4f5f-80d9-804bb50f1455\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"model.model-invariant-id\"," +
+ " \"relationship-value\": \"l2-bridge-for-wan-connector-model-id-ps-02\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-ver.model-version-id\"," +
+ " \"relationship-value\": \"l2-bridge-for-wan-connector-resource-id-ps-02\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"e874da22-729d-47bd-8c08-d596fd9c213d\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"ccbb65b8-2faf-4f5f-80d9-804bb50f1455\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"lmoser410-connector-model-id\"," +
+ " \"model-type\": \"widget\"," +
+ " \"resource-version\": \"1493389512180\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"lmoser410-connector-model-version-id\"," +
+ " \"model-name\": \"connector\"," +
+ " \"model-version\": \"v1.0\"," +
+ " \"resource-version\": \"1493389444766\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"named-query-element\"," +
+ " \"relationship-label\": \"isA\"," +
+ " \"related-link\": \"/aai/v12/service-design-and-creation/named-queries/named-query/lmoser410-named-query-uuid/named-query-elements/named-query-element/48278a7d-2b1e-454f-89e6-5c0ba145f486\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"named-query.named-query-uuid\"," +
+ " \"relationship-value\": \"lmoser410-named-query-uuid\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"named-query-element.named-query-element-uuid\"," +
+ " \"relationship-value\": \"48278a7d-2b1e-454f-89e6-5c0ba145f486\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"3a97db99-c4bb-498a-a13a-38f65f1ced3d\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1492630209768\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"ff2ae348-214a-11e7-93ae-92361f002673\"," +
+ " \"model-name\": \"vSAMP10aDEV::base::module-0\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"MACRO_vSAMP_module\"," +
+ " \"resource-version\": \"1492630209769\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"3c504d40-b847-424c-9d25-4fb7e0a3e994\"," +
+ " \"model-type\": \"widget\"," +
+ " \"resource-version\": \"1493389430124\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"204c641a-3494-48c8-979a-86856f5fd32a\"," +
+ " \"model-name\": \"named-query-element\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"resource-version\": \"1493389423212\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }," +
+ " {" +
+ " \"model\": {" +
+ " \"model-invariant-id\": \"93e56950-cb19-44e6-ace4-8b50f2d02e45\"," +
+ " \"model-type\": \"resource\"," +
+ " \"resource-version\": \"1497898974232\"," +
+ " \"model-vers\": {" +
+ " \"model-ver\": [" +
+ " {" +
+ " \"model-version-id\": \"acba1f72-c6e0-477f-9426-ad190151e100\"," +
+ " \"model-name\": \"RG_6-19_Test\"," +
+ " \"model-version\": \"1.0\"," +
+ " \"model-description\": \"RG_6-19_Test\"," +
+ " \"resource-version\": \"1497898974233\"," +
+ " \"relationship-list\": {" +
+ " \"relationship\": [" +
+ " {" +
+ " \"related-to\": \"model-element\"," +
+ " \"relationship-label\": \"isA\"," +
+ " \"related-link\": \"/aai/v12/service-design-and-creation/models/model/a07220ba-954e-422f-86b5-e8b95fe6b116/model-vers/model-ver/bf6dbd68-2c7d-4ba2-ade1-dfd4476aa505/model-elements/model-element/6e10fe2e-6d04-4198-9124-dd051a5ae65f/model-elements/model-element/cb3c22e1-9dc6-467f-9636-0a7aef10d5d0\"," +
+ " \"relationship-data\": [" +
+ " {" +
+ " \"relationship-key\": \"model.model-invariant-id\"," +
+ " \"relationship-value\": \"a07220ba-954e-422f-86b5-e8b95fe6b116\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-ver.model-version-id\"," +
+ " \"relationship-value\": \"bf6dbd68-2c7d-4ba2-ade1-dfd4476aa505\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"6e10fe2e-6d04-4198-9124-dd051a5ae65f\"" +
+ " }," +
+ " {" +
+ " \"relationship-key\": \"model-element.model-element-uuid\"," +
+ " \"relationship-value\": \"cb3c22e1-9dc6-467f-9636-0a7aef10d5d0\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }" +
+ " ]}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java
new file mode 100644
index 000000000..5363eac4a
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BasePreset;
+
+import java.util.Arrays;
+import java.util.List;
+
+public class EcompPortalPresetsUtils {
+
+ private final static List<BasePreset> ecompPortalPresets = Arrays.asList(
+ new PresetGetUserGet(),
+ new PresetGetSessionSlotCheckIntervalGet(),
+ new PresetExtendSessionTimeOutsPost());
+
+ public static List<BasePreset> getEcompPortalPresets() {
+ return ecompPortalPresets;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java
new file mode 100644
index 000000000..c8d61df25
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseEcompPortalPreset;
+import org.springframework.http.HttpMethod;
+
+public class PresetExtendSessionTimeOutsPost extends BaseEcompPortalPreset {
+ public Object getResponseBody() {
+ return "300000";
+ }
+
+ public HttpMethod getReqMethod() {
+ return HttpMethod.POST;
+ }
+
+ public String getReqPath() {
+ return getRootPath() + "//extendSessionTimeOuts";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java
new file mode 100644
index 000000000..c35dfcda5
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseEcompPortalPreset;
+import org.springframework.http.HttpMethod;
+
+public class PresetGetSessionSlotCheckIntervalGet extends BaseEcompPortalPreset {
+ public Object getResponseBody() {
+ return "300000";
+ }
+
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ public String getReqPath() {
+ return getRootPath() + "//getSessionSlotCheckInterval";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java
new file mode 100644
index 000000000..b046b77c8
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java
@@ -0,0 +1,20 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseEcompPortalPreset;
+import org.springframework.http.HttpMethod;
+
+import java.util.Collections;
+
+public class PresetGetUserGet extends BaseEcompPortalPreset {
+ public Object getResponseBody() {
+ return Collections.EMPTY_LIST;
+ }
+
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ public String getReqPath() {
+ return getRootPath() + "/context/get_user";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/RegistrationRequest.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/RegistrationRequest.java
new file mode 100644
index 000000000..2b1cdeb5c
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/RegistrationRequest.java
@@ -0,0 +1,54 @@
+package org.opencomp.simulator.presetGenerator.presets.model;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import org.springframework.http.HttpMethod;
+
+import java.util.List;
+import java.util.Map;
+
+public class RegistrationRequest {
+
+ public static class SimulatorRequest {
+ public final HttpMethod method;
+ public final String path;
+
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ public final Map<String,List> queryParams;
+
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ public final Object body;
+
+ public SimulatorRequest(HttpMethod method, String path, Map<String, List> queryParams, Object body) {
+ this.method = method;
+ this.path = path;
+ this.queryParams = queryParams;
+ this.body = body;
+ }
+ }
+
+ public static class SimulatorResponse {
+ public final int responseCode;
+ public final Map<String,String> responseHeaders;
+
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ public final Object body;
+
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ public final String file;
+
+ public SimulatorResponse(int responseCode, Map<String, String> responseHeaders, Object body, String file) {
+ this.responseCode = responseCode;
+ this.responseHeaders = responseHeaders;
+ this.body = body;
+ this.file = file;
+ }
+ }
+
+ public SimulatorRequest simulatorRequest;
+ public SimulatorResponse simulatorResponse;
+
+ public RegistrationRequest(SimulatorRequest simulatorRequest, SimulatorResponse simulatorResponse) {
+ this.simulatorRequest = simulatorRequest;
+ this.simulatorResponse = simulatorResponse;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/Subscriber.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/Subscriber.java
new file mode 100644
index 000000000..0ec3b18c5
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/Subscriber.java
@@ -0,0 +1,19 @@
+package org.opencomp.simulator.presetGenerator.presets.model;
+
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class Subscriber {
+
+ @JsonProperty("global-customer-id")
+ public String globalCustomerId;
+
+ @JsonProperty("subscriber-name")
+ public String subscriberName;
+
+ @JsonProperty("subscriber-type")
+ public String subscriberType;
+
+ @JsonProperty("resource-version")
+ public String resourceVersion;
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetActivateServiceInstancePost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetActivateServiceInstancePost.java
new file mode 100644
index 000000000..3ea8c16c0
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetActivateServiceInstancePost.java
@@ -0,0 +1,12 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseMSOPresetServiceInstanceOperationsPost;
+
+/**
+ * Created by itzikliderman on 13/12/2017.
+ */
+public class PresetActivateServiceInstancePost extends BaseMSOPresetServiceInstanceOperationsPost {
+ public String getReqPath() {
+ return getRootPath() + "/activate";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetDeactivateServiceInstancePost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetDeactivateServiceInstancePost.java
new file mode 100644
index 000000000..99eea8152
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetDeactivateServiceInstancePost.java
@@ -0,0 +1,12 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseMSOPresetServiceInstanceOperationsPost;
+
+/**
+ * Created by itzikliderman on 13/12/2017.
+ */
+public class PresetDeactivateServiceInstancePost extends BaseMSOPresetServiceInstanceOperationsPost {
+ public String getReqPath() {
+ return getRootPath() + "/deactivate";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOAssignServiceInstanceGen2WithNames.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOAssignServiceInstanceGen2WithNames.java
new file mode 100644
index 000000000..09f1f508a
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOAssignServiceInstanceGen2WithNames.java
@@ -0,0 +1,16 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import java.util.Map;
+
+public class PresetMSOAssignServiceInstanceGen2WithNames extends PresetMSOServiceInstanceGen2WithNames {
+
+
+ public PresetMSOAssignServiceInstanceGen2WithNames(Map<Keys, String> names, int suffix) {
+ super(names, suffix);
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstantiation/v7/serviceInstances/assign";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseCreateServiceInstancePost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseCreateServiceInstancePost.java
new file mode 100644
index 000000000..73e99b526
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseCreateServiceInstancePost.java
@@ -0,0 +1,34 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseMSOPreset;
+import org.springframework.http.HttpMethod;
+
+public abstract class PresetMSOBaseCreateServiceInstancePost extends BaseMSOPreset {
+ private final String requestId;
+ public static final String DEFAULT_REQUEST_ID = "c0011670-0e1a-4b74-945d-8bf5aede1d9c";
+
+ public PresetMSOBaseCreateServiceInstancePost() {
+ this(null);
+ }
+
+ public PresetMSOBaseCreateServiceInstancePost(String requestId) {
+ this.requestId = requestId != null ? requestId : DEFAULT_REQUEST_ID;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.POST;
+ }
+
+ @Override
+ public int getResponseCode() {
+ return 202;
+ }
+
+
+
+ @Override
+ public Object getResponseBody() {
+ return "{\"requestReferences\":{\"instanceId\":\"f8791436-8d55-4fde-b4d5-72dd2cf13cfb\",\"requestId\":\"" + requestId + "\"}}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseDelete.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseDelete.java
new file mode 100644
index 000000000..5084b7cad
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOBaseDelete.java
@@ -0,0 +1,37 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseMSOPreset;
+import org.springframework.http.HttpMethod;
+
+public abstract class PresetMSOBaseDelete extends BaseMSOPreset {
+ private final String requestId;
+ public static final String DEFAULT_REQUEST_ID = "c0011670-0e1a-4b74-945d-8bf5aede1d9c";
+
+ public PresetMSOBaseDelete() {
+ this(null );
+ }
+
+ public PresetMSOBaseDelete(String requestId) {
+ this.requestId = requestId != null ? requestId : DEFAULT_REQUEST_ID;
+ }
+
+ @Override
+ protected String getRootPath() {
+ return super.getRootPath() + "/serviceInstances/v./";
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.DELETE;
+ }
+
+ @Override
+ public int getResponseCode() {
+ return 202;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{\"requestReferences\":{\"instanceId\":\"f8791436-8d55-4fde-b4d5-72dd2cf13cfb\",\"requestId\":\"" + requestId + "\"}}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2.java
new file mode 100644
index 000000000..828dae8ab
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2.java
@@ -0,0 +1,104 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSOCreateServiceInstanceGen2 extends PresetMSOBaseCreateServiceInstancePost{
+
+ public PresetMSOCreateServiceInstanceGen2() {
+ }
+
+ public PresetMSOCreateServiceInstanceGen2(String requestId) {
+ super(requestId);
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstantiation/v7/serviceInstances";
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return "" +
+ "{ " +
+ " \"requestDetails\": { " +
+ " \"modelInfo\": { " +
+ " \"modelInvariantId\": \"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0\", " +
+ " \"modelVersionId\": \"1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd\", " +
+ " \"modelName\": \"action-data\", " +
+ " \"modelType\": \"service\", " +
+ " \"modelVersion\": \"1.0\" " +
+ " }, " +
+ " \"owningEntity\": { " +
+ " \"owningEntityId\": \"d61e6f2d-12fa-4cc2-91df-7c244011d6fc\", " +
+ " \"owningEntityName\": \"MetroPacketCore\" " +
+ " }, " +
+ " \"subscriberInfo\": { " +
+ " \"globalSubscriberId\": \"e433710f-9217-458d-a79d-1c7aff376d89\" " +
+ " }, " +
+ " \"project\": { " +
+ " \"projectName\": \"DFW\" " +
+ " }, " +
+ " \"requestInfo\": { " +
+// " \"instanceName\": \"some instance name_0" + suffix + "\", " +
+ " \"productFamilyId\": \"e433710f-9217-458d-a79d-1c7aff376d89\", " +
+ " \"source\": \"VID\", " +
+ " \"suppressRollback\": true, " +
+ " \"requestorId\": \"us16807000\" " +
+ " }, " +
+ " \"requestParameters\": { " +
+ " \"subscriptionServiceType\": \"VIRTUAL USP\", " +
+ " \"aLaCarte\": false, " +
+ " \"userParams\": [{ " +
+ " \"service\": { " +
+ " \"modelInfo\": { " +
+ " \"modelVersionId\": \"1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd\", " +
+ " \"modelName\": \"action-data\", " +
+ " \"modelType\": \"service\" " +
+ " }, " +
+// " \"instanceName\": \"some instance name_0" + suffix + "\", " +
+ " \"instanceParams\": [], " +
+ " \"resources\": { " +
+ " \"vnfs\": [{ " +
+ " \"modelInfo\": { " +
+ " \"modelCustomizationName\": \"2017-488_ADIOD-vPE 0\", " +
+ " \"modelCustomizationId\": \"1da7b585-5e61-4993-b95e-8e6606c81e45\", " +
+ " \"modelInvariantId\": \"72e465fe-71b1-4e7b-b5ed-9496118ff7a8\", " +
+ " \"modelVersionId\": \"69e09f68-8b63-4cc9-b9ff-860960b5db09\", " +
+ " \"modelName\": \"2017-488_ADIOD-vPE\", " +
+ " \"modelType\": \"vnf\", " +
+ " \"modelVersion\": \"5.0\" " +
+ " }, " +
+ " \"cloudConfiguration\": { " +
+ " \"lcpCloudRegionId\": \"mtn6\", " +
+ " \"tenantId\": \"bae71557c5bb4d5aac6743a4e5f1d054\" " +
+ " }, " +
+ " \"platform\": { " +
+ " \"platformName\": \"platform\" " +
+ " }, " +
+ " \"lineOfBusiness\": { " +
+ " \"lineOfBusinessName\": \"ECOMP\" " +
+ " }, " +
+ " \"productFamilyId\": \"e433710f-9217-458d-a79d-1c7aff376d89\", " +
+ " \"instanceParams\": [], " +
+ " \"vfModules\": [{ " +
+ " \"modelInfo\": { " +
+ " \"modelInvariantId\": \"7253ff5c-97f0-4b8b-937c-77aeb4d79aa1\", " +
+ " \"modelVersionId\": \"25284168-24bb-4698-8cb4-3f509146eca5\", " +
+ " \"modelName\": \"2017488AdiodVpe..ADIOD_vRE_BV..module-1\", " +
+ " \"modelType\": \"vfModule\", " +
+ " \"modelVersion\": \"6\" " +
+ " }, " +
+// " \"instanceName\": \"VFinstancename_00" + suffix + "\", " +
+ " \"instanceParams\": [] " +
+ " } " +
+ " ] " +
+// " \"instanceName\": \"2017488_ADIODvPEVNFinstancename_00" + suffix + "\" " +
+ " } " +
+ " ] " +
+ " } " +
+ " } " +
+ " } " +
+ " ] " +
+ " } " +
+ " } " +
+ "}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2WithNames.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2WithNames.java
new file mode 100644
index 000000000..4076bc6ba
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstanceGen2WithNames.java
@@ -0,0 +1,15 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import java.util.Map;
+
+public class PresetMSOCreateServiceInstanceGen2WithNames extends PresetMSOServiceInstanceGen2WithNames {
+
+ public PresetMSOCreateServiceInstanceGen2WithNames(Map<Keys, String> names, int suffix) {
+ super(names, suffix);
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstantiation/v7/serviceInstances";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstancePost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstancePost.java
new file mode 100644
index 000000000..5b3406e90
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateServiceInstancePost.java
@@ -0,0 +1,12 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+/**
+ * Created by itzikliderman on 13/12/2017.
+ */
+public class PresetMSOCreateServiceInstancePost extends PresetMSOBaseCreateServiceInstancePost {
+
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstances/v6";
+ }
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVNFInstancePost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVNFInstancePost.java
new file mode 100644
index 000000000..726cb799f
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVNFInstancePost.java
@@ -0,0 +1,21 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSOCreateVNFInstancePost extends PresetMSOBaseCreateServiceInstancePost {
+ private String serviceInstanceId;
+ private String serviceModelVersionId;
+
+ public PresetMSOCreateVNFInstancePost(String serviceInstanceId, String serviceModelVersionId) {
+ this.serviceInstanceId = serviceInstanceId;
+ this.serviceModelVersionId = serviceModelVersionId;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstances/v./" + serviceInstanceId + "/vnfs";
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return "{\"requestDetails\":{\"requestInfo\":{\"productFamilyId\":\"e433710f-9217-458d-a79d-1c7aff376d89\",\"source\":\"VID\",\"suppressRollback\":false,\"requestorId\":\"us16807000\"},\"lineOfBusiness\":{\"lineOfBusinessName\":\"ecomp\"},\"cloudConfiguration\":{\"lcpCloudRegionId\":\"AAIAIC25\",\"tenantId\":\"092eb9e8e4b7412e8787dd091bc58e86\"},\"platform\":{\"platformName\":\"plat1\"},\"modelInfo\":{\"modelCustomizationId\":\"882e5dcb-ba9f-4766-8cde-e326638107db\",\"modelCustomizationName\":\"vDBE 0\",\"modelVersionId\":\"61535073-2e50-4141-9000-f66fea69b433\",\"modelName\":\"vDBE\",\"modelInvariantId\":\"fcdf49ce-6f0b-4ca2-b676-a484e650e734\",\"modelType\":\"vnf\",\"modelVersion\":\"0.2\"},\"requestParameters\":{\"userParams\":[],\"testApi\":\"GR_API\"},\"relatedInstanceList\":[{\"relatedInstance\":{\"instanceId\":\"" + serviceInstanceId + "\",\"modelInfo\":{\"modelVersionId\":\"" + serviceModelVersionId + "\",\"modelName\":\"vDBE_srv\",\"modelInvariantId\":\"9aa04749-c02c-432d-a90c-18caa361c833\",\"modelType\":\"service\",\"modelVersion\":\"1.0\"}}},{\"relatedInstance\":{\"instanceId\":\"AAI-12002-test3-vm230w\",\"modelInfo\":{\"modelName\":\"oam_group\",\"modelType\":\"networkCollection\",\"modelVersion\":\"1\",\"modelVersionId\":\"a0efd5fc-f7be-4502-936a-a6c6392b958f\",\"modelInvariantId\":\"9384abf9-1231-4da4-bd8d-89e4d2f8a749\"}}},{\"relatedInstance\":{\"instanceId\":\"AAI-12002-test3-vm230w\",\"modelInfo\":{\"modelName\":\"oam_group\",\"modelType\":\"networkCollection\",\"modelVersion\":\"1\",\"modelVersionId\":\"a0efd5fc-f7be-4502-936a-a6c6392b958f\",\"modelInvariantId\":\"9384abf9-1231-4da4-bd8d-89e4d2f8a749\"}}}]}}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVfModuleInstancePost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVfModuleInstancePost.java
new file mode 100644
index 000000000..29452f4d2
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOCreateVfModuleInstancePost.java
@@ -0,0 +1,62 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSOCreateVfModuleInstancePost extends PresetMSOBaseCreateServiceInstancePost{
+ private String serviceInstanceId;
+ private String vnfInstanceId;
+
+ public PresetMSOCreateVfModuleInstancePost(String serviceInstanceId, String vnfInstanceId) {
+ this.serviceInstanceId = serviceInstanceId;
+ this.vnfInstanceId = vnfInstanceId;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstances/v./" + serviceInstanceId + "/vnfs/"+vnfInstanceId+"/vfModules";
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return "{" +
+ "\"requestDetails\":{" +
+ "\"requestInfo\":{" +
+ "\"instanceName\":\"aa\"," +
+ "\"source\":\"VID\"," +
+ "\"suppressRollback\":false," +
+ "\"requestorId\":\"us16807000\"" +
+ "}," +
+ "\"modelInfo\":{" +
+ "\"modelType\":\"vfModule\"," +
+ "\"modelInvariantId\":\"\"," +
+ "\"modelVersionId\":\"\"," +
+ "\"modelName\":\"\"," +
+ "\"modelVersion\":\"\"," +
+ "\"modelCustomizationId\":\"\"," +
+ "\"modelCustomizationName\":\"\"" +
+ "}," +
+ "\"requestParameters\":{" +
+ "\"userParams\":[" +
+ "]," +
+ "\"usePreload\":false" +
+ "}," +
+ "\"cloudConfiguration\":{" +
+ "\"lcpCloudRegionId\":\"mdt1\"," +
+ "\"tenantId\":\"092eb9e8e4b7412e8787dd091bc58e86\"" +
+ "}," +
+ "\"relatedInstanceList\":[" +
+ "{" +
+ "\"relatedInstance\":{" +
+ "\"instanceId\":\"" + serviceInstanceId + "\","+
+ "\"modelInfo\":{" +
+ "\"modelType\":\"service\"," +
+ "\"modelName\":\"Demo Service 1\"," +
+ "\"modelInvariantId\":\"709d1be4-9a3f-4a29-8c4d-a20465e808a3\"," +
+ "\"modelVersion\":\"1.0\"," +
+ "\"modelVersionId\":\"240376de-870e-48df-915a-31f140eedd2c\"" +
+ "}" +
+ "}" +
+ "}" +
+ "]" +
+ "}" +
+ "}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteInstanceOrchestrationRequestGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteInstanceOrchestrationRequestGet.java
new file mode 100644
index 000000000..7d222e6e5
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteInstanceOrchestrationRequestGet.java
@@ -0,0 +1,64 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseMSOPreset;
+import org.springframework.http.HttpMethod;
+
+public class PresetMSODeleteInstanceOrchestrationRequestGet extends BaseMSOPreset {
+
+ private final static String DEFAULT_REQUEST_ID = "c0011670-0e1a-4b74-945d-8bf5aede1d9c";
+ private final String requestId;
+ private final String requestScope;
+ String requestState;
+
+ public PresetMSODeleteInstanceOrchestrationRequestGet() {
+ this("Service");
+ }
+
+ public PresetMSODeleteInstanceOrchestrationRequestGet(String requestScope) {
+ this(requestScope, "COMPLETE");
+ }
+
+ public PresetMSODeleteInstanceOrchestrationRequestGet(String requestScope, String requestState) {
+ this.requestScope = requestScope;
+ this.requestState = requestState;
+ this.requestId = DEFAULT_REQUEST_ID;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ public String getReqPath() {
+ return getRootPath() + "/orchestrationRequests/v5/" + requestId;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"request\": {" +
+ " \"requestId\": \"" + requestId + "\"," +
+ " \"startTime\": \"Mon, 11 Dec 2017 07:27:49 GMT\"," +
+ " \"requestScope\": \"" + this.requestScope.toLowerCase() + "\"," +
+ " \"requestType\": \"deleteInstance\"," +
+ " \"instanceReferences\": {" +
+ " \"serviceInstanceId\": \"f8791436-8d55-4fde-b4d5-72dd2cf13cfb\"," +
+ " \"serviceInstanceName\": \"asdfasdf234234asdf\"," +
+ " \"requestorId\": \"il883e\"" +
+ " }," +
+ " \"requestStatus\": {" +
+ " \"requestState\": \"" + requestState + "\"," +
+ " \"statusMessage\": \"" + getStatusMessage() + "\"," +
+ " \"percentProgress\": 100," +
+ " \"finishTime\": \"Mon, 11 Dec 2017 07:27:53 GMT\"" +
+ " }" +
+ " }" +
+ "}";
+ }
+
+ private String getStatusMessage() {
+ return "COMPLETE".equals(requestState) ?
+ this.requestScope + " has been deleted successfully." :
+ (this.requestScope + " has been " + requestState.toLowerCase() + " successfully.");
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteNetwork.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteNetwork.java
new file mode 100644
index 000000000..49503b98c
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteNetwork.java
@@ -0,0 +1,23 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSODeleteNetwork extends PresetMSOBaseDelete {
+ private final String serviceInstanceId;
+ private final String networkInstanceId;
+ public static final String DEFAULT_SERVICE_INSTANCE_ID = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d";
+ public static final String DEFAULT_NETWORK_INSTANCE_ID = "6adc05e4-85c6-4f91-aa5a-1eb9546c4369";
+
+ public PresetMSODeleteNetwork() {
+ this(null, null, null);
+ }
+
+ public PresetMSODeleteNetwork(String requestId, String serviceInstanceId, String networkInstanceId) {
+ super(requestId);
+ this.serviceInstanceId = serviceInstanceId != null ? serviceInstanceId : DEFAULT_SERVICE_INSTANCE_ID;
+ this.networkInstanceId = networkInstanceId != null ? networkInstanceId : DEFAULT_NETWORK_INSTANCE_ID;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + serviceInstanceId + "/networks/" + networkInstanceId;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java
new file mode 100644
index 000000000..410922c78
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java
@@ -0,0 +1,30 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import vid.automation.test.infra.Features;
+
+public class PresetMSODeleteService extends PresetMSOBaseDelete {
+ private final String serviceInstanceId;
+ public static final String DEFAULT_SERVICE_INSTANCE_ID = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d";
+
+ public PresetMSODeleteService() {
+ this(null, null);
+ }
+
+ public PresetMSODeleteService(String requestId, String serviceInstanceId) {
+ super(requestId);
+ this.serviceInstanceId = serviceInstanceId != null ? serviceInstanceId : DEFAULT_SERVICE_INSTANCE_ID;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + serviceInstanceId;
+ }
+
+ @Override
+ protected String getRootPath() {
+ return Features.FLAG_UNASSIGN_SERVICE.isActive() ?
+ "/mso/serviceInstantiation/v./serviceInstances/" :
+ "/mso/serviceInstances/v./";
+
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVfModule.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVfModule.java
new file mode 100644
index 000000000..45f8ec95e
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVfModule.java
@@ -0,0 +1,26 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSODeleteVfModule extends PresetMSOBaseDelete {
+ private final String serviceInstanceId;
+ private final String vnfInstanceId;
+ private final String vfModuleInstanceId;
+ public static final String DEFAULT_SERVICE_INSTANCE_ID = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d";
+ public static final String DEFAULT_VNF_INSTANCE_ID = "c015cc0f-0f37-4488-aabf-53795fd93cd3";
+ public static final String DEFAULT_VFMODULE_INSTANCE_ID = "f2805715-e24f-4c8a-9eb3-6c618da7691d";
+
+ public PresetMSODeleteVfModule() {
+ this(null, null, null, null);
+ }
+
+ public PresetMSODeleteVfModule(String requestId, String serviceInstanceId, String vnfInstanceId, String vfModuleInstanceId) {
+ super(requestId);
+ this.serviceInstanceId = serviceInstanceId != null ? serviceInstanceId : DEFAULT_SERVICE_INSTANCE_ID;
+ this.vnfInstanceId = vnfInstanceId != null ? vnfInstanceId : DEFAULT_VNF_INSTANCE_ID;
+ this.vfModuleInstanceId = vfModuleInstanceId != null ? vfModuleInstanceId : DEFAULT_VFMODULE_INSTANCE_ID;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + serviceInstanceId + "/vnfs/" + vnfInstanceId + "/vfModules/" + vfModuleInstanceId;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVnf.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVnf.java
new file mode 100644
index 000000000..afebeaf53
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVnf.java
@@ -0,0 +1,23 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSODeleteVnf extends PresetMSOBaseDelete {
+ private final String serviceInstanceId;
+ private final String vnfInstanceId;
+ public static final String DEFAULT_SERVICE_INSTANCE_ID = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d";
+ public static final String DEFAULT_VNF_INSTANCE_ID = "9908b762-136f-4b1f-8eb4-ef670ef58bb4";
+
+ public PresetMSODeleteVnf() {
+ this(null, null, null);
+ }
+
+ public PresetMSODeleteVnf(String requestId, String serviceInstanceId, String vnfInstanceId) {
+ super(requestId);
+ this.serviceInstanceId = serviceInstanceId != null ? serviceInstanceId : DEFAULT_SERVICE_INSTANCE_ID;
+ this.vnfInstanceId = vnfInstanceId != null ? vnfInstanceId : DEFAULT_VNF_INSTANCE_ID;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + serviceInstanceId + "/vnfs/" + vnfInstanceId;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVolumeGroup.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVolumeGroup.java
new file mode 100644
index 000000000..e0bb2cc1d
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSODeleteVolumeGroup.java
@@ -0,0 +1,26 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSODeleteVolumeGroup extends PresetMSOBaseDelete {
+ private final String serviceInstanceId;
+ private final String vnfInstanceId;
+ private final String volumeGroupInstanceId;
+ public static final String DEFAULT_SERVICE_INSTANCE_ID = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d";
+ public static final String DEFAULT_VNF_INSTANCE_ID = "c015cc0f-0f37-4488-aabf-53795fd93cd3";
+ public static final String DEFAULT_VG_INSTANCE_ID = "d9db0900-31f6-4880-8658-8c996c6123b4";
+
+ public PresetMSODeleteVolumeGroup() {
+ this(null, null, null, null);
+ }
+
+ public PresetMSODeleteVolumeGroup(String requestId, String serviceInstanceId, String vnfInstanceId, String volumeGroupInstanceId) {
+ super(requestId);
+ this.serviceInstanceId = serviceInstanceId != null ? serviceInstanceId : DEFAULT_SERVICE_INSTANCE_ID;
+ this.vnfInstanceId = vnfInstanceId != null ? vnfInstanceId : DEFAULT_VNF_INSTANCE_ID;
+ this.volumeGroupInstanceId = volumeGroupInstanceId != null ? volumeGroupInstanceId : DEFAULT_VG_INSTANCE_ID;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + serviceInstanceId + "/vnfs/" + vnfInstanceId + "/volumeGroups/" + volumeGroupInstanceId;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGet.java
new file mode 100644
index 000000000..43eae49ae
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGet.java
@@ -0,0 +1,77 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import org.apache.commons.lang3.StringUtils;
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseMSOPreset;
+import org.springframework.http.HttpMethod;
+
+/**
+ * Created by itzikliderman on 13/12/2017.
+ */
+public class PresetMSOOrchestrationRequestGet extends BaseMSOPreset {
+
+ private final String DEFAULT_REQUEST_ID = "c0011670-0e1a-4b74-945d-8bf5aede1d9c";
+ private final String requestId;
+ private String statusMessage;
+ String requestState;
+
+ public PresetMSOOrchestrationRequestGet() {
+ requestState = "COMPLETE";
+ this.requestId = DEFAULT_REQUEST_ID;
+ }
+
+ public PresetMSOOrchestrationRequestGet(String requestState) {
+ this.requestState = requestState;
+ this.requestId = DEFAULT_REQUEST_ID;
+ }
+
+ public PresetMSOOrchestrationRequestGet(String requestState, String overrideRequestId) {
+ this.requestState = requestState;
+ this.requestId = overrideRequestId;
+ }
+
+ public PresetMSOOrchestrationRequestGet(String requestState, String overrideRequestId, String statusMessage) {
+ this.requestState = requestState;
+ this.requestId = overrideRequestId;
+ this.statusMessage = statusMessage;
+ }
+
+ @Override
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ public String getReqPath() {
+ return getRootPath() + "/orchestrationRequests/v5/" + requestId;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"request\": {" +
+ " \"requestId\": \"" + requestId + "\"," +
+ " \"startTime\": \"Mon, 11 Dec 2017 07:27:49 GMT\"," +
+ " \"requestScope\": \"service\"," +
+ " \"requestType\": \"createInstance\"," +
+ " \"instanceReferences\": {" +
+ " \"serviceInstanceId\": \"f8791436-8d55-4fde-b4d5-72dd2cf13cfb\"," +
+ " \"serviceInstanceName\": \"asdfasdf234234asdf\"," +
+ " \"requestorId\": \"il883e\"" +
+ " }," +
+ " \"requestStatus\": {" +
+ " \"requestState\": \"" + requestState + "\"," +
+ " \"statusMessage\": \"" + getStatusMessage() + "\"," +
+ " \"percentProgress\": 100," +
+ " \"finishTime\": \"Mon, 11 Dec 2017 07:27:53 GMT\"" +
+ " }" +
+ " }" +
+ "}";
+ }
+
+ private String getStatusMessage() {
+ if (!StringUtils.isEmpty(statusMessage))
+ return statusMessage;
+ return "COMPLETE".equals(requestState) ?
+ "Service Instance was created successfully." :
+ ("Service Instance was " + requestState.toLowerCase() + " successfully.");
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java
new file mode 100644
index 000000000..910450aa4
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java
@@ -0,0 +1,24 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSOOrchestrationRequestGetErrorResponse extends PresetMSOOrchestrationRequestGet {
+ private final int responseCode;
+
+ public PresetMSOOrchestrationRequestGetErrorResponse(int responseCode) {
+ this.responseCode = responseCode;
+ }
+
+ @Override
+ public int getResponseCode() {
+ return responseCode;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"serviceException\": {" +
+ " \"messageId\": \"SVC0002\"," +
+ " \"text\": \"JSON Object Mapping Request\"" +
+ " }" +
+ "}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java
new file mode 100644
index 000000000..0bf60cafb
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java
@@ -0,0 +1,30 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+public class PresetMSOServiceInstanceGen2ErrorResponse extends PresetMSOBaseCreateServiceInstancePost {
+
+ private final int responseCode;
+
+ public PresetMSOServiceInstanceGen2ErrorResponse(int responseCode) {
+ this.responseCode = responseCode;
+ }
+
+ @Override
+ public int getResponseCode() {
+ return responseCode;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstantiation/v7/serviceInstances/assign";
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"serviceException\": {" +
+ " \"messageId\": \"SVC0002\"," +
+ " \"text\": \"JSON Object Mapping Request\"" +
+ " }" +
+ "}";
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2WithNames.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2WithNames.java
new file mode 100644
index 000000000..56ef9c6da
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2WithNames.java
@@ -0,0 +1,131 @@
+package org.opencomp.simulator.presetGenerator.presets.mso;
+
+import java.util.Map;
+
+import static org.opencomp.simulator.presetGenerator.presets.mso.PresetMSOServiceInstanceGen2WithNames.Keys.*;
+
+public abstract class PresetMSOServiceInstanceGen2WithNames extends PresetMSOBaseCreateServiceInstancePost{
+
+ public enum Keys {
+ SERVICE_NAME, VNF_NAME, VFM_NAME1, VFM_NAME2, VG_NAME
+ }
+
+ private final Map<Keys, String> names;
+
+ private final String suffix;
+
+ public PresetMSOServiceInstanceGen2WithNames(Map<Keys, String> names, int suffix) {
+ this.names = names;
+ this.suffix = "_" + String.format("%03d", suffix);
+ }
+
+ @Override
+ public Object getRequestBody() {
+ return "{" +
+ " \"requestDetails\": {" +
+ " \"modelInfo\": {" +
+ " \"modelInvariantId\": \"300adb1e-9b0c-4d52-bfb5-fa5393c4eabb\"," +
+ " \"modelVersionId\": \"5c9e863f-2716-467b-8799-4a67f378dcaa\"," +
+ " \"modelName\": \"AIM_TRANSPORT_00004\"," +
+ " \"modelType\": \"service\"," +
+ " \"modelVersion\": \"1.0\"" +
+ " }," +
+ " \"owningEntity\": {" +
+ " \"owningEntityId\": \"someID\"," +
+ " \"owningEntityName\": \"someName\"" +
+ " }," +
+ " \"subscriberInfo\": {" +
+ " \"globalSubscriberId\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
+ " }," +
+ " \"project\": {" +
+ " \"projectName\": \"myProject\"" +
+ " }," +
+ " \"requestInfo\": {" +
+ " \"instanceName\": \""+ names.get(SERVICE_NAME) + suffix + "\"," +
+ " \"productFamilyId\": \"myProductFamilyId\"," +
+ " \"source\": \"VID\"," +
+ " \"suppressRollback\": false," +
+ " \"requestorId\": \"ab2222\"" +
+ " }," +
+ " \"requestParameters\": {" +
+ " \"subscriptionServiceType\": \"mySubType\"," +
+ " \"aLaCarte\": false," +
+ " \"userParams\": [" +
+ " {" +
+ " \"service\": {" +
+ " \"modelInfo\": {" +
+ " \"modelVersionId\": \"5c9e863f-2716-467b-8799-4a67f378dcaa\"," +
+ " \"modelName\": \"AIM_TRANSPORT_00004\"," +
+ " \"modelType\": \"service\"" +
+ " }," +
+ " \"instanceName\": \""+ names.get(SERVICE_NAME) + suffix + "\"," +
+ " \"instanceParams\": []," +
+ " \"resources\": {" +
+ " \"vnfs\": [" +
+ " {" +
+ " \"modelInfo\": {" +
+ " \"modelCustomizationName\": \"2016-73_MOW-AVPN-vPE-BV-L 0\"," +
+ " \"modelCustomizationId\": \"ab153b6e-c364-44c0-bef6-1f2982117f04\"," +
+ " \"modelVersionId\": \"7f40c192-f63c-463e-ba94-286933b895f8\"," +
+ " \"modelName\": \"2016-73_MOW-AVPN-vPE-BV-L\"," +
+ " \"modelType\": \"vnf\"" +
+ " }," +
+ " \"cloudConfiguration\": {" +
+ " \"lcpCloudRegionId\": \"mtn3\"," +
+ " \"tenantId\": \"greatTenant\"" +
+ " }," +
+ " \"platform\": {" +
+ " \"platformName\": \"platformName\"" +
+ " }," +
+ " \"lineOfBusiness\": {" +
+ " \"lineOfBusinessName\": \"lineOfBusinessName\"" +
+ " }," +
+ " \"productFamilyId\": \"myProductFamilyId\"," +
+ " \"instanceParams\": []," +
+ " \"vfModules\": [" +
+ " {" +
+ " \"modelInfo\": {" +
+ " \"modelCustomizationId\": \"a25e8e8c-58b8-4eec-810c-97dcc1f5cb7f\"," +
+ " \"modelVersionId\": \"4c75f813-fa91-45a4-89d0-790ff5f1ae79\"," +
+ " \"modelName\": \"201673MowAvpnVpeBvL..AVPN_base_vPE_BV..module-0\"," +
+ " \"modelType\": \"vfModule\"" +
+ " }," +
+ " \"instanceName\": \""+ names.get(VFM_NAME1) + suffix +"\"," +
+ " \"instanceParams\": [" +
+ " {" +
+ " \"vmx_int_net_len\": \"24\"" +
+ " }" +
+ " ]" +
+ " }," +
+ " {" +
+ " \"modelInfo\": {" +
+ " \"modelCustomizationId\": \"72d9d1cd-f46d-447a-abdb-451d6fb05fa8\"," +
+ " \"modelVersionId\": \"56e2b103-637c-4d1a-adc8-3a7f4a6c3240\"," +
+ " \"modelName\": \"201673MowAvpnVpeBvL..AVPN_vRE_BV..module-1\"," +
+ " \"modelType\": \"vfModule\"" +
+ " }," +
+ " \"instanceName\": \"" + names.get(VFM_NAME2) + suffix + "\"," +
+ " \"volumeGroupInstanceName\" : \"" + names.get(VG_NAME) + suffix + "\"," +
+ " \"instanceParams\": [" +
+ " {" +
+ " \"vre_a_volume_size_0\": \"100\"," +
+ " \"availability_zone_0\": \"mtpocdv-kvm-az01\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " ]," +
+ " \"instanceName\": \"" + names.get(VNF_NAME)+ suffix + "\"" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ " }" +
+ " ]" +
+ " }" +
+ " }" +
+ "}";
+
+ }
+
+
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java
new file mode 100644
index 000000000..7ec6e0e2b
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java
@@ -0,0 +1,50 @@
+package org.opencomp.simulator.presetGenerator.presets.sdc;
+
+import org.springframework.http.HttpMethod;
+
+/**
+ * Created by itzikliderman on 21/12/2017.
+ */
+public class PresetSDCGetServiceMetadataGet extends SdcPresetWithModelVersionId {
+
+ public PresetSDCGetServiceMetadataGet(String modelVersionId, String modelInvariantId, String zipFileName) {
+ super(modelVersionId);
+ this.modelInvariantId = modelInvariantId;
+ this.zipFileName = zipFileName;
+ }
+
+ private final String zipFileName;
+ private final String modelInvariantId;
+
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"uuid\": \""+getModelVersionId()+"\"," +
+ " \"invariantUUID\": \""+getModelInvariantId()+"\"," +
+ " \"name\": \"action-data\"," +
+ " \"version\": \"1.0\"," +
+ " \"toscaModelURL\": \"./"+zipFileName+"\"," +
+ " \"category\": \"Mobility\"," +
+ " \"lifecycleState\": \"CERTIFIED\"," +
+ " \"lastUpdaterUserId\": \"rg276b\"," +
+ " \"lastUpdaterFullName\": null," +
+ " \"distributionStatus\": \"DISTRIBUTED\"," +
+ " \"artifacts\": null," +
+ " \"resources\": null" +
+ " }";
+ }
+
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return super.getReqPath()+"/metadata";
+ }
+
+ public String getModelInvariantId() {
+ return modelInvariantId;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
new file mode 100644
index 000000000..cb2276829
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
@@ -0,0 +1,30 @@
+package org.opencomp.simulator.presetGenerator.presets.sdc;
+
+import org.springframework.http.HttpMethod;
+
+/**
+ * Created by itzikliderman on 21/12/2017.
+ */
+public class PresetSDCGetServiceToscaModelGet extends SdcPresetWithModelVersionId {
+
+ private String file;
+
+ public PresetSDCGetServiceToscaModelGet(String modelVersionId, String file) {
+ super(modelVersionId);
+ this.file = file;
+ }
+
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return super.getReqPath()+"/toscaModel";
+ }
+
+ @Override
+ public String getFile() {
+ return file;
+ }
+}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java
new file mode 100644
index 000000000..e8fdfa2b9
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java
@@ -0,0 +1,22 @@
+package org.opencomp.simulator.presetGenerator.presets.sdc;
+
+import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseSDCPreset;
+
+public abstract class SdcPresetWithModelVersionId extends BaseSDCPreset {
+
+ public SdcPresetWithModelVersionId(String modelVersionId) {
+ this.modelVersionId = modelVersionId;
+ }
+
+ protected String modelVersionId;
+
+ public String getModelVersionId() {
+ return modelVersionId;
+ }
+
+ public String getReqPath() {
+ return getRootPath() + "/"+getModelVersionId();
+ }
+
+
+}