diff options
Diffstat (limited to 'vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai')
27 files changed, 2670 insertions, 95 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/AAIBaseGetL3NetworksByCloudRegionPreset.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/AAIBaseGetL3NetworksByCloudRegionPreset.java new file mode 100644 index 000000000..e20c09ba1 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/AAIBaseGetL3NetworksByCloudRegionPreset.java @@ -0,0 +1,76 @@ +package org.onap.simulator.presetGenerator.presets.aai; + +import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + +import java.util.*; + +public class AAIBaseGetL3NetworksByCloudRegionPreset extends BaseAAIPreset { + + public static final String DEFAULT_TENANT_ID = "b530fc990b6d4334bd45518bebca6a51"; + public static final String DEFAULT_TENANT_NAME = "ecomp_ispt"; + public static final String DEFAULT_CLOUD_REGION_ID = PresetAAIGetCloudOwnersByCloudRegionId.AUK51A; + private static final String DEFAULT_CLOUD_OWNER = PresetAAIGetCloudOwnersByCloudRegionId.ATT_NC; + protected String tenantId; + protected String tenantName; + protected String cloudRegionId; + protected String cloudOwner; + protected String networkRole; + + public AAIBaseGetL3NetworksByCloudRegionPreset(String tenentId, String tenantName, String cloudRegionId, String cloudOwner, String networkRole) { + this.tenantId = tenentId; + this.tenantName = tenantName; + this.cloudRegionId = cloudRegionId; + this.cloudOwner = cloudOwner; + this.networkRole = networkRole; + } + + public AAIBaseGetL3NetworksByCloudRegionPreset() { + this.tenantId = DEFAULT_TENANT_ID; + this.tenantName = DEFAULT_TENANT_NAME; + this.cloudRegionId = DEFAULT_CLOUD_REGION_ID; + this.cloudOwner = DEFAULT_CLOUD_OWNER; + } + + public String getTenantName() { + return tenantName; + } + + public String getTenantId() { + return tenantId; + } + + public String getCloudRegionId() { + return cloudRegionId; + } + + public String getCloudOwner() { + return cloudOwner; + } + + @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", "/cloud-infrastructure/cloud-regions/cloud-region/" + cloudOwner + "/" + cloudRegionId, + "query", "query/l3-networks-by-cloud-region?tenantId=" + tenantId + (networkRole == null ? "" : "&networkRole=" + networkRole) + ); + } +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/Placement.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/Placement.java new file mode 100644 index 000000000..b665fc30f --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/Placement.java @@ -0,0 +1,14 @@ +package org.onap.simulator.presetGenerator.presets.aai; + +public class Placement { + public final String cloudOwner; + public final String lcpRegionId; + public final String tenantId; + + public Placement(String cloudOwner, String lcpRegionId, String tenantId) { + this.cloudOwner = cloudOwner; + this.lcpRegionId = lcpRegionId; + this.tenantId = tenantId; + } +} + diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java index 66562ed63..c43843179 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAICloudRegionAndSourceFromConfigurationPut.java @@ -2,11 +2,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAICloudRegionAndSourceFromConfigurationPut extends BaseAAIPreset { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudOwnersByCloudRegionId.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudOwnersByCloudRegionId.java index be075b481..22c0cfef5 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudOwnersByCloudRegionId.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudOwnersByCloudRegionId.java @@ -1,15 +1,16 @@ package org.onap.simulator.presetGenerator.presets.aai; -import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; -import static org.apache.commons.lang3.RandomStringUtils.randomNumeric; - import com.google.common.collect.ImmutableMap; +import org.onap.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; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; + +import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; +import static org.apache.commons.lang3.RandomStringUtils.randomNumeric; public class PresetAAIGetCloudOwnersByCloudRegionId extends BaseAAIPreset { public static final String SOME_LEGACY_REGION = "some legacy region"; @@ -23,9 +24,10 @@ public class PresetAAIGetCloudOwnersByCloudRegionId extends BaseAAIPreset { public static final String olson3 = "olson3"; public static final String olson5B = "olson5b"; public static final String ATT_SABABA = "att-sababa"; - public static final String AAIAIC_25 = "JANET25"; + public static final String AAIAIC_25 = "AAIAIC25"; public static final String ONE = "One"; public static final String hvf6 = "hvf6"; + public static final String AUK51A = "auk51a"; private final String cloudRegionId; private final String cloudOwner; @@ -61,7 +63,10 @@ public class PresetAAIGetCloudOwnersByCloudRegionId extends BaseAAIPreset { public static final PresetAAIGetCloudOwnersByCloudRegionId PRESET_LCP_REGION_TEXT_TO_ATT_AIC = new PresetAAIGetCloudOwnersByCloudRegionId(LCP_REGION_TEXT, ATT_AIC); - private PresetAAIGetCloudOwnersByCloudRegionId(String cloudRegionId, String cloudOwnerResult) { + public static final PresetAAIGetCloudOwnersByCloudRegionId PRESET_AUK51A_TO_ATT_NC = + new PresetAAIGetCloudOwnersByCloudRegionId(AUK51A, ATT_NC); + + public PresetAAIGetCloudOwnersByCloudRegionId(String cloudRegionId, String cloudOwnerResult) { this.cloudRegionId = cloudRegionId; this.cloudOwner = cloudOwnerResult; } diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudRegionFromVnf.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudRegionFromVnf.java index 976228bf0..06b853578 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudRegionFromVnf.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetCloudRegionFromVnf.java @@ -2,11 +2,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetCloudRegionFromVnf extends BaseAAIPreset { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegion.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegion.java new file mode 100644 index 000000000..6b47fe004 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegion.java @@ -0,0 +1,267 @@ +package org.onap.simulator.presetGenerator.presets.aai; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; + +import java.util.*; +import java.util.stream.Collectors; + +public class PresetAAIGetL3NetworksByCloudRegion extends AAIBaseGetL3NetworksByCloudRegionPreset { + + private static final int NUMBER_OF_VALID_NETWORKS = 3; + private static final String NETWORK_NAME_TEMPLATE = "AUK51a_oam_calea_net_"; + private static final String NETWORK_TYPE_TEMPLATE = "SR-IOV-PROVIDER2-"; + private static final String NETWORK_PHYSICAL_NAME_TEMPLATE = "sriovnet"; + private static final String NETWORK_MODEL_ID = "77010093-df36-4dcb-8428-c3d02bf3f88d"; + private static final String ACTIVE = "Active"; + private static final String SERVICE_INSTANCE_NAME_TEMPLATE = "AUK51a_oam_calea_net_service_"; + private static final String NETWORK_ROLE_TEMPLATE = "oam_calea_net_"; + private List<Network> networks = new ArrayList<>(); + + + private void initNetworks() { + // Valid networks + for (int i=0; i <= NUMBER_OF_VALID_NETWORKS; i++) { + networks.add(new Network( + NETWORK_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + NETWORK_TYPE_TEMPLATE + i, + networkRole == null? NETWORK_ROLE_TEMPLATE + i : networkRole, + ACTIVE, + NETWORK_PHYSICAL_NAME_TEMPLATE + i, + NETWORK_MODEL_ID, + SERVICE_INSTANCE_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + tenantName, + cloudRegionId, + true + )); + } + // Not Active + int i = NUMBER_OF_VALID_NETWORKS + 1; + networks.add(new Network( + NETWORK_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + NETWORK_TYPE_TEMPLATE + i, + networkRole == null? NETWORK_ROLE_TEMPLATE + i : networkRole, + "Assigned", + NETWORK_PHYSICAL_NAME_TEMPLATE + i, + NETWORK_MODEL_ID, + SERVICE_INSTANCE_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + tenantName, + cloudRegionId, + true + )); + // Empty name + i++; + networks.add(new Network( + "", + UUID.randomUUID().toString(), + NETWORK_TYPE_TEMPLATE + i, + networkRole == null? NETWORK_ROLE_TEMPLATE + i : networkRole, + ACTIVE, + NETWORK_PHYSICAL_NAME_TEMPLATE + i, + NETWORK_MODEL_ID, + SERVICE_INSTANCE_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + tenantName, + cloudRegionId, + true + )); + // No name + i++; + networks.add(new Network( + null, + UUID.randomUUID().toString(), + NETWORK_TYPE_TEMPLATE + i, + networkRole == null? NETWORK_ROLE_TEMPLATE + i : networkRole, + ACTIVE, + NETWORK_PHYSICAL_NAME_TEMPLATE + i, + NETWORK_MODEL_ID, + SERVICE_INSTANCE_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + tenantName, + cloudRegionId, + true + )); + // Not related to VPN binding + i++; + networks.add(new Network( + NETWORK_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + NETWORK_TYPE_TEMPLATE + i, + networkRole == null? NETWORK_ROLE_TEMPLATE + i : networkRole, + ACTIVE, + NETWORK_PHYSICAL_NAME_TEMPLATE + i, + NETWORK_MODEL_ID, + SERVICE_INSTANCE_NAME_TEMPLATE + i, + UUID.randomUUID().toString(), + tenantName, + cloudRegionId, + false + )); + } + + public PresetAAIGetL3NetworksByCloudRegion(String tenentId, String tenantId, String cloudRegionId, String cloudOwner, String networkRole) { + super(tenantId, tenantId, cloudRegionId, cloudOwner, networkRole); + initNetworks(); + } + + public PresetAAIGetL3NetworksByCloudRegion() { + super(); + initNetworks(); + } + + public PresetAAIGetL3NetworksByCloudRegion(String networkRole) { + super(); + this.networkRole = networkRole; + initNetworks(); + } + + public String getActiveNetworksWithNameAndRelatedToVpnBindingAsJsonString() throws JsonProcessingException { + ObjectMapper mapper = new ObjectMapper(); + return mapper.writeValueAsString(networks.stream().filter(network -> network.networkName != null && !network.networkName.isEmpty() && network.orchStatus.equals(ACTIVE) && network.isBoundToVpn).collect(Collectors.toList())); + } + + @Override + public Object getResponseBody() { + StringJoiner stringJoiner = new StringJoiner(",", "[", "]"); + for (Network network : networks) { + stringJoiner.add(network.toString()); + } + return "{\"results\": " + stringJoiner.toString() + "}"; + } + + private class Network { + @JsonProperty("instanceName") + public String networkName; + @JsonProperty("instanceId") + public String networkId; + @JsonProperty("instanceType") + public String networkType; + public String role; + public String orchStatus; + public String physicalName; + @JsonProperty("uuid") + public String modelUUID; + public String serviceName; + public String serviceUUID; + public String tenantName; + @JsonProperty("lcpCloudRegionId") + public String region; + private boolean isBoundToVpn; + + + public Network(String networkName, String networkId, String networkType, String role, String orchStatus, String physicalName, + String modelUUID, String serviceName, String serviceUUID, String tenantName, String region, boolean isBoundToVpn) { + this.networkName = networkName; + this.networkId = networkId; + this.networkType = networkType; + this.role = role; + this.orchStatus = orchStatus; + this.physicalName = physicalName; + this.modelUUID = modelUUID; + this.serviceName = serviceName; + this.serviceUUID = serviceUUID; + this.tenantName = tenantName; + this.region = region; + this.isBoundToVpn = isBoundToVpn; + } + + @Override + public String toString (){ + return "{\"l3-network\": " + + "{\n" + + " \"network-id\": \"" + networkId + "\",\n" + + (networkName == null ? "" : " \"network-name\": \"" + networkName + "\",\n") + + " \"network-type\": \"" + networkType + "\",\n" + + " \"network-role\": \"" + role + "\",\n" + + " \"network-technology\": \"STANDARD-SR-IOV\",\n" + + " \"is-bound-to-vpn\": " + isBoundToVpn + ",\n" + + " \"resource-version\": \"1540925016770\",\n" + + " \"orchestration-status\": \"" + orchStatus + "\",\n" + + " \"model-invariant-id\": \"b9a9b549-0ee4-49fc-b4f2-5edc6701da68\",\n" + + " \"model-version-id\": \"" + modelUUID + "\",\n" + + " \"model-customization-id\": \"e5f33853-f84c-4cdd-99f2-93846957aa18\",\n" + + " \"physical-network-name\": \"" + physicalName + "\",\n" + + " \"is-provider-network\": true,\n" + + " \"is-shared-network\": true,\n" + + " \"is-external-network\": false,\n" + + " \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/" + serviceUUID + "/service-data/networks/network/" + networkId + "/network-data/network-topology/\",\n" + + " \"relationship-list\": {\n" + + " \"relationship\": [{\n" + + " \"related-to\": \"service-instance\",\n" + + " \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\",\n" + + " \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/" + serviceUUID + "\",\n" + + " \"relationship-data\": [{\n" + + " \"relationship-key\": \"customer.global-customer-id\",\n" + + " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"\n" + + " }, {\n" + + " \"relationship-key\": \"service-subscription.service-type\",\n" + + " \"relationship-value\": \"Emanuel\"\n" + + " }, {\n" + + " \"relationship-key\": \"service-instance.service-instance-id\",\n" + + " \"relationship-value\": \"" + serviceUUID + "\"\n" + + " }],\n" + + " \"related-to-property\": [{\n" + + " \"property-key\": \"service-instance.service-instance-name\",\n" + + " \"property-value\": \"" + serviceName + "\"\n" + + " }]\n" + + " }, {\n" + + " \"related-to\": \"tenant\",\n" + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/" + cloudOwner + "/" + cloudRegionId + "/tenants/tenant/" + tenantId + "\",\n" + + " \"relationship-data\": [{\n" + + " \"relationship-key\": \"cloud-region.cloud-owner\",\n" + + " \"relationship-value\": \"" + cloudOwner + "\"\n" + + " }, {\n" + + " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" + + " \"relationship-value\": \"" + region + "\"\n" + + " }, {\n" + + " \"relationship-key\": \"tenant.tenant-id\",\n" + + " \"relationship-value\": \"" + tenantId + "\"\n" + + " }],\n" + + " \"related-to-property\": [{\n" + + " \"property-key\": \"tenant.tenant-name\",\n" + + " \"property-value\": \"" + tenantName +"\"\n" + + " }]\n" + + " }, {\n" + + " \"related-to\": \"cloud-region\",\n" + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\",\n" + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/" + cloudOwner + "/" + cloudRegionId + "\",\n" + + " \"relationship-data\": [{\n" + + " \"relationship-key\": \"cloud-region.cloud-owner\",\n" + + " \"relationship-value\": \"" + cloudOwner + "\"\n" + + " }, {\n" + + " \"relationship-key\": \"cloud-region.cloud-region-id\",\n" + + " \"relationship-value\": \"" + region + "\"\n" + + " }],\n" + + " \"related-to-property\": [{\n" + + " \"property-key\": \"cloud-region.owner-defined-type\",\n" + + " \"property-value\": \"lcp\"\n" + + " }]\n" + + " }, {\n" + + " \"related-to\":\"" + (isBoundToVpn ? "vpn-binding" : "something-else") + "\",\n" + + " \"relationship-label\":\"org.onap.relationships.inventory.Uses\",\n" + + " \"related-link\":\"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\",\n" + + " \"relationship-data\":[{\n" + + " \"relationship-key\":\"vpn-binding.vpn-id\",\n" + + " \"relationship-value\":\"3e7834fb-a8e0-4243-a837-5352ccab4602\"\n" + + " }],\n" + + " \"related-to-property\": [{\n" + + " \"property-key\":\"vpn-binding.vpn-name\",\n" + + " \"property-value\":\"LPPVPN\"\n" + + " }, {\n" + + " \"property-key\":\"vpn-binding.vpn-type\",\n" + + " \"property-value\":\"CUSTOMER\"\n" + + " }]\n" + + " }]\n" + + " }\n" + + " }\n" + + " }"; + } + } + +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegionSpecificState.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegionSpecificState.java new file mode 100644 index 000000000..01a4fb9b4 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegionSpecificState.java @@ -0,0 +1,776 @@ +package org.onap.simulator.presetGenerator.presets.aai; + +public class PresetAAIGetL3NetworksByCloudRegionSpecificState extends AAIBaseGetL3NetworksByCloudRegionPreset { + private int stateNum = 1; + + public PresetAAIGetL3NetworksByCloudRegionSpecificState(int stateNum) { + super(); + this.stateNum = stateNum; + } + + public PresetAAIGetL3NetworksByCloudRegionSpecificState(String cloudOwner, String cloudRegionId, String tenantId) { + super(tenantId, null, cloudRegionId, cloudOwner, null); + } + + @Override + public Object getResponseBody() { + if (stateNum == 1) { + return STATE_1; + } else + return STATE_2; + } + + private static final String STATE_1 = "{ " + + " \"results\": [{ " + + " \"l3-network\": { " + + " \"network-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861131\", " + + " \"network-name\": \"AUK51a_oam_calea_net_0\", " + + " \"network-type\": \"SR-IOV-PROVIDER2-0\", " + + " \"network-role\": \"oam_calea_net_0\", " + + " \"network-technology\": \"STANDARD-SR-IOV\", " + + " \"is-bound-to-vpn\": true, " + + " \"resource-version\": \"1540925016770\", " + + " \"orchestration-status\": \"Active\", " + + " \"model-invariant-id\": \"b9a9b549-0ee4-49fc-b4f2-5edc6701da68\", " + + " \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", " + + " \"model-customization-id\": \"e5f33853-f84c-4cdd-99f2-93846957aa18\", " + + " \"physical-network-name\": \"sriovnet0\", " + + " \"is-provider-network\": true, " + + " \"is-shared-network\": true, " + + " \"is-external-network\": false, " + + " \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/ddd91e3d-7cd1-4010-958d-94c729937d2d/service-data/networks/network/dbd80094-df1a-4831-8699-a96949dbca5c/network-data/network-topology/\", " + + " \"relationship-list\": { " + + " \"relationship\": [{ " + + " \"related-to\": \"service-instance\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", " + + " \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/ddd91e3d-7cd1-4010-958d-94c729937d2d\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"customer.global-customer-id\", " + + " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" " + + " }, { " + + " \"relationship-key\": \"service-subscription.service-type\", " + + " \"relationship-value\": \"Emanuel\" " + + " }, { " + + " \"relationship-key\": \"service-instance.service-instance-id\", " + + " \"relationship-value\": \"1c98917b-8255-43c6-98f1-7a2942e75ce1\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"service-instance.service-instance-name\", " + + " \"property-value\": \"AUK51a_oam_calea_net_service_0\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"tenant\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " }, { " + + " \"relationship-key\": \"tenant.tenant-id\", " + + " \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"tenant.tenant-name\", " + + " \"property-value\": \"ecomp_ispt\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"cloud-region\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"cloud-region.owner-defined-type\", " + + " \"property-value\": \"lcp\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"vpn-binding\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"vpn-binding.vpn-id\", " + + " \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"vpn-binding.vpn-name\", " + + " \"property-value\": \"LPPVPN\" " + + " }, { " + + " \"property-key\": \"vpn-binding.vpn-type\", " + + " \"property-value\": \"CUSTOMER\" " + + " } " + + " ] " + + " } " + + " ] " + + " } " + + " } " + + " }, { " + + " \"l3-network\": { " + + " \"network-id\": \"b45cdb14-7a80-4ebd-b979-b1d7c7620851\", " + + " \"network-name\": \"AUK51a_oam_calea_net_1\", " + + " \"network-type\": \"SR-IOV-PROVIDER2-1\", " + + " \"network-role\": \"oam_calea_net_1\", " + + " \"network-technology\": \"STANDARD-SR-IOV\", " + + " \"is-bound-to-vpn\": true, " + + " \"resource-version\": \"1540925016770\", " + + " \"orchestration-status\": \"Active\", " + + " \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", " + + " \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", " + + " \"model-customization-id\": \"3b45cdb14-7a80-4ebd-b979-b1d7c7620851\", " + + " \"physical-network-name\": \"sriovnet1\", " + + " \"is-provider-network\": true, " + + " \"is-shared-network\": true, " + + " \"is-external-network\": false, " + + " \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/ee1b756e-3c9c-4ee0-974b-6218f377b20d/service-data/networks/network/fa1d9589-478d-41ea-96e6-39714ddc6aa5/network-data/network-topology/\", " + + " \"relationship-list\": { " + + " \"relationship\": [{ " + + " \"related-to\": \"service-instance\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", " + + " \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/ee1b756e-3c9c-4ee0-974b-6218f377b20d\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"customer.global-customer-id\", " + + " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" " + + " }, { " + + " \"relationship-key\": \"service-subscription.service-type\", " + + " \"relationship-value\": \"Emanuel\" " + + " }, { " + + " \"relationship-key\": \"service-instance.service-instance-id\", " + + " \"relationship-value\": \"fc21e453-7ff4-438e-bc69-df1f9474b00a\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"service-instance.service-instance-name\", " + + " \"property-value\": \"AUK51a_oam_calea_net_service_1\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"tenant\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " }, { " + + " \"relationship-key\": \"tenant.tenant-id\", " + + " \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"tenant.tenant-name\", " + + " \"property-value\": \"ecomp_ispt\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"cloud-region\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"cloud-region.owner-defined-type\", " + + " \"property-value\": \"lcp\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"vpn-binding\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"vpn-binding.vpn-id\", " + + " \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"vpn-binding.vpn-name\", " + + " \"property-value\": \"LPPVPN\" " + + " }, { " + + " \"property-key\": \"vpn-binding.vpn-type\", " + + " \"property-value\": \"CUSTOMER\" " + + " } " + + " ] " + + " } " + + " ] " + + " } " + + " } " + + " }, { " + + " \"l3-network\": { " + + " \"network-id\": \"10a74149-c9d7-4918-bbcf-d5fb9b1799ce\", " + + " \"network-name\": \"AUK51a_oam_calea_net_2\", " + + " \"network-type\": \"SR-IOV-PROVIDER2-2\", " + + " \"network-role\": \"oam_calea_net_2\", " + + " \"network-technology\": \"STANDARD-SR-IOV\", " + + " \"is-bound-to-vpn\": true, " + + " \"resource-version\": \"1540925016770\", " + + " \"orchestration-status\": \"Active\", " + + " \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", " + + " \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", " + + " \"model-customization-id\": \"10a74149-c9d7-4918-bbcf-d5fb9b1799ce\", " + + " \"physical-network-name\": \"sriovnet2\", " + + " \"is-provider-network\": true, " + + " \"is-shared-network\": true, " + + " \"is-external-network\": false, " + + " \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/315ccdb4-5a11-499f-95dc-25ae4be37dad/service-data/networks/network/2d4f97f5-702a-4707-b9e5-aa9d3e35deeb/network-data/network-topology/\", " + + " \"relationship-list\": { " + + " \"relationship\": [{ " + + " \"related-to\": \"service-instance\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", " + + " \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/315ccdb4-5a11-499f-95dc-25ae4be37dad\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"customer.global-customer-id\", " + + " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" " + + " }, { " + + " \"relationship-key\": \"service-subscription.service-type\", " + + " \"relationship-value\": \"Emanuel\" " + + " }, { " + + " \"relationship-key\": \"service-instance.service-instance-id\", " + + " \"relationship-value\": \"b28d8a84-7d93-4b56-b525-c239c1e780a4\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"service-instance.service-instance-name\", " + + " \"property-value\": \"AUK51a_oam_calea_net_service_2\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"tenant\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " }, { " + + " \"relationship-key\": \"tenant.tenant-id\", " + + " \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"tenant.tenant-name\", " + + " \"property-value\": \"ecomp_ispt\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"cloud-region\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"cloud-region.owner-defined-type\", " + + " \"property-value\": \"lcp\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"vpn-binding\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"vpn-binding.vpn-id\", " + + " \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"vpn-binding.vpn-name\", " + + " \"property-value\": \"LPPVPN\" " + + " }, { " + + " \"property-key\": \"vpn-binding.vpn-type\", " + + " \"property-value\": \"CUSTOMER\" " + + " } " + + " ] " + + " } " + + " ] " + + " } " + + " } " + + " }, { " + + " \"l3-network\": { " + + " \"network-id\": \"95380967-0f1c-41e9-a47f-9baa3f90860c\", " + + " \"network-name\": \"AUK51a_oam_calea_net_3\", " + + " \"network-type\": \"SR-IOV-PROVIDER2-3\", " + + " \"network-role\": \"oam_calea_net_3\", " + + " \"network-technology\": \"STANDARD-SR-IOV\", " + + " \"is-bound-to-vpn\": true, " + + " \"resource-version\": \"1540925016770\", " + + " \"orchestration-status\": \"Active\", " + + " \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", " + + " \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", " + + " \"model-customization-id\": \"95380967-0f1c-41e9-a47f-9baa3f90860c\", " + + " \"physical-network-name\": \"sriovnet3\", " + + " \"is-provider-network\": true, " + + " \"is-shared-network\": true, " + + " \"is-external-network\": false, " + + " \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/c44ad6cc-639a-4c6b-a327-583afd656a0d/service-data/networks/network/cf18fbb3-ddcb-4774-bd30-e0e895c0e35e/network-data/network-topology/\", " + + " \"relationship-list\": { " + + " \"relationship\": [{ " + + " \"related-to\": \"service-instance\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", " + + " \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/c44ad6cc-639a-4c6b-a327-583afd656a0d\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"customer.global-customer-id\", " + + " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" " + + " }, { " + + " \"relationship-key\": \"service-subscription.service-type\", " + + " \"relationship-value\": \"Emanuel\" " + + " }, { " + + " \"relationship-key\": \"service-instance.service-instance-id\", " + + " \"relationship-value\": \"f09bbb55-8942-4621-892f-4690a8e5570a\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"service-instance.service-instance-name\", " + + " \"property-value\": \"AUK51a_oam_calea_net_service_3\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"tenant\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " }, { " + + " \"relationship-key\": \"tenant.tenant-id\", " + + " \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"tenant.tenant-name\", " + + " \"property-value\": \"ecomp_ispt\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"cloud-region\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"cloud-region.owner-defined-type\", " + + " \"property-value\": \"lcp\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"vpn-binding\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"vpn-binding.vpn-id\", " + + " \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"vpn-binding.vpn-name\", " + + " \"property-value\": \"LPPVPN\" " + + " }, { " + + " \"property-key\": \"vpn-binding.vpn-type\", " + + " \"property-value\": \"CUSTOMER\" " + + " } " + + " ] " + + " } " + + " ] " + + " } " + + " } " + + " }, { " + + " \"l3-network\": { " + + " \"network-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", " + + " \"network-name\": \"AUK51a_oam_calea_net_0\", " + + " \"network-type\": \"SR-IOV-PROVIDER2-0\", " + + " \"network-technology\": \"STANDARD-SR-IOV\", " + + " \"is-bound-to-vpn\": true, " + + " \"resource-version\": \"1540925016770\", " + + " \"orchestration-status\": \"Active\", " + + " \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", " + + " \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", " + + " \"model-customization-id\": \"95380967-0f1c-41e9-a47f-9baa3f90860c\", " + + " \"physical-network-name\": \"sriovnet0\", " + + " \"is-provider-network\": true, " + + " \"is-shared-network\": true, " + + " \"is-external-network\": false, " + + " \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/74141179-b5b9-4383-aab4-45f5b9f70127/service-data/networks/network/62cecd1b-f4bf-4e16-add9-2b6f5181e595/network-data/network-topology/\", " + + " \"relationship-list\": { " + + " \"relationship\": [{ " + + " \"related-to\": \"service-instance\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", " + + " \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/74141179-b5b9-4383-aab4-45f5b9f70127\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"customer.global-customer-id\", " + + " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" " + + " }, { " + + " \"relationship-key\": \"service-subscription.service-type\", " + + " \"relationship-value\": \"Emanuel\" " + + " }, { " + + " \"relationship-key\": \"service-instance.service-instance-id\", " + + " \"relationship-value\": \"1c98917b-8255-43c6-98f1-7a2942e75ce1\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"service-instance.service-instance-name\", " + + " \"property-value\": \"AUK51a_oam_calea_net_service_0\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"tenant\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " }, { " + + " \"relationship-key\": \"tenant.tenant-id\", " + + " \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"tenant.tenant-name\", " + + " \"property-value\": \"ecomp_ispt\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"cloud-region\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"cloud-region.cloud-owner\", " + + " \"relationship-value\": \"att-nc\" " + + " }, { " + + " \"relationship-key\": \"cloud-region.cloud-region-id\", " + + " \"relationship-value\": \"auk51a\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"cloud-region.owner-defined-type\", " + + " \"property-value\": \"lcp\" " + + " } " + + " ] " + + " }, { " + + " \"related-to\": \"vpn-binding\", " + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\", " + + " \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", " + + " \"relationship-data\": [{ " + + " \"relationship-key\": \"vpn-binding.vpn-id\", " + + " \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" " + + " } " + + " ], " + + " \"related-to-property\": [{ " + + " \"property-key\": \"vpn-binding.vpn-name\", " + + " \"property-value\": \"LPPVPN\" " + + " }, { " + + " \"property-key\": \"vpn-binding.vpn-type\", " + + " \"property-value\": \"CUSTOMER\" " + + " } " + + " ] " + + " } " + + " ] " + + " } " + + " } " + + " } " + + " ] " + + "}"; + + private static final String STATE_2 = "{\"results\": [" + + " {\"l3-network\": {" + + " \"network-id\": \"CC-l3network_1\"," + + " \"is-bound-to-vpn\": false," + + " \"resource-version\": \"1556206041065\"," + + " \"is-provider-network\": false," + + " \"is-shared-network\": false," + + " \"is-external-network\": false," + + " \"relationship-list\": {\"relationship\": [ {" + + " \"related-to\": \"tenant\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" + + " }" + + " ]," + + " \"related-to-property\": [ {" + + " \"property-key\": \"tenant.tenant-name\"," + + " \"property-value\": \"tenant-name-CC-ANAI-528T1\"" + + " }]" + + " }]}" + + " }}," + + " {\"l3-network\": {" + + " \"network-id\": \"CC-l3network_3\"," + + " \"network-name\": \"DLLSTXRNDS3\"," + + " \"network-role\": \"Backup\"," + + " \"is-bound-to-vpn\": true," + + " \"resource-version\": \"1556139217403\"," + + " \"is-provider-network\": false," + + " \"is-shared-network\": false," + + " \"is-external-network\": false," + + " \"relationship-list\": {\"relationship\": [" + + " {" + + " \"related-to\": \"tenant\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" + + " }" + + " ]," + + " \"related-to-property\": [ {" + + " \"property-key\": \"tenant.tenant-name\"," + + " \"property-value\": \"tenant-name-CC-ANAI-528T1\"" + + " }]" + + " }," + + " {" + + " \"related-to\": \"tenant\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528-T2\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"tenant-id-CC-ANAI-528-T2\"" + + " }" + + " ]," + + " \"related-to-property\": [ {" + + " \"property-key\": \"tenant.tenant-name\"," + + " \"property-value\": \"tenant-name-CC-ANAI-528T2\"" + + " }]" + + " }," + + " {" + + " \"related-to\": \"tenant\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T3\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"tenant-id-CC-ANAI-528T3\"" + + " }" + + " ]," + + " \"related-to-property\": [ {" + + " \"property-key\": \"tenant.tenant-name\"," + + " \"property-value\": \"tenant-name-CC-ANAI-528T3\"" + + " }]" + + " }" + + " ]}" + + " }}," + + " {\"l3-network\": {" + + " \"network-id\": \"l3network2-550-as988q\"," + + " \"network-name\": \"CHICGIL01VDBE01_SubIntNtwk043\"," + + " \"network-type\": \"K6VD\"," + + " \"network-role\": \"X92XE0j\"," + + " \"network-technology\": \"ZYbPEnCjX6Oqd\"," + + " \"neutron-network-id\": \"fpFvDje\"," + + " \"is-bound-to-vpn\": false," + + " \"service-id\": \"NJnzYaRlz0Test\"," + + " \"network-role-instance\": 162," + + " \"resource-version\": \"1556823012443\"," + + " \"orchestration-status\": \"active\"," + + " \"heat-stack-id\": \"0GmDeg\"," + + " \"mso-catalog-key\": \"la5ylhZ5g0D\"," + + " \"contrail-network-fqdn\": \"EaeexDk47\"," + + " \"model-customization-id\": \"wgmn6PrJ5\"," + + " \"widget-model-id\": \"e0yNr\"," + + " \"widget-model-version\": \"yKpry3J0VVLn\"," + + " \"physical-network-name\": \"wq6OKbZMTY\"," + + " \"is-provider-network\": false," + + " \"is-shared-network\": false," + + " \"is-external-network\": false," + + " \"selflink\": \"9xtMu4EPuTi\"," + + " \"operational-status\": \"W8aj\"," + + " \"is-trunked\": true," + + " \"relationship-list\": {\"relationship\": [" + + " {" + + " \"related-to\": \"tenant\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" + + " }" + + " ]," + + " \"related-to-property\": [ {" + + " \"property-key\": \"tenant.tenant-name\"," + + " \"property-value\": \"tenant-name-CC-ANAI-528T1\"" + + " }]" + + " }," + + " {" + + " \"related-to\": \"configuration\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.PartOf\"," + + " \"related-link\": \"/aai/v17/network/configurations/configuration/configuration2-550-as988q\"," + + " \"relationship-data\": [ {" + + " \"relationship-key\": \"configuration.configuration-id\"," + + " \"relationship-value\": \"configuration2-550-as988q\"" + + " }]" + + " }," + + " {" + + " \"related-to\": \"configuration\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.PartOf\"," + + " \"related-link\": \"/aai/v17/network/configurations/configuration/configuration1-550-as988q\"," + + " \"relationship-data\": [ {" + + " \"relationship-key\": \"configuration.configuration-id\"," + + " \"relationship-value\": \"configuration1-550-as988q\"" + + " }]" + + " }," + + " {" + + " \"related-to\": \"vpn-binding\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/network/vpn-bindings/vpn-binding/VPNbinding3-550-as988q\"," + + " \"relationship-data\": [ {" + + " \"relationship-key\": \"vpn-binding.vpn-id\"," + + " \"relationship-value\": \"VPNbinding3-550-as988q\"" + + " }]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"vpn-binding.vpn-name\"," + + " \"property-value\": \"SZ2A5L_VPNTest\"" + + " }," + + " {" + + " \"property-key\": \"vpn-binding.vpn-type\"," + + " \"property-value\": \"1903e94v\"" + + " }" + + " ]" + + " }" + + " ]}" + + " }}," + + " {\"l3-network\": {" + + " \"network-id\": \"CC-l3network_2\"," + + " \"network-name\": \"DLLSTXRNDS2\"," + + " \"network-role\": \"Primary\"," + + " \"is-bound-to-vpn\": true," + + " \"resource-version\": \"1556136783141\"," + + " \"is-provider-network\": true," + + " \"is-shared-network\": true," + + " \"is-external-network\": true," + + " \"relationship-list\": {\"relationship\": [" + + " {" + + " \"related-to\": \"tenant\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" + + " }" + + " ]," + + " \"related-to-property\": [ {" + + " \"property-key\": \"tenant.tenant-name\"," + + " \"property-value\": \"tenant-name-CC-ANAI-528T1\"" + + " }]" + + " }," + + " {" + + " \"related-to\": \"tenant\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528-T2\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"tenant-id-CC-ANAI-528-T2\"" + + " }" + + " ]," + + " \"related-to-property\": [ {" + + " \"property-key\": \"tenant.tenant-name\"," + + " \"property-value\": \"tenant-name-CC-ANAI-528T2\"" + + " }]" + + " }" + + " ]}" + + " }}" + + "]}"; + + + + +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegionWithError.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegionWithError.java new file mode 100644 index 000000000..1d74b0f39 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetL3NetworksByCloudRegionWithError.java @@ -0,0 +1,23 @@ +package org.onap.simulator.presetGenerator.presets.aai; + +public class PresetAAIGetL3NetworksByCloudRegionWithError extends AAIBaseGetL3NetworksByCloudRegionPreset { + private int errorCode; + private String errorText; + + + public PresetAAIGetL3NetworksByCloudRegionWithError(int errorCode, String errorText) { + super(); + this.errorCode = errorCode; + this.errorText = errorText; + } + + @Override + public int getResponseCode() { + return errorCode; + } + + @Override + public Object getResponseBody() { + return "{\"status\":\"Error\", \"text\":\"" + errorText + "\"}"; + } +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java index 41c35b8a5..ae921fd79 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByOwningEntity.java @@ -1,11 +1,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetModelsByOwningEntity extends BaseAAIPreset { String oeName; diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java index cb80fd6ce..4da5c0567 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetModelsByProject.java @@ -1,12 +1,13 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableMap; +import org.onap.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; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetModelsByProject extends BaseAAIPreset { private String projectName; diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java index b99f58bda..3758d3f3b 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetails.java @@ -2,11 +2,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetNetworkCollectionDetails extends BaseAAIPreset { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java index 0d447c2c2..31cd6fdd0 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsInvalidRequest.java @@ -2,11 +2,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetNetworkCollectionDetailsInvalidRequest extends BaseAAIPreset { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java index 23b35d204..b3f34bb3e 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetNetworkCollectionDetailsRequiredMissing.java @@ -2,11 +2,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetNetworkCollectionDetailsRequiredMissing extends BaseAAIPreset { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java index 0676217a1..8bc0fe63a 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPNFByRegionErrorPut.java @@ -11,8 +11,8 @@ 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=JANET25&equipVendor=Cisco&equipModel=Nexus%203048-TP\"" + + " \"start\": \"/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/TYLER%20SILVIA/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\"" + " }"; } diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java index fdb387d71..9fad964d8 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePorts.java @@ -1,11 +1,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetPortMirroringSourcePorts extends BaseAAIPreset { public PresetAAIGetPortMirroringSourcePorts(String configurationId, String interfaceId, String interfaceName, boolean isPortMirrored) { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java index da1a120b4..c75155273 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetRelatedInstanceGroupsByVnfId.java @@ -1,11 +1,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetRelatedInstanceGroupsByVnfId extends BaseAAIPreset { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java index 615879e18..2d59cd633 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetServicesGet.java @@ -10,17 +10,17 @@ public class PresetAAIGetServicesGet extends PresetAAIBaseGetServicesGet { private String responseBody = "{\"service\":[" + " {" + " \"service-id\":\"ebc3bc3d-62fd-4a3f-a037-f619df4ff034\"," + - " \"service-description\":\"DHV\"," + + " \"service-description\":\"ERICA\"," + " \"resource-version\":\"1494001985150\"" + " }," + " {" + " \"service-id\":\"17cc1042-527b-11e6-beb8-9e71128cae77\"," + - " \"service-description\":\"FLEXREACH\"," + + " \"service-description\":\"IGNACIO\"," + " \"resource-version\":\"1494001922171\"" + " }," + " {" + " \"service-id\":\"36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e\"," + - " \"service-description\":\"Netbond\"," + + " \"service-description\":\"Christie\"," + " \"resource-version\":\"1494001855144\"" + " }," + " {" + @@ -50,7 +50,7 @@ public class PresetAAIGetServicesGet extends PresetAAIBaseGetServicesGet { " }," + " {" + " \"service-id\":\"db171b8f-115c-4992-a2e3-ee04cae357e0\"," + - " \"service-description\":\"FIRSTNET\"," + + " \"service-description\":\"LINDSEY\"," + " \"resource-version\":\"1490910095155\"" + " }," + " {" + @@ -85,12 +85,12 @@ public class PresetAAIGetServicesGet extends PresetAAIBaseGetServicesGet { " }," + " {" + " \"service-id\":\"0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1\"," + - " \"service-description\":\"WAN Bonding\"," + + " \"service-description\":\"CARA Griffin\"," + " \"resource-version\":\"1498053422512\"" + " }," + " {" + " \"service-id\":\"c7611ebe-c324-48f1-8085-94aef0c6ef3d\"," + - " \"service-description\":\"HOSTED COMMUNICATIONS\"," + + " \"service-description\":\"DARREN MCGEE\"," + " \"resource-version\":\"1494001913639\"" + " }," + " {" + @@ -105,7 +105,7 @@ public class PresetAAIGetServicesGet extends PresetAAIBaseGetServicesGet { " }," + " {" + " \"service-id\":\"d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4\"," + - " \"service-description\":\"uCPE-VMS\"," + + " \"service-description\":\"JOSEFINA\"," + " \"resource-version\":\"1494001941772\"" + " }," + " {" + @@ -115,7 +115,7 @@ public class PresetAAIGetServicesGet extends PresetAAIBaseGetServicesGet { " }," + " {" + " \"service-id\":\"12a96a9d-4b4c-4349-a950-fe1159602621\"," + - " \"service-description\":\"HOSTED COMMUNICATIONS\"," + + " \"service-description\":\"DARREN MCGEE\"," + " \"resource-version\":\"1494001817126\"" + " }" + " ]}"; diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java index db41b9518..c14c1c7df 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java @@ -1,13 +1,14 @@ package org.onap.simulator.presetGenerator.presets.aai; -import static vid.automation.test.utils.ReadFile.loadResourceAsString; - import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; + +import static vid.automation.test.utils.ReadFile.loadResourceAsString; public class PresetAAIGetSubDetailsGet extends BaseAAIPreset { private String subscriberId; diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGetSpecificService.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGetSpecificService.java index 615c196a9..291f0b722 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGetSpecificService.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGetSpecificService.java @@ -1,15 +1,16 @@ package org.onap.simulator.presetGenerator.presets.aai; -import static vid.automation.test.infra.ModelInfo.serviceFabricSriovService; - import com.google.common.collect.ImmutableMap; -import java.util.Collections; -import java.util.List; -import java.util.Map; import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; import org.springframework.http.HttpMethod; import vid.automation.test.infra.ModelInfo; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +import static vid.automation.test.infra.ModelInfo.serviceFabricSriovService; + public class PresetAAIGetSubDetailsGetSpecificService extends BaseAAIPreset { private String subscriberId; private String subscriberName = "Emanuel"; @@ -60,13 +61,13 @@ public class PresetAAIGetSubDetailsGetSpecificService extends BaseAAIPreset { " \"service-subscriptions\":{" + " \"service-subscription\":[" + " {" + - " \"service-type\":\"vFlowLogic\"," + + " \"service-type\":\"vRichardson\"," + " \"resource-version\":\"1501700976809\"," + " \"service-instances\":{" + " \"service-instance\":[" + " {" + " \"service-instance-id\":\"414db2d4-18d0-415e-aac2-f255b586cfb5\"," + - " \"service-instance-name\":\"vFlowLogic-vflf_080117\"," + + " \"service-instance-name\":\"vRichardson-vflf_080117\"," + " \"persona-model-id\":null," + " \"persona-model-version\":null," + " \"resource-version\":\"1502391806301\"," + @@ -76,7 +77,7 @@ public class PresetAAIGetSubDetailsGetSpecificService extends BaseAAIPreset { " }," + " {" + " \"service-instance-id\":\"769be44e-981a-4da8-af3b-ca5fa76b7fb1\"," + - " \"service-instance-name\":\"vFlowLogic-vflp_080117\"," + + " \"service-instance-name\":\"vRichardson-vflp_080117\"," + " \"persona-model-id\":null," + " \"persona-model-version\":null," + " \"resource-version\":\"1501712783617\"," + diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGet.java index f6ce3e86d..95a7c87d7 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGet.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGet.java @@ -1,11 +1,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetSubDetailsWithoutInstancesGet extends BaseAAIPreset { private String subscriberId; @@ -52,7 +53,7 @@ public class PresetAAIGetSubDetailsWithoutInstancesGet extends BaseAAIPreset { " \"service-subscriptions\":{" + " \"service-subscription\":[" + " {" + - " \"service-type\":\"vFlowLogic\"," + + " \"service-type\":\"vRichardson\"," + " \"resource-version\":\"1501700976809\"," + " \"is-permitted\":false" + " }," + @@ -67,7 +68,7 @@ public class PresetAAIGetSubDetailsWithoutInstancesGet extends BaseAAIPreset { " \"is-permitted\":false" + " }," + " {" + - " \"service-type\":\"vBNG\"," + + " \"service-type\":\"vJamie\"," + " \"resource-version\":\"1498068165053\"," + " \"is-permitted\":false" + " }," + @@ -82,7 +83,7 @@ public class PresetAAIGetSubDetailsWithoutInstancesGet extends BaseAAIPreset { " \"is-permitted\":true" + " }," + " {" + - " \"service-type\":\"vSEGW\"," + + " \"service-type\":\"vPorfirio\"," + " \"resource-version\":\"1494254851983\"," + " \"is-permitted\":false" + " }," + @@ -97,7 +98,7 @@ public class PresetAAIGetSubDetailsWithoutInstancesGet extends BaseAAIPreset { " \"is-permitted\":false" + " }," + " {" + - " \"service-type\":\"vMME\"," + + " \"service-type\":\"vFLORENCE\"," + " \"resource-version\":\"1497729820723\"," + " \"is-permitted\":false" + " }," + @@ -132,17 +133,17 @@ public class PresetAAIGetSubDetailsWithoutInstancesGet extends BaseAAIPreset { " \"is-permitted\":false" + " }," + " {" + - " \"service-type\":\"FIRSTNET\"," + + " \"service-type\":\"LINDSEY\"," + " \"resource-version\":\"1509387060781\"," + " \"is-permitted\":false" + " }," + " {" + - " \"service-type\":\"ACTIVE_CHARGE\"," + + " \"service-type\":\"JOHANNA_SANTOS\"," + " \"resource-version\":\"1494255101364\"," + " \"is-permitted\":false" + " }," + " {" + - " \"service-type\":\"vHSS\"," + + " \"service-type\":\"vCarroll\"," + " \"resource-version\":\"1494254877333\"," + " \"is-permitted\":false" + " }" + diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGetSpecificService.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGetSpecificService.java index 62a587001..44941ade8 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGetSpecificService.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsWithoutInstancesGetSpecificService.java @@ -1,11 +1,12 @@ package org.onap.simulator.presetGenerator.presets.aai; import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + import java.util.Collections; import java.util.List; import java.util.Map; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; public class PresetAAIGetSubDetailsWithoutInstancesGetSpecificService extends BaseAAIPreset { private String subscriberId; @@ -49,7 +50,7 @@ public class PresetAAIGetSubDetailsWithoutInstancesGetSpecificService extends Ba " \"service-subscriptions\":{" + " \"service-subscription\":[" + " {" + - " \"service-type\":\"vFlowLogic\"," + + " \"service-type\":\"vRichardson\"," + " \"resource-version\":\"1501700976809\"," + " \"is-permitted\":false" + " }," + diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java index 0517fd788..c6a5f3063 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetSubscribersGet.java @@ -3,13 +3,14 @@ package org.onap.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.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.onap.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; -import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.onap.simulator.presetGenerator.presets.model.Subscriber; -import org.springframework.http.HttpMethod; public class PresetAAIGetSubscribersGet extends BaseAAIPreset { diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java index 638cc3911..0808eaba6 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetTenants.java @@ -1,10 +1,10 @@ package org.onap.simulator.presetGenerator.presets.aai; -import static vid.automation.test.utils.ReadFile.loadResourceAsString; - import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; import org.springframework.http.HttpMethod; +import static vid.automation.test.utils.ReadFile.loadResourceAsString; + public class PresetAAIGetTenants extends BaseAAIPreset { private final String subscriberId; private final String serviceType; diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetVpnsByType.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetVpnsByType.java new file mode 100644 index 000000000..70700f366 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIGetVpnsByType.java @@ -0,0 +1,370 @@ +package org.onap.simulator.presetGenerator.presets.aai; + +import com.google.common.collect.ImmutableMap; +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; +import org.springframework.http.HttpMethod; + +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public class PresetAAIGetVpnsByType extends BaseAAIPreset { + + private String vpnType; + + public PresetAAIGetVpnsByType() { + this.vpnType = "SERVICE-INFRASTRUCTURE"; + } + + public PresetAAIGetVpnsByType(String vpnType) { + this.vpnType = vpnType; + } + + @Override + public Map<String, List> getQueryParams() { + return ImmutableMap.of("vpn-type", Collections.singletonList(vpnType)); + } + + @Override + public Object getResponseBody() { + return "{" + + " \"vpn-binding\": [" + + " {" + + " \"vpn-id\": \"120d39fb-3627-473d-913c-d228dd0f8e5b\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1260\"," + + " \"resource-version\": \"1551904539767\"," + + " \"route-targets\" : [" + + " {" + + " \"global-route-target\":\"mock-global-1\"," + + " \"route-target-role\" : \"mock-role-x\"" + + " }," + + " {" + + " \"global-route-target\":\"mock-global-2\"," + + " \"route-target-role\" : \"mock-role-y\"" + + " }" + + " ],"+ + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"configuration\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/network/configurations/configuration/f1e81ceb-ce90-4d54-b181-e1ce8552250e\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"configuration.configuration-id\"," + + " \"relationship-value\": \"f1e81ceb-ce90-4d54-b181-e1ce8552250e\"" + + " }" + + " ]" + + " }," + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"c70391f3-a6e3-4874-9834-cbe12d7bf8b6\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1274\"," + + " \"resource-version\": \"1552507588857\"," + + " \"model-customization-id\" : \"cc3bff3f-cd4d-49bb-aac3-77e8e1168297\"," + + " \"model-invariant-id\" : \"e73127d5-c2de-43b2-bc02-602fa5c9aa29\"," + + " \"model-version-id\" : \"94209bf1-67fa-4741-96fe-a2b3f86f84b2\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"4776516b-7da2-446c-9ba7-47ca8c30c571\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1275\"," + + " \"resource-version\": \"1552591517864\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"46fcb25a-e7ba-4d96-99ba-3bb6eae6aba7\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1271\"," + + " \"resource-version\": \"1552331549256\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"ffefbe38-3087-418a-87ae-f6582a15be78\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1272\"," + + " \"resource-version\": \"1552469097776\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"961d05be-ee41-40a2-8653-f603fc495175\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1273\"," + + " \"resource-version\": \"1552481667950\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"14bcfc2f-bbee-4fd9-89a5-42eb5dbb08d5\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"913443\"," + + " \"resource-version\": \"1553182405707\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"89d4c968-158c-4722-a22c-c5c2ccc17fd5\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1276\"," + + " \"resource-version\": \"1553018006071\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1259\"," + + " \"resource-version\": \"1551967976427\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"customer\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v14/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"customer.global-customer-id\"," + + " \"relationship-value\": \"e433710f-9217-458d-a79d-1c7aff376d89\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"customer.subscriber-name\"," + + " \"property-value\": \"SILVIA ROBBINS\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }," + + " {" + + " \"vpn-id\": \"844a1ea7-556a-4e49-8aa3-171f1db4ea02\"," + + " \"vpn-name\": \"LPPVPN\"," + + " \"vpn-platform\": \"AVPN\"," + + " \"vpn-type\": \"" + vpnType + "\"," + + " \"vpn-region\": \"USA,EMEA\"," + + " \"customer-vpn-id\": \"VPN1277\"," + + " \"resource-version\": \"1553086769917\"," + + " \"relationship-list\": {" + + " \"relationship\": [" + + " {" + + " \"related-to\": \"l3-network\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v15/network/l3-networks/l3-network/ac5224b1-71cc-4237-a401-c00b2fd65a78\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"l3-network.network-id\"," + + " \"relationship-value\": \"ac5224b1-71cc-4237-a401-c00b2fd65a78\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"l3-network.network-name\"," + + " \"property-value\": \"APP-C-24595-T-IST-04B_int_SUB-INTERFACE_net_051\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + "}"; + } + + @Override + public HttpMethod getReqMethod() { + return HttpMethod.GET; + } + + @Override + public String getReqPath() { + return getRootPath() + "/network/vpn-bindings"; + } + +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIModelsByInvariantIdGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIModelsByInvariantIdGet.java index 429d17647..d5a9bafb6 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIModelsByInvariantIdGet.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIModelsByInvariantIdGet.java @@ -118,6 +118,34 @@ public class PresetAAIModelsByInvariantIdGet extends BaseAAIPreset { " }" + " }," + " {" + + " \"model-version-id\": \"f028b2e2-7080-4b13-91b2-94944d4c42d8\"," + + " \"model-name\": \"Service with VRF\"," + + " \"model-version\": \"5.0\"," + + " \"model-description\": \"vEPDG\"," + + " \"resource-version\": \"1507472057702\"" + + " }," + + " {" + + " \"model-version-id\": \"9cac02be-2489-4374-888d-2863b4511a59\"," + + " \"model-name\": \"VRF Entry Configuration\"," + + " \"model-version\": \"5.0\"," + + " \"model-description\": \"vEPDG\"," + + " \"resource-version\": \"1507472057702\"" + + " }," + + " {" + + " \"model-version-id\": \"network-instance-model-version-id\"," + + " \"model-name\": \"Network Entry\"," + + " \"model-version\": \"6.0\"," + + " \"model-description\": \"vEPDG\"," + + " \"resource-version\": \"1507472057702\"" + + " }," + + " {" + + " \"model-version-id\": \"vpn-model-version-id\"," + + " \"model-name\": \"vf_vEPDG\"," + + " \"model-version\": \"6.0\"," + + " \"model-description\": \"vEPDG\"," + + " \"resource-version\": \"1507472057702\"" + + " }," + + " {" + " \"model-version-id\": \"eb5f56bf-5855-4e61-bd00-3e19a953bf02\"," + " \"model-name\": \"vf_vEPDG\"," + " \"model-version\": \"1.0\"," + diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIModelsByInvariantIdGetForServiceWithCR.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIModelsByInvariantIdGetForServiceWithCR.java new file mode 100644 index 000000000..b2e7b18aa --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIModelsByInvariantIdGetForServiceWithCR.java @@ -0,0 +1,908 @@ +package org.onap.simulator.presetGenerator.presets.aai; + +import com.google.common.collect.ImmutableList; + +public class PresetAAIModelsByInvariantIdGetForServiceWithCR extends PresetAAIModelsByInvariantIdGet { + public PresetAAIModelsByInvariantIdGetForServiceWithCR(ImmutableList<String> modelInvariantIds) { + super(modelInvariantIds); + } + + @Override + public Object getResponseBody() { + return "{" + + " \"model\": [{" + + " \"model-invariant-id\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"," + + " \"model-type\": \"service\"," + + " \"resource-version\": \"1534274421300\"," + + " \"model-vers\": {" + + " \"model-ver\": [{" + + " \"model-version-id\": \"a92f899d-a3ec-465b-baed-1663b0a5aee1\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"3.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1534788756086\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"901e2641-c66c-4178-a6e8-cbe2877b0a2a\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534463243387\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"d2fda667-e92e-4cfa-9620-5da5de01a319\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"1.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1534444087221\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"d291ed5e-4f50-4f57-956d-ce0e67a059e5\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534274421311\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"d4a447e5-9791-47b9-b365-1abb19b4b626\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"4.0\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1534863624237\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"0ef29f1f-836a-4fab-986c-5f1b96310a3d\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534863624242\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"0e97a118-b1b6-40d5-bbad-98cdd51b1c48\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"11.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1550783120267\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"0ea8ac21-64b8-4489-9d62-12e625d66995\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1543961990189\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"46093d8f-6dfa-4332-9c00-7e822c681b59\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"7.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1534885144462\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"d74a5dff-ef7f-4e32-9c13-d82fb2c617c9\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534885014144\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"12930bcc-5276-42bb-8ed6-1e43d7acae2c\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"10.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1539613511543\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"4d57798e-81b7-490e-bee8-48bd382a1349\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1539613450903\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"f8783bb2-6135-4c35-8320-64fa7deae76b\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"2.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1534450229751\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"c666f1dd-99ff-442a-9ba2-1ee2dabb9e25\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534450167963\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"0148e4c5-629b-4fef-9728-1e13fd630679\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"9.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1537901614540\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"6ae6fd91-2086-470d-8c36-9d668c41fd32\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1537882880185\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"1ceab842-7ded-49f1-a129-dce2ecef8c71\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"6.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1534883213652\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"5ca853fc-2984-45c7-b2e7-8514a56785ba\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534883154090\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"fd21f6b5-02f6-4ac0-9515-e1f01112da95\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"5.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1534872246413\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"0812b47d-7ef1-4a65-b6fb-9f3ff3bc3eee\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534872174141\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"6e0bec91-09f3-43aa-9cf3-e617cd0146be\"," + + " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," + + " \"model-version\": \"8.0\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"model-description\": \"Network Collection service for vLAN tagging\"," + + " \"resource-version\": \"1536098608209\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"a0247d2e-3843-4753-be2f-4c252c99390e\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1536098548388\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"82194af1-3c2c-485a-8f44-420e22a9eaa4\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46b92144-923a-4d20-b85a-3cbd847668a9\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"service-instance\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-invariant-id\": \"868b109c-9481-4a18-891b-af974db7705a\"," + + " \"model-type\": \"resource\"," + + " \"resource-version\": \"1534795610752\"," + + " \"model-vers\": {" + + " \"model-ver\": [{" + + " \"model-version-id\": \"dd182d7d-6949-4b90-b3cc-5befe400742e\"," + + " \"model-name\": \"ncm_vlan_ym161f..NetworkCollection..0\"," + + " \"model-version\": \"1\"," + + " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," + + " \"resource-version\": \"1534795610763\"" + + " }, {" + + " \"model-version-id\": \"e5fc56b7-e14c-45e5-b127-978c36a921c0\"," + + " \"model-name\": \"ncm_vlan_ym161f..NetworkCollection..0\"," + + " \"model-version\": \"1\"," + + " \"resource-version\": \"1543961989136\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"9001ff96-1142-49c6-af5b-df4e2b23a305\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1543961989136\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/3bf1e610-45f7-4ad6-b833-ca4c5ee6a3fd/model-vers/model-ver/8e6ee9dc-9017-444a-83b3-219edb018128\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"3bf1e610-45f7-4ad6-b833-ca4c5ee6a3fd\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"8e6ee9dc-9017-444a-83b3-219edb018128\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"instance-group\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/081ceb56-eb71-4566-a72d-3e7cbee5cdf1/model-vers/model-ver/a580855f-8d1b-40d5-a75b-50709fbd17d3/model-elements/model-element/06014449-69d3-4aef-a96b-0a5130ba9483/model-elements/model-element/a050dc96-2c35-45c7-ba23-9279215d501e\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"081ceb56-eb71-4566-a72d-3e7cbee5cdf1\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"a580855f-8d1b-40d5-a75b-50709fbd17d3\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"06014449-69d3-4aef-a96b-0a5130ba9483\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"a050dc96-2c35-45c7-ba23-9279215d501e\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-invariant-id\": \"081ceb56-eb71-4566-a72d-3e7cbee5cdf1\"," + + " \"model-type\": \"resource\"," + + " \"resource-version\": \"1534788713816\"," + + " \"model-vers\": {" + + " \"model-ver\": [{" + + " \"model-version-id\": \"747d2a17-5771-4fd6-879d-c2e9e4c5cd4f\"," + + " \"model-name\": \"NCM_VLAN_ym161f\"," + + " \"model-version\": \"2.0\"," + + " \"model-description\": \"Network Collection Service VF for VLAN TAgging\"," + + " \"resource-version\": \"1534863623891\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"0dd28c63-cadf-48b2-afb0-a7bf7184ef5a\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534863623895\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/425b2158-e51d-4509-9945-dad4556474a3/model-vers/model-ver/2a160989-b202-47dd-874b-4a0f275998f7\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"425b2158-e51d-4509-9945-dad4556474a3\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"2a160989-b202-47dd-874b-4a0f275998f7\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"cloud-region\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/d4a447e5-9791-47b9-b365-1abb19b4b626/model-elements/model-element/0ef29f1f-836a-4fab-986c-5f1b96310a3d/model-elements/model-element/700f890b-05c9-471a-b859-956655d28f47\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"d4a447e5-9791-47b9-b365-1abb19b4b626\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"0ef29f1f-836a-4fab-986c-5f1b96310a3d\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"700f890b-05c9-471a-b859-956655d28f47\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"a580855f-8d1b-40d5-a75b-50709fbd17d3\"," + + " \"model-name\": \"NCM_VLAN_ym161f\"," + + " \"model-version\": \"6.0\"," + + " \"model-description\": \"Network Collection Service VF for VLAN TAgging\"," + + " \"resource-version\": \"1543961989670\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"06014449-69d3-4aef-a96b-0a5130ba9483\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1543961989670\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/8bac3599-9a1c-4b7f-80e5-c1838f744c23/model-vers/model-ver/3f908abc-3a15-40d0-b674-2a639e52884d\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"8bac3599-9a1c-4b7f-80e5-c1838f744c23\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"3f908abc-3a15-40d0-b674-2a639e52884d\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"collection\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/0e97a118-b1b6-40d5-bbad-98cdd51b1c48/model-elements/model-element/0ea8ac21-64b8-4489-9d62-12e625d66995/model-elements/model-element/d614653c-5f19-4668-ad98-cfbe012308e1\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"0e97a118-b1b6-40d5-bbad-98cdd51b1c48\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"0ea8ac21-64b8-4489-9d62-12e625d66995\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"d614653c-5f19-4668-ad98-cfbe012308e1\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"b84e2233-37bf-4c8d-b613-eb8a8820b725\"," + + " \"model-name\": \"NCM_VLAN_ym161f\"," + + " \"model-version\": \"4.0\"," + + " \"model-description\": \"Network Collection Service VF for VLAN TAgging\"," + + " \"resource-version\": \"1534883153714\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"f7c3f5bb-777a-4d9f-9401-a652f5006152\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534883153720\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/425b2158-e51d-4509-9945-dad4556474a3/model-vers/model-ver/2a160989-b202-47dd-874b-4a0f275998f7\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"425b2158-e51d-4509-9945-dad4556474a3\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"2a160989-b202-47dd-874b-4a0f275998f7\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"cloud-region\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/1ceab842-7ded-49f1-a129-dce2ecef8c71/model-elements/model-element/5ca853fc-2984-45c7-b2e7-8514a56785ba/model-elements/model-element/030553aa-8d82-4b03-a3dc-bc210daadd5e\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"1ceab842-7ded-49f1-a129-dce2ecef8c71\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"5ca853fc-2984-45c7-b2e7-8514a56785ba\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"030553aa-8d82-4b03-a3dc-bc210daadd5e\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"5ededaad-905c-4356-b30d-471b0ae2a12a\"," + + " \"model-name\": \"NCM_VLAN_ym161f\"," + + " \"model-version\": \"3.0\"," + + " \"model-description\": \"Network Collection Service VF for VLAN TAgging\"," + + " \"resource-version\": \"1534872173817\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"31f558c6-d73a-43e4-aab0-c863ccd6b110\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534872173821\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/425b2158-e51d-4509-9945-dad4556474a3/model-vers/model-ver/2a160989-b202-47dd-874b-4a0f275998f7\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"425b2158-e51d-4509-9945-dad4556474a3\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"2a160989-b202-47dd-874b-4a0f275998f7\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"cloud-region\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/fd21f6b5-02f6-4ac0-9515-e1f01112da95/model-elements/model-element/0812b47d-7ef1-4a65-b6fb-9f3ff3bc3eee/model-elements/model-element/110a5ba4-997b-45f0-8e53-d64d6b342be1\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"fd21f6b5-02f6-4ac0-9515-e1f01112da95\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"0812b47d-7ef1-4a65-b6fb-9f3ff3bc3eee\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"110a5ba4-997b-45f0-8e53-d64d6b342be1\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"67b91dcd-4fa5-4111-80c9-60d524740667\"," + + " \"model-name\": \"NCM_VLAN_ym161f\"," + + " \"model-version\": \"1.0\"," + + " \"model-description\": \"Network Collection Service VF for VLAN TAgging\"," + + " \"resource-version\": \"1534788713822\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"6fdf228e-89ce-4cf6-9bd7-399aa1b690b3\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534788713833\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/425b2158-e51d-4509-9945-dad4556474a3/model-vers/model-ver/2a160989-b202-47dd-874b-4a0f275998f7\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"425b2158-e51d-4509-9945-dad4556474a3\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"2a160989-b202-47dd-874b-4a0f275998f7\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"cloud-region\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }, {" + + " \"model-version-id\": \"ce8c98bc-4691-44fb-8ff0-7a47487c11c4\"," + + " \"model-name\": \"NCM_VLAN_ym161f\"," + + " \"model-version\": \"5.0\"," + + " \"model-description\": \"Network Collection Service VF for VLAN TAgging\"," + + " \"resource-version\": \"1534885013739\"," + + " \"model-elements\": {" + + " \"model-element\": [{" + + " \"model-element-uuid\": \"4bd10473-a9de-4399-abe7-c9b24e48e0ee\"," + + " \"new-data-del-flag\": \"T\"," + + " \"cardinality\": \"unbounded\"," + + " \"resource-version\": \"1534885013745\"," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-ver\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/425b2158-e51d-4509-9945-dad4556474a3/model-vers/model-ver/2a160989-b202-47dd-874b-4a0f275998f7\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"425b2158-e51d-4509-9945-dad4556474a3\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"2a160989-b202-47dd-874b-4a0f275998f7\"" + + " }" + + " ]," + + " \"related-to-property\": [{" + + " \"property-key\": \"model-ver.model-name\"," + + " \"property-value\": \"cloud-region\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }," + + " \"relationship-list\": {" + + " \"relationship\": [{" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/12930bcc-5276-42bb-8ed6-1e43d7acae2c/model-elements/model-element/4d57798e-81b7-490e-bee8-48bd382a1349/model-elements/model-element/93eafb42-11b5-471d-8f8a-333408114a9a\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"12930bcc-5276-42bb-8ed6-1e43d7acae2c\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"4d57798e-81b7-490e-bee8-48bd382a1349\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"93eafb42-11b5-471d-8f8a-333408114a9a\"" + + " }" + + " ]" + + " }, {" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/6e0bec91-09f3-43aa-9cf3-e617cd0146be/model-elements/model-element/a0247d2e-3843-4753-be2f-4c252c99390e/model-elements/model-element/cb986adf-5ca8-48a5-ac9b-b222d6d2e280\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"6e0bec91-09f3-43aa-9cf3-e617cd0146be\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"a0247d2e-3843-4753-be2f-4c252c99390e\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"cb986adf-5ca8-48a5-ac9b-b222d6d2e280\"" + + " }" + + " ]" + + " }, {" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/0148e4c5-629b-4fef-9728-1e13fd630679/model-elements/model-element/6ae6fd91-2086-470d-8c36-9d668c41fd32/model-elements/model-element/a520808b-b8bc-4969-9eba-c85e2797f3dd\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"0148e4c5-629b-4fef-9728-1e13fd630679\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"6ae6fd91-2086-470d-8c36-9d668c41fd32\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"a520808b-b8bc-4969-9eba-c85e2797f3dd\"" + + " }" + + " ]" + + " }, {" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/ca26a7e6-064d-4e90-a5b9-32ffe819f826/model-vers/model-ver/e9a290ca-41f0-4117-a1b5-8b7cd5595ff7/model-elements/model-element/ff3fdeb9-24e9-406f-8761-1334c9ea29d1/model-elements/model-element/bc6ddc86-f948-4f47-a4e6-bededd8d5780\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"ca26a7e6-064d-4e90-a5b9-32ffe819f826\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"e9a290ca-41f0-4117-a1b5-8b7cd5595ff7\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"ff3fdeb9-24e9-406f-8761-1334c9ea29d1\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"bc6ddc86-f948-4f47-a4e6-bededd8d5780\"" + + " }" + + " ]" + + " }, {" + + " \"related-to\": \"model-element\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.IsA\"," + + " \"related-link\": \"/aai/v14/service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea/model-vers/model-ver/46093d8f-6dfa-4332-9c00-7e822c681b59/model-elements/model-element/d74a5dff-ef7f-4e32-9c13-d82fb2c617c9/model-elements/model-element/f7bd32b4-bbbf-4788-9137-9dfa299e6111\"," + + " \"relationship-data\": [{" + + " \"relationship-key\": \"model.model-invariant-id\"," + + " \"relationship-value\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"" + + " }, {" + + " \"relationship-key\": \"model-ver.model-version-id\"," + + " \"relationship-value\": \"46093d8f-6dfa-4332-9c00-7e822c681b59\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"d74a5dff-ef7f-4e32-9c13-d82fb2c617c9\"" + + " }, {" + + " \"relationship-key\": \"model-element.model-element-uuid\"," + + " \"relationship-value\": \"f7bd32b4-bbbf-4788-9137-9dfa299e6111\"" + + " }" + + " ]" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + " }" + + " }" + + " ]" + + "}"; + } +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIStandardQueryGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIStandardQueryGet.java index 13ee91e2b..642f941e8 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIStandardQueryGet.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/aai/PresetAAIStandardQueryGet.java @@ -1,18 +1,23 @@ package org.onap.simulator.presetGenerator.presets.aai; -import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; -import static org.apache.commons.text.StringEscapeUtils.escapeJson; - import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Multimap; -import java.util.UUID; -import java.util.stream.Collectors; import org.apache.commons.lang3.RandomStringUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.commons.text.StrSubstitutor; import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; import org.springframework.http.HttpMethod; +import java.util.UUID; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; +import static org.apache.commons.text.StringEscapeUtils.escapeJson; +import static org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId.ATT_AIC; +import static org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId.hvf6; + public class PresetAAIStandardQueryGet extends BaseAAIPreset { private final String instanceId; private final String instanceName; @@ -22,8 +27,9 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { private final String uri; private final String typeInResponse; private final Multimap<String, String> relationshipsUris; + private Placement placement; - private PresetAAIStandardQueryGet(String typeInResponse, String instanceId, String instanceName, String instanceType, String instanceRole, String uri, Multimap<String, String> relationshipsUris, String additionalProperties) { + private PresetAAIStandardQueryGet(String typeInResponse, String instanceId, String instanceName, String instanceType, String instanceRole, String uri, Multimap<String, String> relationshipsUris, String additionalProperties, Placement placement) { this.instanceId = defaultIfNull(instanceId, randomUUID()); this.instanceName = defaultIfNull(instanceName, randomAlphanumeric()); this.instanceType = defaultIfNull(instanceType, randomAlphanumeric()); @@ -32,15 +38,23 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { this.typeInResponse = typeInResponse; this.additionalProperties = additionalProperties; this.relationshipsUris = relationshipsUris; + this.placement = placement; } - private PresetAAIStandardQueryGet(String typeInResponse, String instanceId, String uri, Multimap<String, String> relationshipsUris, String additionalProperties) { - this(typeInResponse, instanceId, randomAlphanumeric(), randomAlphanumeric(), randomAlphanumeric(), uri, relationshipsUris, additionalProperties); + private PresetAAIStandardQueryGet(String typeInResponse, String instanceId, String uri, Multimap<String, String> relationshipsUris, String additionalProperties, Placement placement) { + this(typeInResponse, instanceId, randomAlphanumeric(), randomAlphanumeric(), randomAlphanumeric(), uri, relationshipsUris, additionalProperties, placement); } public static PresetAAIStandardQueryGet ofServiceInstance(String instanceId, final String modelVersionId, final String modelInvariantId, String subscriberId, String serviceType, Multimap<String, String> relationshipsUris) { + return ofServiceInstance(instanceId, "", "", modelVersionId, modelInvariantId, subscriberId, serviceType, "GARBAGE DATA", relationshipsUris); + } + + public static PresetAAIStandardQueryGet ofServiceInstance(String instanceId, String instanceType, String instanceRole, final String modelVersionId, final String modelInvariantId, String subscriberId, String serviceType, String orchStatus, Multimap<String, String> relationshipsUris) { return new PresetAAIStandardQueryGet( "service-instance", instanceId, + randomAlphanumeric(), + instanceType, + instanceRole, new StrSubstitutor(ImmutableMap.of( "global-customer-id", subscriberId, "service-type", serviceType, @@ -53,37 +67,44 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { "\"model-invariant-id\": \"" + modelInvariantId + "\", " + "\"model-version-id\": \"" + modelVersionId + "\", " + "\"resource-version\": \"GARBAGE DATA\", " + - "\"orchestration-status\": \"GARBAGE DATA\", " + "\"orchestration-status\": \"" + orchStatus + "\", ", null ); } public static PresetAAIStandardQueryGet ofInstanceGroup(String groupType, String groupRole, Multimap<String, String> relationshipsUris) { + return ofInstanceGroup(groupType, groupRole, relationshipsUris, "4bb2e27e-ddab-4790-9c6d-1f731bc14a45", "daeb6568-cef8-417f-9075-ed259ce59f48"); + } + + public static PresetAAIStandardQueryGet ofInstanceGroup(String groupType, String groupRole, Multimap<String, String> relationshipsUris, String modelInvariantId, String modelVersionId) { final String instanceId = randomUUID(); return new PresetAAIStandardQueryGet( "instance-group", instanceId, randomAlphanumeric(), groupType, groupRole, "/network/instance-groups/instance-group/" + instanceId, relationshipsUris, "" + " \"id\": \"" + instanceId + "\"," + - " \"model-invariant-id\": \"4bb2e27e-ddab-4790-9c6d-1f731bc14a45\"," + - " \"model-version-id\": \"daeb6568-cef8-417f-9075-ed259ce59f48\"," + + addModelIds(modelInvariantId, modelVersionId) + " \"description\": \"vTSBC Customer Landing Network Collection Desc\"," + " \"resource-version\": \"1536169790853\"," + - " \"instance-group-function\": \"vTSBC Customer Landing Network Collection\"," + " \"instance-group-function\": \"vTSBC Customer Landing Network Collection\",", null ); } - public static PresetAAIStandardQueryGet ofVnf(String instanceId, Multimap<String, String> relationshipsUris) { - return ofVnf(instanceId, "vnf-instance-model-version-id", "vnf-instance-model-customization-id", "", relationshipsUris); + public static PresetAAIStandardQueryGet ofVnf(String instanceId, Multimap<String, String> relationshipsUris, Placement placement) { + return ofVnf(instanceId, "vnf-instance-model-version-id", "vnf-instance-model-customization-id", "", relationshipsUris, placement); + } + + public static Placement defaultPlacement() { + return new Placement(ATT_AIC, hvf6, "bae71557c5bb4d5aac6743a4e5f1d054"); } - public static PresetAAIStandardQueryGet ofVnf(String instanceId, String modelVersionId,String modelCustomizationId, String additionalProperties, Multimap<String, String> relationshipsUris) { + public static PresetAAIStandardQueryGet ofVnf(String instanceId, String modelVersionId, String modelCustomizationId, String additionalProperties, Multimap<String, String> relationshipsUris, Placement placement) { return new PresetAAIStandardQueryGet( "vnf", instanceId, "/network/generic-vnfs/generic-vnf/" + instanceId, relationshipsUris, additionalProperties + "\"model-invariant-id\": \"vnf-instance-model-invariant-id\", " + - "\"model-customization-id\": \"" + modelCustomizationId + "\", "+ - "\"model-version-id\": \"" + modelVersionId + "\", " + "\"model-customization-id\": \"" + modelCustomizationId + "\", " + + "\"model-version-id\": \"" + modelVersionId + "\", ", placement ); } @@ -93,7 +114,7 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { "/network/generic-vnfs/generic-vnf/" + instanceId, relationshipsUris, additionalProperties + "\"model-invariant-id\": \"vnf-instance-model-invariant-id\", " + - "\"model-version-id\": \"" + modelVersionId + "\", " + "\"model-version-id\": \"" + modelVersionId + "\", ", null ); } @@ -109,7 +130,7 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { return ofL3Network(randomUUID(), randomAlphanumeric(), instanceType, relationshipsUris, orchStatus, "prov", "network-instance-model-version-id", "network-instance-model-customization-id"); } - public static PresetAAIStandardQueryGet ofL3Network(String instanceType, String orchStatus, String provStatus, String modelVersionId, String modelCustomizationId,Multimap<String, String> relationshipsUris) { + public static PresetAAIStandardQueryGet ofL3Network(String instanceType, String orchStatus, String provStatus, String modelVersionId, String modelCustomizationId, Multimap<String, String> relationshipsUris) { return ofL3Network(randomUUID(), randomAlphanumeric(), instanceType, relationshipsUris, orchStatus, provStatus, modelVersionId, modelCustomizationId); } @@ -130,7 +151,7 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { "\"is-external-network\": true, " + "\"model-invariant-id\": \"network-instance-model-invariant-id\", " + "\"model-customization-id\": \"" + modelCustomizationId + "\", " + - "\"model-version-id\": \"" + modelVersionId + "\", " + "\"model-version-id\": \"" + modelVersionId + "\", ", null ); } @@ -144,19 +165,59 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { " \"orchestration-status\": \"Active\"," + " \"model-customization-id\": \"bc3bbdcc-42f3-4682-b151-99c308d15255\"," + " \"vf-module-model-customization-id\": \"bc3bbdcc-42f3-4682-b151-99c308d15255\"," + - " \"resource-version\": \"1533679899735\"," + " \"resource-version\": \"1533679899735\",", null ); } - public static PresetAAIStandardQueryGet ofCollectionResource(String orchStatus, Multimap<String, String> relationshipsUris) { + + public static PresetAAIStandardQueryGet ofCollectionResource(String orchStatus, Multimap<String, String> relationshipsUris, String modelInvariantId, String modelVersionId) { final String instanceId = randomUUID(); return new PresetAAIStandardQueryGet( "collection", instanceId, randomAlphanumeric(), "L3-NETWORK", randomAlphanumeric(), "/network/collections/collection/" + instanceId, relationshipsUris, "" + "\"orchestration-status\": \"" + orchStatus + "\", " + - "\"model-invariant-id\": \"081ceb56-eb71-4566-a72d-3e7cbee5cdf1\", " + - "\"model-version-id\": \"ce8c98bc-4691-44fb-8ff0-7a47487c11c4\", " + addModelIds(modelInvariantId, modelVersionId), null + ); + } + + private static String addModelIds(String modelInvariantId, String modelVersionId) { + return "\"model-invariant-id\": \"" + modelInvariantId + "\", " + + "\"model-version-id\": \"" + modelVersionId + "\", "; + } + + public static PresetAAIStandardQueryGet ofVrf(String orchStatus, Multimap<String, String> relationshipsUris) { + final String instanceId = randomUUID(); + return new PresetAAIStandardQueryGet( + "configuration", instanceId, randomAlphanumeric(), "COLLECTION", randomAlphanumeric(), + "/network/configurations/configuration/" + instanceId, + relationshipsUris, "" + + "\"orchestration-status\": \"" + orchStatus + "\", " + + "\"model-invariant-id\": \"b67a289b-1688-496d-86e8-1583c828be0a\", " + + "\"model-customization-id\": \"dd024d73-9bd1-425d-9db5-476338d53433\", " + + "\"model-version-id\": \"9cac02be-2489-4374-888d-2863b4511a59\", ", null + ); + } + + public static PresetAAIStandardQueryGet ofVpn(String orchStatus, Multimap<String, String> relationshipsUris, String globalRoutTarget, String routeTargetRole, String customerId, String region) { + final String instanceId = randomUUID(); + return new PresetAAIStandardQueryGet( + "vpn", instanceId, randomAlphanumeric(), "SERVICE-INFRASTRUCTURE", randomAlphanumeric(), + "/network/collections/collection/" + instanceId, + relationshipsUris, "" + + "\"orchestration-status\": \"" + orchStatus + "\", " + + "\"prov-status\": \"" + "prov" + "\"," + + "\"model-invariant-id\": \"vpn-model-invariant-id\", " + + "\"model-customization-id\": \"vpn-model-customization-id\", " + + "\"customer-vpn-id\": \"" + customerId + "\", " + + "\"vpn-region\": \"" + region + "\", " + + "\"route-targets\" : [" + + " {" + + " \"global-route-target\":\"" + globalRoutTarget + "\"," + + " \"route-target-role\" : \"" + routeTargetRole + "\"" + + " }" + + " ],"+ + "\"model-version-id\": \"vpn-model-version-id\", ", null ); } @@ -171,7 +232,7 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { "\"vlan-id-outer\": " + vlanIdOuter + ", " + "\"resource-version\": \"1518934744675\", " + "\"in-maint\": false, " + - "\"is-ip-unnumbered\": false, " + "\"is-ip-unnumbered\": false, ", null ); } @@ -202,9 +263,10 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { additionalProperties + " \"relationship-list\": { " + " \"relationship\": [ " + - relationshipsUris.entries().stream().map( - entry -> buildRelationship(entry.getKey(), entry.getValue()) - ).collect(Collectors.joining(",")) + + Stream.concat( + placement !=null ? Stream.of(buildPlacementRelationship()) : Stream.empty(), + relationshipsUris.entries().stream().map(entry -> buildRelationship(entry.getKey(), entry.getValue()) + )).collect(Collectors.joining(",")) + " ] " + " } " + "} "; @@ -225,6 +287,40 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { "}"; } + private String buildPlacementRelationship() { + String relatedTo = StringUtils.equals(instanceType,"vf-module")? "vserver": "tenant"; + return "" + + " {" + + " \"related-to\": \"" + relatedTo + "\"," + + " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," + + " \"related-link\": \"/aai/v12/cloud-infrastructure/cloud-regions/cloud-region/irma-aic/" + this.placement.lcpRegionId + "/tenants/tenant/" + this.placement.tenantId+ "/vservers/vserver/5eef9f6d-9933-4bc6-9a1a-862d61309437\"," + + " \"relationship-data\": [" + + " {" + + " \"relationship-key\": \"cloud-region.cloud-owner\"," + + " \"relationship-value\": \""+ this.placement.cloudOwner+"\"" + + " }," + + " {" + + " \"relationship-key\": \"cloud-region.cloud-region-id\"," + + " \"relationship-value\": \"" + this.placement.lcpRegionId + "\"" + + " }," + + " {" + + " \"relationship-key\": \"tenant.tenant-id\"," + + " \"relationship-value\": \"" + this.placement.tenantId + "\"" + + " }," + + " {" + + " \"relationship-key\": \"vserver.vserver-id\"," + + " \"relationship-value\": \"5eef9f6d-9933-4bc6-9a1a-862d61309437\"" + + " }" + + " ]," + + " \"related-to-property\": [" + + " {" + + " \"property-key\": \"vserver.vserver-name\"," + + " \"property-value\": \"zolson5bfapn01dns002\"" + + " }" + + " ]" + + " }" ; + } + @Override public HttpMethod getReqMethod() { return HttpMethod.GET; @@ -234,6 +330,4 @@ public class PresetAAIStandardQueryGet extends BaseAAIPreset { public String getReqPath() { return getRootPath() + uri; } - - -} +}
\ No newline at end of file |