diff options
Diffstat (limited to 'bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper')
4 files changed, 423 insertions, 0 deletions
diff --git a/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/bbNetwork.json b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/bbNetwork.json new file mode 100644 index 0000000000..75ecffb85f --- /dev/null +++ b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/bbNetwork.json @@ -0,0 +1,87 @@ +{ + "externalNetwork": false, + "sharedNetwork": false, + "providerNetwork": false, + "boundToVpn": false, + "network-id": "e87e6df5-6f9b-4aa1-a832-68a42c4277eb", + "cascaded": false, + "cloud-params": { + + }, + "network-name": "APP-C-24595-T-IST-04AShared_data_vDB_net_1", + "neutron-network-id": null, + "network-type": "CONTRAIL30_BASIC", + "network-technology": "contrail", + "network-role": "DataEvaletNetwork.data", + "is-bound-to-vpn": false, + "service-id": "94508dbd-fe6e-496b-95ef-dd5612b56767", + "network-role-instance": 0, + "orchestration-status": "ASSIGNED", + "heat-stack-id": null, + "contrail-network-fqdn": null, + "network-policies": [], + "contrail-network-route-table-references": [], + "widget-model-id": null, + "widget-model-version": null, + "physical-network-name": "FALSE", + "is-provider-network": false, + "is-shared-network": false, + "is-external-network": false, + "self-link": "restconf/config/GENERIC-RESOURCE-API:services/service/94508dbd-fe6e-496b-95ef-dd5612b56767/service-data/networks/network/e87e6df5-6f9b-4aa1-a832-68a42c4277eb/network-data/network-topology/", + "operational-status": null, + "subnets": [ + { + "subnet-id": "95069612-23af-4181-bf99-8b2bd6096712", + "subnet-name": "APP-C-24595-T-IST-04AShared_data_vDB_net_1_subnet_1", + "neutron-subnet-id": null, + "gateway-address": "107.244.64.1", + "network-start-address": "107.244.64.2", + "cidr-mask": "20", + "ip-version": "4", + "orchestration-status": null, + "dhcp-enabled": false, + "dhcp-start": "", + "dhcp-end": "", + "subnet-role": "", + "ip-assignment-direction": "true", + "subnet-sequence": null, + "host-routes": [] + } + ], + "ctag-assignments": [], + "segmentation-assignments": [], + "model-info-network": { + "created": 1509357220000, + "modelInstanceName": "CONTRAIL30_BASIC", + "networkType": "BASIC", + "modelCustomizationUUID": "8edf06ef-fd40-42cf-a054-0fc09108d3f0", + "modelUUID": "2920cd06-f585-436b-a002-c3081f6a91b3", + "modelName": "CONTRAIL30_BASIC", + "modelVersion": "3.0", + "modelInvariantUUID": "56f4e746-c58e-4b76-93d4-6717b8f59205", + "networkRole": "DataEvaletNetwork.data", + "neutronNetworkType": "BASIC", + "toscaNodeType": "org.openecomp.resource.vl.CONTRAIL30_BASIC1", + "description": "Basic contrail 3.0.x L3 network for AIC 3.x sites. Keeping for existing mobility networks. ", + "orchestrationMode": "HEAT", + "aicVersionMin": "3.0", + "aicVersionMax": null, + "networkScope": "Service", + "networkTechnology": "contrail", + "model-customization-uuid": "8edf06ef-fd40-42cf-a054-0fc09108d3f0", + "model-instance-name": "CONTRAIL30_BASIC", + "network-technology": "contrail", + "network-type": "BASIC", + "network-scope": "Service", + "network-role": "DataEvaletNetwork.data", + "model-version": "3.0", + "model-invariant-uuid": "56f4e746-c58e-4b76-93d4-6717b8f59205", + "model-name": "CONTRAIL30_BASIC", + "model-uuid": "2920cd06-f585-436b-a002-c3081f6a91b3", + "neutron-network-type": "BASIC", + "aic-version-min": "3.0", + "aic-version-max": null, + "orchestration-mode": "HEAT", + "tosca-node-type": "org.openecomp.resource.vl.CONTRAIL30_BASIC1" + } +}
\ No newline at end of file diff --git a/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/createNetworkRequest.json b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/createNetworkRequest.json new file mode 100644 index 0000000000..087f8a3971 --- /dev/null +++ b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/createNetworkRequest.json @@ -0,0 +1,42 @@ +{ + "cloudSiteId": "cloudRegionPo", + "tenantId": "testTenantId", + "networkId": "e87e6df5-6f9b-4aa1-a832-68a42c4277eb", + "networkName": "APP-C-24595-T-IST-04AShared_data_vDB_net_1", + "networkType": "CONTRAIL30_BASIC", + "modelCustomizationUuid": "8edf06ef-fd40-42cf-a054-0fc09108d3f0", + "networkTechnology": "NEUTRON", + "subnets": [ + { + "subnetName": "APP-C-24595-T-IST-04AShared_data_vDB_net_1_subnet_1", + "subnetId": "95069612-23af-4181-bf99-8b2bd6096712", + "cidr": "107.244.64.2/20", + "gatewayIp": "107.244.64.1", + "ipVersion": "4", + "enableDHCP": false, + "addrFromStart": true, + "hostRoutes": [] + } + ], + "providerVlanNetwork": { + "physicalNetworkName": "FALSE", + "vlans": [] + }, + "contrailNetwork": { + "shared": "false", + "external": "false", + "routeTargets": [], + "policyFqdns": [], + "routeTableFqdns": [] + }, + "failIfExists": true, + "backout": false, + "msoRequest": { + "requestId": "6cfde724-76c7-4747-bcb3-67a59a46ca95", + "serviceInstanceId": "testServiceInstanceId1" + }, + "contrailRequest": false, + "skipAAI": true, + "messageId": "175264dc-fb6b-4aae-ba42-8c77a63fec12", + "synchronous": true +}
\ No newline at end of file diff --git a/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/generalBB.json b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/generalBB.json new file mode 100644 index 0000000000..4817dfb74d --- /dev/null +++ b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/generalBB.json @@ -0,0 +1,153 @@ +{ + "requestContext" : { + "product-family-id" : "e433710f-9217-458d-a79d-1c7aff376d89", + "source" : "VID", + "requestor-id" : "rk627c", + "subscription-service-type" : null, + "user-params" : null, + "action" : "createInstance", + "callback-url" : null, + "service-uri" : null, + "mso-request-id" : "91135621-cadd-4195-a11b-c9db9eb1629e", + "requestParameters" : { } + }, + "orchContext" : { + "is-rollback-enabled" : false + }, + "userInput" : null, + "serviceInstance" : { + "service-instance-id" : "94508dbd-fe6e-496b-95ef-dd5612b56767", + "service-instance-name" : "data_eValet_network_rk_01", + "orchestration-status" : "ACTIVE", + "owning-entity" : { + "owning-entity-id" : "e4257a94-21cc-40c5-adc9-e6f4ff868e31", + "owning-entity-name" : "MOBILITY-CORE" + }, + "project" : { + "project-name" : "USP" + }, + "collection" : null, + "vnfs" : [ ], + "pnfs" : [ ], + "allotted-resources" : [ ], + "networks" : [ { + "network-id" : "e87e6df5-6f9b-4aa1-a832-68a42c4277eb", + "cascaded" : false, + "cloud-params" : { }, + "network-name" : "APP-C-24595-T-IST-04AShared_data_vDB_net_1", + "neutron-network-id" : null, + "network-type" : "CONTRAIL30_BASIC", + "network-technology" : "contrail", + "network-role" : "DataEvaletNetwork.data", + "is-bound-to-vpn" : false, + "service-id" : "94508dbd-fe6e-496b-95ef-dd5612b56767", + "network-role-instance" : 0, + "orchestration-status" : "ASSIGNED", + "heat-stack-id" : null, + "contrail-network-fqdn" : null, + "network-policies" : [ ], + "contrail-network-route-table-references" : [ ], + "widget-model-id" : null, + "widget-model-version" : null, + "physical-network-name" : "FALSE", + "is-provider-network" : false, + "is-shared-network" : false, + "is-external-network" : false, + "self-link" : "restconf/config/GENERIC-RESOURCE-API:services/service/94508dbd-fe6e-496b-95ef-dd5612b56767/service-data/networks/network/e87e6df5-6f9b-4aa1-a832-68a42c4277eb/network-data/network-topology/", + "operational-status" : null, + "subnets" : [ { + "subnet-id" : "95069612-23af-4181-bf99-8b2bd6096712", + "subnet-name" : "APP-C-24595-T-IST-04AShared_data_vDB_net_1_subnet_1", + "neutron-subnet-id" : null, + "gateway-address" : "107.244.64.1", + "network-start-address" : "107.244.64.2", + "cidr-mask" : "20", + "ip-version" : "4", + "orchestration-status" : null, + "dhcp-enabled" : false, + "dhcp-start" : "", + "dhcp-end" : "", + "subnet-role" : "", + "ip-assignment-direction" : "true", + "subnet-sequence" : null, + "host-routes" : [ ] + } ], + "ctag-assignments" : [ ], + "segmentation-assignments" : [ ], + "model-info-network" : { + "created" : 1509357220000, + "modelInstanceName" : "CONTRAIL30_BASIC", + "networkType" : "BASIC", + "modelCustomizationUUID" : "8edf06ef-fd40-42cf-a054-0fc09108d3f0", + "modelUUID" : "2920cd06-f585-436b-a002-c3081f6a91b3", + "modelName" : "CONTRAIL30_BASIC", + "modelVersion" : "3.0", + "modelInvariantUUID" : "56f4e746-c58e-4b76-93d4-6717b8f59205", + "networkRole" : "DataEvaletNetwork.data", + "neutronNetworkType" : "BASIC", + "toscaNodeType" : "org.openecomp.resource.vl.CONTRAIL30_BASIC1", + "description" : "Basic contrail 3.0.x L3 network for AIC 3.x sites. Keeping for existing mobility networks. ", + "orchestrationMode" : "HEAT", + "aicVersionMin" : "3.0", + "aicVersionMax" : null, + "networkScope" : "Service", + "networkTechnology" : "contrail", + "model-customization-uuid" : "8edf06ef-fd40-42cf-a054-0fc09108d3f0", + "model-instance-name" : "CONTRAIL30_BASIC", + "network-technology" : "contrail", + "network-type" : "BASIC", + "network-scope" : "Service", + "network-role" : "DataEvaletNetwork.data", + "model-version" : "3.0", + "model-invariant-uuid" : "56f4e746-c58e-4b76-93d4-6717b8f59205", + "model-name" : "CONTRAIL30_BASIC", + "model-uuid" : "2920cd06-f585-436b-a002-c3081f6a91b3", + "neutron-network-type" : "BASIC", + "aic-version-min" : "3.0", + "aic-version-max" : null, + "orchestration-mode" : "HEAT", + "tosca-node-type" : "org.openecomp.resource.vl.CONTRAIL30_BASIC1" + } + } ], + "vpn-bonding-links" : [ ], + "vhn-portal-url" : null, + "service-instance-location-id" : null, + "selflink" : "restconf/config/GENERIC-RESOURCE-API:services/service/94508dbd-fe6e-496b-95ef-dd5612b56767/service-data/service-topology/", + "metadata" : null, + "configurations" : null, + "solution-info" : null, + "model-info-service-instance" : { + "model-customization-uuid" : null, + "model-invariant-uuid" : "97386301-3685-46b5-8a5a-bf113eb9a006", + "model-uuid" : "4d6f5876-7f3d-458e-9722-33af804ee717", + "model-version" : "1.0", + "model-instance-name" : null, + "model-name" : "data_eValet_network", + "description" : "data model", + "created" : "Thu Jul 05 19:48:51 GMT 2018", + "service-type" : "vUSP", + "service-role" : "data", + "environment-context" : "General_Revenue-Bearing", + "workload-context" : "Production" + } + }, + "cloudRegion" : { + "lcp-cloud-region-id" : "DYH1A", + "cloud-owner" : "att-aic", + "tenant-id" : "7f3db563322146a688601ade1294a749", + "complex" : "c1", + "cloud-region-version" : "aic3.0" + }, + "customer" : { + "global-customer-id" : "e433710f-9217-458d-a79d-1c7aff376d89", + "subscriber-name" : "USP VOICE", + "subscriber-type" : "INFRA", + "subscriber-common-site-id" : null, + "service-subscription" : { + "service-type" : "VIRTUAL USP", + "temp-ub-sub-account-id" : null, + "service-instances" : [ ] + }, + "vpn-bindings" : [ ] + } +}
\ No newline at end of file diff --git a/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/queryAAINetwork.json b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/queryAAINetwork.json new file mode 100644 index 0000000000..36bc04b6c6 --- /dev/null +++ b/bpmn/so-bpmn-tasks/src/test/resources/__files/BuildingBlocks/NetworkMapper/queryAAINetwork.json @@ -0,0 +1,141 @@ +{ + "network-id": "e87e6df5-6f9b-4aa1-a832-68a42c4277eb", + "network-name": "APP-C-24595-T-IST-04AShared_data_vDB_net_1", + "network-type": "CONTRAIL30_BASIC", + "network-role": "DataEvaletNetwork.data", + "network-technology": "contrail", + "is-bound-to-vpn": false, + "service-id": "94508dbd-fe6e-496b-95ef-dd5612b56767", + "network-role-instance": 0, + "resource-version": "1531421309278", + "orchestration-status": "Assigned", + "physical-network-name": "FALSE", + "is-provider-network": false, + "is-shared-network": false, + "is-external-network": false, + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/94508dbd-fe6e-496b-95ef-dd5612b56767/service-data/networks/network/e87e6df5-6f9b-4aa1-a832-68a42c4277eb/network-data/network-topology/", + "subnets": { + "subnet": [ + { + "subnet-id": "95069612-23af-4181-bf99-8b2bd6096712", + "subnet-name": "APP-C-24595-T-IST-04AShared_data_vDB_net_1_subnet_1", + "gateway-address": "107.244.64.1", + "network-start-address": "107.244.64.2", + "cidr-mask": "20", + "ip-version": "4", + "orchestration-status": "PendingCreate", + "dhcp-enabled": false, + "dhcp-start": "", + "dhcp-end": "", + "subnet-role": "", + "ip-assignment-direction": "true", + "resource-version": "1531421308312", + "host-routes": { + "host-route": [ + { + "host-route-id": "1047bf36-ca6c-49de-8b7a-8aa7b766a96d", + "route-prefix": "", + "next-hop": "", + "resource-version": "1531421301537" + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "service-instance", + "relationship-label": "org.onap.relationships.inventory.ComposedOf", + "related-link": "/aai/v13/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances/service-instance/94508dbd-fe6e-496b-95ef-dd5612b56767", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "e433710f-9217-458d-a79d-1c7aff376d89" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "VIRTUAL USP" + }, + { + "relationship-key": "service-instance.service-instance-id", + "relationship-value": "94508dbd-fe6e-496b-95ef-dd5612b56767" + } + ], + "related-to-property": [ + { + "property-key": "service-instance.service-instance-name", + "property-value": "data_eValet_network_rk_01" + } + ] + }, + { + "related-to": "cloud-region", + "relationship-label": "org.onap.relationships.inventory.Uses", + "related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/att-aic/DYH1A", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "DYH1A" + } + ], + "related-to-property": [ + { + "property-key": "cloud-region.owner-defined-type", + "property-value": "lcp" + } + ] + }, + { + "related-to": "tenant", + "relationship-label": "org.onap.relationships.inventory.Uses", + "related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/att-aic/DYH1A/tenants/tenant/7f3db563322146a688601ade1294a749", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "DYH1A" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "7f3db563322146a688601ade1294a749" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "APP-C-24595-T-IST-04B" + } + ] + }, + { + "related-to": "vpn-binding", + "relationship-label": "org.onap.relationships.inventory.Uses", + "related-link": "/aai/v13/network/vpn-bindings/vpn-binding/13e94b71-3ce1-4988-ab0e-61208fc91f1c", + "relationship-data": [ + { + "relationship-key": "vpn-binding.vpn-id", + "relationship-value": "13e94b71-3ce1-4988-ab0e-61208fc91f1c" + } + ], + "related-to-property": [ + { + "property-key": "vpn-binding.vpn-name", + "property-value": "vMDNS" + }, + { + "property-key": "vpn-binding.vpn-type" + } + ] + } + ] + } +}
\ No newline at end of file |