diff options
author | Kajur, Harish (vk250x) <vk250x@att.com> | 2020-02-21 14:34:10 -0500 |
---|---|---|
committer | Harish Venkata Kajur <vk250x@att.com> | 2020-02-25 23:59:33 -0500 |
commit | 98749c47bbb5f5ddcc1c4f0690b79c7288f6bdd6 (patch) | |
tree | a472ce2edabd497b643917f44785b775fa16e15e /aai-core/src/test/resources | |
parent | e654645a50a0d028d8e67ea997f84efe8d28a6a0 (diff) |
Enhancements for the aai-common library
Issue-ID: AAI-2806
Change-Id: I2dbb46b897b35136ac1bb802978d3f974af1b307
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'aai-core/src/test/resources')
37 files changed, 1676 insertions, 8 deletions
diff --git a/aai-core/src/test/resources/bundleconfig-local/aaf/cadi.properties b/aai-core/src/test/resources/bundleconfig-local/aaf/cadi.properties new file mode 100644 index 00000000..8f7004ff --- /dev/null +++ b/aai-core/src/test/resources/bundleconfig-local/aaf/cadi.properties @@ -0,0 +1,14 @@ +## Location properties +## +## Localized Machine Information +## +cadi_loglevel=DEBUG +cadi_latitude=38.0 +cadi_longitude=-72.0 + +# Locate URL (which AAF Env) - Use lower case +aaf_locate_url=https://aafist.test.org:8095 +# AAF URL - Use upper case +aaf_url=https://AAF_LOCATE_URL/service:2.0 +# +cadi_prop_files=src/test/resources/bundleconfig-local/aaf/org.onap.aai.props diff --git a/aai-core/src/test/resources/bundleconfig-local/aaf/org.onap.aai.props b/aai-core/src/test/resources/bundleconfig-local/aaf/org.onap.aai.props new file mode 100644 index 00000000..3056e5f9 --- /dev/null +++ b/aai-core/src/test/resources/bundleconfig-local/aaf/org.onap.aai.props @@ -0,0 +1,4 @@ +cm_url=cm_url +hostname=hostname +aaf_env=IST +cadi_x509_issuers=CN=AAF CADI Test Issuing CA 01, OU=CSO, O=CO, C=US:CN=AAF CADI Test Issuing CA 02, OU=CSO, O=CO, C=US
\ No newline at end of file diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/aaiconfig.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/aaiconfig.properties index 0239e2ef..f0e09d40 100644 --- a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/aaiconfig.properties +++ b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/aaiconfig.properties @@ -56,3 +56,4 @@ aai.rest.getall.depthparam=someuuid aaf.valid.issuer.wildcard=aaf wild card issuer|aafWildCardIssuer|OU=another +aai.implied.delete.whitelist.junit='pserver','l-interface' diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties index 3a5671c2..d99efb5e 100644 --- a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties +++ b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties @@ -154,6 +154,8 @@ AAI_9105=5:0:WARN:9105:403:3300:Authorization error AAI_9106=5:0:WARN:9106:403:3300:Invalid AppId #AAI_9107=5:0:WARN:9107:403:3300:No Username in Request AAI_9107=5:0:WARN:9107:403:3300:SSL is not provided in request, please contact admin +AAI_9108=5:0:WARN:9107:403:3300:Basic auth credentials is not provided in the request +AAI_9109=5:0:WARN:9109:403:3300:User is not allowed to perform implicit delete #--- aaiinstar: 9201-9299 AAI_9201=5:4:ERROR:9201:500:3002:Unable to send notification diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties index aa3c0631..a0926e7c 100644 --- a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties +++ b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties @@ -18,6 +18,7 @@ # ============LICENSE_END========================================================= query.fast-property=true +query.smart-limit=false # the following parameters are not reloaded automatically and require a manual bounce storage.backend=inmemory storage.hostname=localhost diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties index 05394334..3f00b557 100644 --- a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties +++ b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties @@ -18,6 +18,7 @@ # ============LICENSE_END========================================================= query.fast-property=true +query.smart-limit=false # the following parameters are not reloaded automatically and require a manual bounce storage.backend=inmemory storage.hostname=localhost diff --git a/aai-core/src/test/resources/dbedgerules/DbEdgeRules_test.json b/aai-core/src/test/resources/dbedgerules/DbEdgeRules_test.json index b07e7783..f47925e4 100644 --- a/aai-core/src/test/resources/dbedgerules/DbEdgeRules_test.json +++ b/aai-core/src/test/resources/dbedgerules/DbEdgeRules_test.json @@ -166,7 +166,6 @@ "multiplicity": "ONE2MANY", "contains-other-v": "NONE", "delete-other-v": "${direction}", - "prevent-delete": "NONE", "description": "Hard to describe", "prevent-delete": "NONE" }, @@ -248,4 +247,4 @@ "prevent-delete": "!${direction}" } ] -}
\ No newline at end of file +} diff --git a/aai-core/src/test/resources/onap/dbedgerules/v14/DbEdgeRules_v14.json b/aai-core/src/test/resources/onap/dbedgerules/v14/DbEdgeRules_v14.json index 2eed8007..7b5c26a7 100644 --- a/aai-core/src/test/resources/onap/dbedgerules/v14/DbEdgeRules_v14.json +++ b/aai-core/src/test/resources/onap/dbedgerules/v14/DbEdgeRules_v14.json @@ -1115,7 +1115,17 @@ "prevent-delete": "NONE", "default": "true", "description":"" - }, + },{ + "from": "sriov-vf", + "to": "l-interface", + "label": "NOT.A.REAL.EDGERULE", + "direction": "OUT", + "multiplicity": "ONE2ONE", + "contains-other-v": "NONE", + "delete-other-v": "!${direction}", + "prevent-delete": "NONE", + "description":"" + }, { "from": "vlan", "to": "l-interface", @@ -3051,6 +3061,6 @@ "default": "true", "description":"" } - + ] } diff --git a/aai-core/src/test/resources/onap/oxm/v10/aai_oxm_v10.xml b/aai-core/src/test/resources/onap/oxm/v10/aai_oxm_v10.xml index e28466b7..71ab3dd5 100644 --- a/aai-core/src/test/resources/onap/oxm/v10/aai_oxm_v10.xml +++ b/aai-core/src/test/resources/onap/oxm/v10/aai_oxm_v10.xml @@ -1653,6 +1653,7 @@ <xml-property name="namespace" value="cloud-infrastructure"/> <xml-property name="uriTemplate" value="/cloud-infrastructure/pservers/pserver/{hostname}"/> <xml-property name="requiredProps" value="hostname,in-maint"/> + <xml-property name="dslStartNodeProps" value="hostname,pserver-id,pserver-name2,inv-status"/> </xml-properties> </java-type> diff --git a/aai-core/src/test/resources/onap/oxm/v14/aai_oxm_v14.xml b/aai-core/src/test/resources/onap/oxm/v14/aai_oxm_v14.xml index bb9b2eab..08a6cd52 100644 --- a/aai-core/src/test/resources/onap/oxm/v14/aai_oxm_v14.xml +++ b/aai-core/src/test/resources/onap/oxm/v14/aai_oxm_v14.xml @@ -8,9 +8,9 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - + http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -4150,7 +4150,7 @@ </xml-element> <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v14.RelationshipList"/> <xml-element java-attribute="cps" name="cps" type="inventory.aai.onap.org.v14.Cps"/> - <xml-element container-type="java.util.ArrayList" java-attribute="l3InterfaceIpv4AddressList" name="l3-interface-ipv4-address-list" type="inventory.aai.onap.org.v14.L3InterfaceIpv4AddressList"/> + <xml-element container-type="java.util.ArrayList" java-attribute="l3InterfaceIpv4AddressList" name="l3-interface-ipv4-address-list" type="inventory.aai.onap.org.v14.L3InterfaceIpv4AddressList"/> <xml-element container-type="java.util.ArrayList" java-attribute="l3InterfaceIpv6AddressList" name="l3-interface-ipv6-address-list" type="inventory.aai.onap.org.v14.L3InterfaceIpv6AddressList"/> </java-attributes> <xml-properties> @@ -7499,7 +7499,7 @@ <xml-properties> <xml-property name="description" value="The network-technology that a cloud-region can support. Current valid values- CONTRAIL AIC_SR_IOV OVS STANDARD-SR-IOV"/> </xml-properties> - </xml-element> + </xml-element> <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String"> <xml-properties> <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete."/> diff --git a/aai-core/src/test/resources/payloads/expected/transform-json-to-xml.xml b/aai-core/src/test/resources/payloads/expected/transform-json-to-xml.xml new file mode 100644 index 00000000..55d8854e --- /dev/null +++ b/aai-core/src/test/resources/payloads/expected/transform-json-to-xml.xml @@ -0,0 +1,59 @@ +<results> + <result> + <related-to> + <node> + <relationship-label>org.onap.relationships.inventory.LocatedIn</relationship-label> + <node-type>complex</node-type> + <id>286724232</id> + <url>/aai/v18/cloud-infrastructure/complexes/complex/testcomplex2</url> + </node> + <node> + <relationship-label>org.onap.relationships.inventory.LocatedIn</relationship-label> + <node-type>complex</node-type> + <id>286724233</id> + <url>/aai/v18/cloud-infrastructure/complexes/complex/testcomplex1</url> + </node> + </related-to> + <node-type>pserver</node-type> + <id>286724136</id> + <url>/aai/v18/cloud-infrastructure/pservers/pserver/test-pserver1</url> + <properties> + <aai-last-mod-ts>1568997029298</aai-last-mod-ts> + <ptnii-equip-name>test-pserver1</ptnii-equip-name> + <equip-type>SERVER</equip-type> + <equip-vendor>SomeVendor</equip-vendor> + <purpose>Standalone</purpose> + <fqdn>a.b.c.d</fqdn> + <aai-uri>/cloud-infrastructure/pservers/pserver/test-pserver1</aai-uri> + <pserver-id>6bf4944a-9f13-4bb8-8f49-b61060793510</pserver-id> + <aai-created-ts>1568997029298</aai-created-ts> + <ipv4-oam-address>1.2.3.4</ipv4-oam-address> + <source-of-truth>AAI</source-of-truth> + <aai-node-type>pserver</aai-node-type> + <hostname>test-pserver1</hostname> + <equip-model>SomeModel</equip-model> + <in-maint>false</in-maint> + <aai-uuid>05fa7b64-59e4-44a1-8162-e32746659c77</aai-uuid> + <resource-version>1568997029298</resource-version> + <last-mod-source-of-truth>AAIRctFeed</last-mod-source-of-truth> + </properties> + </result> + <result> + <related-to></related-to> + <node-type>pserver</node-type> + <id>286724152</id> + <url>/aai/v18/cloud-infrastructure/pservers/pserver/test-pserver2</url> + <properties> + <aai-last-mod-ts>1553805738492</aai-last-mod-ts> + <hostname>test-pserver2</hostname> + <in-maint>false</in-maint> + <aai-uuid>13a8440c-7fb4-4f41-a141-6e1d9e895b4a</aai-uuid> + <resource-version>1553805738492</resource-version> + <aai-uri>/cloud-infrastructure/pservers/pserver/test-pserver2</aai-uri> + <aai-created-ts>1553805738492</aai-created-ts> + <last-mod-source-of-truth>JUNITTESTAPP2</last-mod-source-of-truth> + <source-of-truth>JUNITTESTAPP2</source-of-truth> + <aai-node-type>pserver</aai-node-type> + </properties> + </result> +</results> diff --git a/aai-core/src/test/resources/payloads/resource/complex_pserver_with_relation.json b/aai-core/src/test/resources/payloads/resource/complex_pserver_with_relation.json new file mode 100644 index 00000000..d6b1165f --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/complex_pserver_with_relation.json @@ -0,0 +1,29 @@ +{ + "complex": { + "physical-location-id": "complex-1", + "data-center-code": "MiddletownNJ", + "complex-name": "complex-L-lisleil", + "physical-location-type": "uCPE Complex", + "street1": "4513 Western Ave", + "street2": "CU-L", + "city": "Middletown", + "state": "NJ", + "postal-code": "07748", + "country": "USA", + "region": "NA" + }, + "pserver": { + "hostname": "pserver-1", + "ptnii-equip-name": "ptnii", + "number-of-cpus": 280, + "relationship-list": { + "relationship": [ + { + "related-to": "complex", + "relationship-label": "org.onap.relationships.inventory.LocatedIn", + "related-link": "/aai/v14/cloud-infrastructure/complexes/complex/complex-1" + } + ] + } + } +} diff --git a/aai-core/src/test/resources/payloads/resource/customer_with_children_and_generic-vnf_with_children_and_edge_between_service-instance_vlan.json b/aai-core/src/test/resources/payloads/resource/customer_with_children_and_generic-vnf_with_children_and_edge_between_service-instance_vlan.json new file mode 100644 index 00000000..d4c4f65b --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/customer_with_children_and_generic-vnf_with_children_and_edge_between_service-instance_vlan.json @@ -0,0 +1,70 @@ +{ + "generic-vnf": { + "vnf-id": "gvnf", + "vnf-name": "example-vnf-name-val-28303", + "vnf-name2": "example-vnf-name2-val-14743", + "vnf-type": "example-vnf-type-val-58866", + "service-id": "example-service-id-val-24831", + "regional-resource-zone": "example-regional-resource-zone-val-33255", + "prov-status": "example-prov-status-val-47870", + "operational-state": "example-operational-state-val-8419", + "equipment-role": "example-equipment-role-val-35736", + "orchestration-status": "example-orchestration-status-val-67542", + "l-interfaces": { + "l-interface": [ + { + "interface-name": "lint", + "interface-role": "example-interface-role-val-61355", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-78314", + "vlans": { + "vlan": [ + { + "vlan-interface": "vlan", + "vlan-id-inner": 90845777, + "vlan-id-outer": 23395650 + } + ] + } + } + ] + } + }, + "customer": { + "global-customer-id": "cust", + "subscriber-name": "subscriber-name-022", + "subscriber-type": "subscriber-type-022", + "service-subscriptions": { + "service-subscription": { + "service-type": "ss", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "si", + "relationship-list": { + "relationship": [ + { + "related-to": "vlan", + "relationship-data": [ + { + "relationship-key": "vlan.vlan-interface", + "relationship-value": "vlan" + }, + { + "relationship-key": "l-interface.interface-name", + "relationship-value": "lint" + }, + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "gvnf" + } + ] + } + ] + } + } + ] + } + } + } + } +} diff --git a/aai-core/src/test/resources/payloads/resource/generic-vnf-implied-delete.json b/aai-core/src/test/resources/payloads/resource/generic-vnf-implied-delete.json new file mode 100644 index 00000000..0c83c36a --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/generic-vnf-implied-delete.json @@ -0,0 +1,26 @@ +{ + "vnf-id": "generic-vnf-implied-delete", + "vnf-type": "sometype", + "in-maint": true, + "is-closed-loop-disabled": true, + "vf-modules": { + "vf-module": [ + { + "vf-module-id": "vf-mod-id1", + "is-base-vf-module": true + }, + { + "vf-module-id": "vf-mod-id2", + "is-base-vf-module": true + }, + { + "vf-module-id": "vf-mod-id3", + "is-base-vf-module": true + }, + { + "vf-module-id": "vf-mod-id4", + "is-base-vf-module": true + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/generic-vnf-notification.json b/aai-core/src/test/resources/payloads/resource/generic-vnf-notification.json new file mode 100644 index 00000000..27b38d2e --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/generic-vnf-notification.json @@ -0,0 +1,6 @@ +{ + "vnf-id": "generic-vnf-notification", + "vnf-type": "sometype", + "in-maint": true, + "is-closed-loop-disabled": true +} diff --git a/aai-core/src/test/resources/payloads/resource/generic-vnf-with-vf-module.json b/aai-core/src/test/resources/payloads/resource/generic-vnf-with-vf-module.json new file mode 100644 index 00000000..09c9b48f --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/generic-vnf-with-vf-module.json @@ -0,0 +1,17 @@ +{ + "vnf-id": "test-vnf11", + "vnf-name": "example-vnf-name-val-37069", + "vnf-name2": "example-vnf-name2-val-58382", + "vnf-type": "example-vnf-type-val-95069", + "in-maint": true, + "is-closed-loop-disabled": true, + "vf-modules": { + "vf-module": [ + { + "vf-module-id": "vf-module-test11", + "is-base-vf-module": true, + "automated-assignment": true + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-create-child-on-existing-obj.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-create-child-on-existing-obj.json new file mode 100644 index 00000000..5cb33c82 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-create-child-on-existing-obj.json @@ -0,0 +1,273 @@ +{ + "hostname": "example-hostname-val-85598", + "ptnii-equip-name": "example-ptnii-equip-name-val-85834", + "number-of-cpus": 280, + "disk-in-gigabytes": 78521, + "ram-in-megabytes": 36975, + "equip-type": "example-equip-type-val-47930", + "equip-vendor": "example-equip-vendor-val-59512", + "equip-model": "example-equip-model-val-46076", + "fqdn": "example-fqdn-val-74486", + "pserver-selflink": "example-pserver-selflink-val-72481", + "ipv4-oam-address": "example-ipv4-oam-address-val-16616", + "serial-number": "example-serial-number-val-92800", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-61384", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-91056", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-72233", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-13572", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-84518", + "inv-status": "example-inv-status-val-5042", + "pserver-id": "example-pserver-id-val-15622", + "internet-topology": "example-internet-topology-val-31234", + "in-maint": true, + "pserver-name2": "example-pserver-name2-val-93509", + "purpose": "example-purpose-val-52320", + "prov-status": "example-prov-status-val-47313", + "management-option": "example-management-option-val-72434", + "host-profile": "example-host-profile-val-84672", + "p-interfaces": { + "p-interface": [ + { + "interface-name": "example-interface-name-val-46147", + "selflink": "example-selflink-val-81029", + "speed-value": "example-speed-value-val-47874", + "speed-units": "example-speed-units-val-10396", + "port-description": "example-port-description-val-53068", + "equipment-identifier": "example-equipment-identifier-val-63234", + "interface-role": "example-interface-role-val-49232", + "interface-type": "example-interface-type-val-21757", + "prov-status": "example-prov-status-val-19117", + "in-maint": true, + "inv-status": "example-inv-status-val-48715", + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-13366", + "interface-role": "example-interface-role-val-29488", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-78396", + "selflink": "example-selflink-val-4757", + "interface-id": "example-interface-id-val-79486", + "macaddr": "example-macaddr-val-52194", + "network-name": "example-network-name-val-80678", + "management-option": "example-management-option-val-53535", + "interface-description": "example-interface-description-val-299", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-9736", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-62271", + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-31470", + "vlan-id-inner": 61286171, + "vlan-id-outer": 64615174, + "speed-value": "example-speed-value-val-80457", + "speed-units": "example-speed-units-val-51587", + "vlan-description": "example-vlan-description-val-97575", + "backdoor-connection": "example-backdoor-connection-val-3179", + "vpn-key": "example-vpn-key-val-50069", + "orchestration-status": "example-orchestration-status-val-34071", + "in-maint": true, + "prov-status": "example-prov-status-val-62615", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-8171", + "l3-interface-ipv4-prefix-length": 39266592, + "vlan-id-inner": 91284707, + "vlan-id-outer": 80343467, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-52921", + "neutron-subnet-id": "example-neutron-subnet-id-val-88134" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-70726", + "l3-interface-ipv6-prefix-length": 81422758, + "vlan-id-inner": 15099560, + "vlan-id-outer": 46643832, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-97954", + "neutron-subnet-id": "example-neutron-subnet-id-val-23889" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-62086", + "interface-role": "example-interface-role-val-13107", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-32015", + "selflink": "example-selflink-val-31580", + "interface-id": "example-interface-id-val-57805", + "macaddr": "example-macaddr-val-54266", + "network-name": "example-network-name-val-38517", + "management-option": "example-management-option-val-8801", + "interface-description": "example-interface-description-val-88573", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-99164", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-14581", + "admin-status": "example-admin-status-val-29720" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-31324", + "l3-interface-ipv4-prefix-length": 36060646, + "vlan-id-inner": 62164959, + "vlan-id-outer": 93058593, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-39206", + "neutron-subnet-id": "example-neutron-subnet-id-val-27746" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-72897", + "l3-interface-ipv6-prefix-length": 29592510, + "vlan-id-inner": 18402161, + "vlan-id-outer": 651158, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-6821", + "neutron-subnet-id": "example-neutron-subnet-id-val-11217" + } + ], + "admin-status": "example-admin-status-val-81745" + } + ] + } + }, + { + "interface-name": "p-interface-1", + "in-maint": false + } + ] + }, + "lag-interfaces": { + "lag-interface": [ + { + "interface-name": "example-interface-name-val-87366", + "interface-description": "example-interface-description-val-3722", + "speed-value": "example-speed-value-val-73546", + "speed-units": "example-speed-units-val-73658", + "interface-id": "example-interface-id-val-62385", + "interface-role": "example-interface-role-val-60746", + "prov-status": "example-prov-status-val-26239", + "in-maint": true, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-69579", + "interface-role": "example-interface-role-val-64571", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-68385", + "selflink": "example-selflink-val-29611", + "interface-id": "example-interface-id-val-75464", + "macaddr": "example-macaddr-val-7285", + "network-name": "example-network-name-val-52284", + "management-option": "example-management-option-val-26028", + "interface-description": "example-interface-description-val-37641", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-56460", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-23301", + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-56661", + "vlan-id-inner": 33305644, + "vlan-id-outer": 30871600, + "speed-value": "example-speed-value-val-1929", + "speed-units": "example-speed-units-val-71630", + "vlan-description": "example-vlan-description-val-63003", + "backdoor-connection": "example-backdoor-connection-val-41834", + "vpn-key": "example-vpn-key-val-16552", + "orchestration-status": "example-orchestration-status-val-95322", + "in-maint": true, + "prov-status": "example-prov-status-val-89886", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-69142", + "l3-interface-ipv4-prefix-length": 11099430, + "vlan-id-inner": 88996967, + "vlan-id-outer": 23003182, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-53091", + "neutron-subnet-id": "example-neutron-subnet-id-val-41571" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-27490", + "l3-interface-ipv6-prefix-length": 20167688, + "vlan-id-inner": 40775405, + "vlan-id-outer": 75855907, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-9739", + "neutron-subnet-id": "example-neutron-subnet-id-val-806" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-49266", + "interface-role": "example-interface-role-val-210", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-81668", + "selflink": "example-selflink-val-6356", + "interface-id": "example-interface-id-val-99531", + "macaddr": "example-macaddr-val-25092", + "network-name": "example-network-name-val-3319", + "management-option": "example-management-option-val-79883", + "interface-description": "example-interface-description-val-54501", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-48840", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-26846", + "admin-status": "example-admin-status-val-89244" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-61251", + "l3-interface-ipv4-prefix-length": 91875404, + "vlan-id-inner": 36470314, + "vlan-id-outer": 96344091, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-17339", + "neutron-subnet-id": "example-neutron-subnet-id-val-86128" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-31476", + "l3-interface-ipv6-prefix-length": 11663872, + "vlan-id-inner": 28459412, + "vlan-id-outer": 9852622, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-15120", + "neutron-subnet-id": "example-neutron-subnet-id-val-36088" + } + ], + "admin-status": "example-admin-status-val-81055" + } + ] + } + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-create-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-create-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..79099538 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-create-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,289 @@ +{ + "hostname": "example-hostname-val-85598", + "ptnii-equip-name": "example-ptnii-equip-name-val-85834", + "number-of-cpus": 280, + "disk-in-gigabytes": 78521, + "ram-in-megabytes": 36975, + "equip-type": "example-equip-type-val-47930", + "equip-vendor": "example-equip-vendor-val-59512", + "equip-model": "example-equip-model-val-46076", + "fqdn": "example-fqdn-val-74486", + "pserver-selflink": "example-pserver-selflink-val-72481", + "ipv4-oam-address": "example-ipv4-oam-address-val-16616", + "serial-number": "example-serial-number-val-92800", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-61384", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-91056", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-72233", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-13572", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-84518", + "inv-status": "example-inv-status-val-5042", + "pserver-id": "example-pserver-id-val-15622", + "internet-topology": "example-internet-topology-val-31234", + "in-maint": true, + "pserver-name2": "example-pserver-name2-val-93509", + "purpose": "example-purpose-val-52320", + "prov-status": "example-prov-status-val-47313", + "management-option": "example-management-option-val-72434", + "host-profile": "example-host-profile-val-84672", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "relationship-label": "tosca.relationships.HostedOn", + "related-link": "/aai/v14/network/generic-vnfs/generic-vnf/generic-vnf-notification", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "generic-vnf-notification" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name" + } + ] + } + ] + }, + "p-interfaces": { + "p-interface": [ + { + "interface-name": "example-interface-name-val-46147", + "selflink": "example-selflink-val-81029", + "speed-value": "example-speed-value-val-47874", + "speed-units": "example-speed-units-val-10396", + "port-description": "example-port-description-val-53068", + "equipment-identifier": "example-equipment-identifier-val-63234", + "interface-role": "example-interface-role-val-49232", + "interface-type": "example-interface-type-val-21757", + "prov-status": "example-prov-status-val-19117", + "in-maint": true, + "inv-status": "example-inv-status-val-48715", + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-13366", + "interface-role": "example-interface-role-val-29488", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-78396", + "selflink": "example-selflink-val-4757", + "interface-id": "example-interface-id-val-79486", + "macaddr": "example-macaddr-val-52194", + "network-name": "example-network-name-val-80678", + "management-option": "example-management-option-val-53535", + "interface-description": "example-interface-description-val-299", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-9736", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-62271", + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-31470", + "vlan-id-inner": 61286171, + "vlan-id-outer": 64615174, + "speed-value": "example-speed-value-val-80457", + "speed-units": "example-speed-units-val-51587", + "vlan-description": "example-vlan-description-val-97575", + "backdoor-connection": "example-backdoor-connection-val-3179", + "vpn-key": "example-vpn-key-val-50069", + "orchestration-status": "example-orchestration-status-val-34071", + "in-maint": true, + "prov-status": "example-prov-status-val-62615", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-8171", + "l3-interface-ipv4-prefix-length": 39266592, + "vlan-id-inner": 91284707, + "vlan-id-outer": 80343467, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-52921", + "neutron-subnet-id": "example-neutron-subnet-id-val-88134" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-70726", + "l3-interface-ipv6-prefix-length": 81422758, + "vlan-id-inner": 15099560, + "vlan-id-outer": 46643832, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-97954", + "neutron-subnet-id": "example-neutron-subnet-id-val-23889" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-62086", + "interface-role": "example-interface-role-val-13107", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-32015", + "selflink": "example-selflink-val-31580", + "interface-id": "example-interface-id-val-57805", + "macaddr": "example-macaddr-val-54266", + "network-name": "example-network-name-val-38517", + "management-option": "example-management-option-val-8801", + "interface-description": "example-interface-description-val-88573", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-99164", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-14581", + "admin-status": "example-admin-status-val-29720" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-31324", + "l3-interface-ipv4-prefix-length": 36060646, + "vlan-id-inner": 62164959, + "vlan-id-outer": 93058593, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-39206", + "neutron-subnet-id": "example-neutron-subnet-id-val-27746" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-72897", + "l3-interface-ipv6-prefix-length": 29592510, + "vlan-id-inner": 18402161, + "vlan-id-outer": 651158, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-6821", + "neutron-subnet-id": "example-neutron-subnet-id-val-11217" + } + ], + "admin-status": "example-admin-status-val-81745" + } + ] + } + } + ] + }, + "lag-interfaces": { + "lag-interface": [ + { + "interface-name": "example-interface-name-val-87366", + "interface-description": "example-interface-description-val-3722", + "speed-value": "example-speed-value-val-73546", + "speed-units": "example-speed-units-val-73658", + "interface-id": "example-interface-id-val-62385", + "interface-role": "example-interface-role-val-60746", + "prov-status": "example-prov-status-val-26239", + "in-maint": true, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-69579", + "interface-role": "example-interface-role-val-64571", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-68385", + "selflink": "example-selflink-val-29611", + "interface-id": "example-interface-id-val-75464", + "macaddr": "example-macaddr-val-7285", + "network-name": "example-network-name-val-52284", + "management-option": "example-management-option-val-26028", + "interface-description": "example-interface-description-val-37641", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-56460", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-23301", + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-56661", + "vlan-id-inner": 33305644, + "vlan-id-outer": 30871600, + "speed-value": "example-speed-value-val-1929", + "speed-units": "example-speed-units-val-71630", + "vlan-description": "example-vlan-description-val-63003", + "backdoor-connection": "example-backdoor-connection-val-41834", + "vpn-key": "example-vpn-key-val-16552", + "orchestration-status": "example-orchestration-status-val-95322", + "in-maint": true, + "prov-status": "example-prov-status-val-89886", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-69142", + "l3-interface-ipv4-prefix-length": 11099430, + "vlan-id-inner": 88996967, + "vlan-id-outer": 23003182, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-53091", + "neutron-subnet-id": "example-neutron-subnet-id-val-41571" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-27490", + "l3-interface-ipv6-prefix-length": 20167688, + "vlan-id-inner": 40775405, + "vlan-id-outer": 75855907, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-9739", + "neutron-subnet-id": "example-neutron-subnet-id-val-806" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-49266", + "interface-role": "example-interface-role-val-210", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-81668", + "selflink": "example-selflink-val-6356", + "interface-id": "example-interface-id-val-99531", + "macaddr": "example-macaddr-val-25092", + "network-name": "example-network-name-val-3319", + "management-option": "example-management-option-val-79883", + "interface-description": "example-interface-description-val-54501", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-48840", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-26846", + "admin-status": "example-admin-status-val-89244" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-61251", + "l3-interface-ipv4-prefix-length": 91875404, + "vlan-id-inner": 36470314, + "vlan-id-outer": 96344091, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-17339", + "neutron-subnet-id": "example-neutron-subnet-id-val-86128" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-31476", + "l3-interface-ipv6-prefix-length": 11663872, + "vlan-id-inner": 28459412, + "vlan-id-outer": 9852622, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-15120", + "neutron-subnet-id": "example-neutron-subnet-id-val-36088" + } + ], + "admin-status": "example-admin-status-val-81055" + } + ] + } + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-delete-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-delete-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..cdcd3ee0 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-body-delete-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,269 @@ +{ + "hostname": "example-hostname-val-85598", + "ptnii-equip-name": "example-ptnii-equip-name-val-85834", + "number-of-cpus": 280, + "disk-in-gigabytes": 78521, + "ram-in-megabytes": 36975, + "equip-type": "example-equip-type-val-47930", + "equip-vendor": "example-equip-vendor-val-59512", + "equip-model": "example-equip-model-val-46076", + "fqdn": "example-fqdn-val-74486", + "pserver-selflink": "example-pserver-selflink-val-72481", + "ipv4-oam-address": "example-ipv4-oam-address-val-16616", + "serial-number": "example-serial-number-val-92800", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-61384", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-91056", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-72233", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-13572", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-84518", + "inv-status": "example-inv-status-val-5042", + "pserver-id": "example-pserver-id-val-15622", + "internet-topology": "example-internet-topology-val-31234", + "in-maint": true, + "pserver-name2": "example-pserver-name2-val-93509", + "purpose": "example-purpose-val-52320", + "prov-status": "example-prov-status-val-47313", + "management-option": "example-management-option-val-72434", + "host-profile": "example-host-profile-val-84672", + "p-interfaces": { + "p-interface": [ + { + "interface-name": "example-interface-name-val-46147", + "selflink": "example-selflink-val-81029", + "speed-value": "example-speed-value-val-47874", + "speed-units": "example-speed-units-val-10396", + "port-description": "example-port-description-val-53068", + "equipment-identifier": "example-equipment-identifier-val-63234", + "interface-role": "example-interface-role-val-49232", + "interface-type": "example-interface-type-val-21757", + "prov-status": "example-prov-status-val-19117", + "in-maint": true, + "inv-status": "example-inv-status-val-48715", + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-13366", + "interface-role": "example-interface-role-val-29488", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-78396", + "selflink": "example-selflink-val-4757", + "interface-id": "example-interface-id-val-79486", + "macaddr": "example-macaddr-val-52194", + "network-name": "example-network-name-val-80678", + "management-option": "example-management-option-val-53535", + "interface-description": "example-interface-description-val-299", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-9736", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-62271", + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-31470", + "vlan-id-inner": 61286171, + "vlan-id-outer": 64615174, + "speed-value": "example-speed-value-val-80457", + "speed-units": "example-speed-units-val-51587", + "vlan-description": "example-vlan-description-val-97575", + "backdoor-connection": "example-backdoor-connection-val-3179", + "vpn-key": "example-vpn-key-val-50069", + "orchestration-status": "example-orchestration-status-val-34071", + "in-maint": true, + "prov-status": "example-prov-status-val-62615", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-8171", + "l3-interface-ipv4-prefix-length": 39266592, + "vlan-id-inner": 91284707, + "vlan-id-outer": 80343467, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-52921", + "neutron-subnet-id": "example-neutron-subnet-id-val-88134" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-70726", + "l3-interface-ipv6-prefix-length": 81422758, + "vlan-id-inner": 15099560, + "vlan-id-outer": 46643832, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-97954", + "neutron-subnet-id": "example-neutron-subnet-id-val-23889" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-62086", + "interface-role": "example-interface-role-val-13107", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-32015", + "selflink": "example-selflink-val-31580", + "interface-id": "example-interface-id-val-57805", + "macaddr": "example-macaddr-val-54266", + "network-name": "example-network-name-val-38517", + "management-option": "example-management-option-val-8801", + "interface-description": "example-interface-description-val-88573", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-99164", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-14581", + "admin-status": "example-admin-status-val-29720" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-31324", + "l3-interface-ipv4-prefix-length": 36060646, + "vlan-id-inner": 62164959, + "vlan-id-outer": 93058593, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-39206", + "neutron-subnet-id": "example-neutron-subnet-id-val-27746" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-72897", + "l3-interface-ipv6-prefix-length": 29592510, + "vlan-id-inner": 18402161, + "vlan-id-outer": 651158, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-6821", + "neutron-subnet-id": "example-neutron-subnet-id-val-11217" + } + ], + "admin-status": "example-admin-status-val-81745" + } + ] + } + } + ] + }, + "lag-interfaces": { + "lag-interface": [ + { + "interface-name": "example-interface-name-val-87366", + "interface-description": "example-interface-description-val-3722", + "speed-value": "example-speed-value-val-73546", + "speed-units": "example-speed-units-val-73658", + "interface-id": "example-interface-id-val-62385", + "interface-role": "example-interface-role-val-60746", + "prov-status": "example-prov-status-val-26239", + "in-maint": true, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-69579", + "interface-role": "example-interface-role-val-64571", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-68385", + "selflink": "example-selflink-val-29611", + "interface-id": "example-interface-id-val-75464", + "macaddr": "example-macaddr-val-7285", + "network-name": "example-network-name-val-52284", + "management-option": "example-management-option-val-26028", + "interface-description": "example-interface-description-val-37641", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-56460", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-23301", + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-56661", + "vlan-id-inner": 33305644, + "vlan-id-outer": 30871600, + "speed-value": "example-speed-value-val-1929", + "speed-units": "example-speed-units-val-71630", + "vlan-description": "example-vlan-description-val-63003", + "backdoor-connection": "example-backdoor-connection-val-41834", + "vpn-key": "example-vpn-key-val-16552", + "orchestration-status": "example-orchestration-status-val-95322", + "in-maint": true, + "prov-status": "example-prov-status-val-89886", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-69142", + "l3-interface-ipv4-prefix-length": 11099430, + "vlan-id-inner": 88996967, + "vlan-id-outer": 23003182, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-53091", + "neutron-subnet-id": "example-neutron-subnet-id-val-41571" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-27490", + "l3-interface-ipv6-prefix-length": 20167688, + "vlan-id-inner": 40775405, + "vlan-id-outer": 75855907, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-9739", + "neutron-subnet-id": "example-neutron-subnet-id-val-806" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-49266", + "interface-role": "example-interface-role-val-210", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-81668", + "selflink": "example-selflink-val-6356", + "interface-id": "example-interface-id-val-99531", + "macaddr": "example-macaddr-val-25092", + "network-name": "example-network-name-val-3319", + "management-option": "example-management-option-val-79883", + "interface-description": "example-interface-description-val-54501", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-48840", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-26846", + "admin-status": "example-admin-status-val-89244" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-61251", + "l3-interface-ipv4-prefix-length": 91875404, + "vlan-id-inner": 36470314, + "vlan-id-outer": 96344091, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-17339", + "neutron-subnet-id": "example-neutron-subnet-id-val-86128" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-31476", + "l3-interface-ipv6-prefix-length": 11663872, + "vlan-id-inner": 28459412, + "vlan-id-outer": 9852622, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-15120", + "neutron-subnet-id": "example-neutron-subnet-id-val-36088" + } + ], + "admin-status": "example-admin-status-val-81055" + } + ] + } + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-create-child-on-existing-obj.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-create-child-on-existing-obj.json new file mode 100644 index 00000000..2c255c1f --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-create-child-on-existing-obj.json @@ -0,0 +1,9 @@ +{ + "id": "JUNIT-TRANSACTION", + "source-name": "JUNIT", + "version": "v14", + "action": "UPDATE", + "entity-type": "pserver", + "top-entity-type": "pserver", + "entity-link": "/aai/v14/cloud-infrastructure/pservers/pserver/example-hostname-val-85598" +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-create-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-create-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..2c255c1f --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-create-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,9 @@ +{ + "id": "JUNIT-TRANSACTION", + "source-name": "JUNIT", + "version": "v14", + "action": "UPDATE", + "entity-type": "pserver", + "top-entity-type": "pserver", + "entity-link": "/aai/v14/cloud-infrastructure/pservers/pserver/example-hostname-val-85598" +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-delete-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-delete-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..2c255c1f --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-all/expected-notification-header-delete-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,9 @@ +{ + "id": "JUNIT-TRANSACTION", + "source-name": "JUNIT", + "version": "v14", + "action": "UPDATE", + "entity-type": "pserver", + "top-entity-type": "pserver", + "entity-link": "/aai/v14/cloud-infrastructure/pservers/pserver/example-hostname-val-85598" +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-create-child-on-existing-obj.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-create-child-on-existing-obj.json new file mode 100644 index 00000000..174db245 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-create-child-on-existing-obj.json @@ -0,0 +1,12 @@ +{ + "hostname": "example-hostname-val-85598", + "pserver-name2": "example-pserver-name2-val-93509", + "p-interfaces": { + "p-interface": [ + { + "interface-name": "p-interface-1", + "in-maint": false + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-create-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-create-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..54afd1b6 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-create-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,48 @@ +{ + "hostname": "example-hostname-val-85598", + "ptnii-equip-name": "example-ptnii-equip-name-val-85834", + "number-of-cpus": 280, + "disk-in-gigabytes": 78521, + "ram-in-megabytes": 36975, + "equip-type": "example-equip-type-val-47930", + "equip-vendor": "example-equip-vendor-val-59512", + "equip-model": "example-equip-model-val-46076", + "fqdn": "example-fqdn-val-74486", + "pserver-selflink": "example-pserver-selflink-val-72481", + "ipv4-oam-address": "example-ipv4-oam-address-val-16616", + "serial-number": "example-serial-number-val-92800", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-61384", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-91056", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-72233", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-13572", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-84518", + "inv-status": "example-inv-status-val-5042", + "pserver-id": "example-pserver-id-val-15622", + "internet-topology": "example-internet-topology-val-31234", + "in-maint": true, + "pserver-name2": "example-pserver-name2-val-93509", + "purpose": "example-purpose-val-52320", + "prov-status": "example-prov-status-val-47313", + "management-option": "example-management-option-val-72434", + "host-profile": "example-host-profile-val-84672", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "relationship-label": "tosca.relationships.HostedOn", + "related-link": "/aai/v14/network/generic-vnfs/generic-vnf/generic-vnf-notification", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "generic-vnf-notification" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name" + } + ] + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-delete-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-delete-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..369bc29b --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-body-delete-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,28 @@ +{ + "hostname": "example-hostname-val-85598", + "ptnii-equip-name": "example-ptnii-equip-name-val-85834", + "number-of-cpus": 280, + "disk-in-gigabytes": 78521, + "ram-in-megabytes": 36975, + "equip-type": "example-equip-type-val-47930", + "equip-vendor": "example-equip-vendor-val-59512", + "equip-model": "example-equip-model-val-46076", + "fqdn": "example-fqdn-val-74486", + "pserver-selflink": "example-pserver-selflink-val-72481", + "ipv4-oam-address": "example-ipv4-oam-address-val-16616", + "serial-number": "example-serial-number-val-92800", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-61384", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-91056", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-72233", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-13572", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-84518", + "inv-status": "example-inv-status-val-5042", + "pserver-id": "example-pserver-id-val-15622", + "internet-topology": "example-internet-topology-val-31234", + "in-maint": true, + "pserver-name2": "example-pserver-name2-val-93509", + "purpose": "example-purpose-val-52320", + "prov-status": "example-prov-status-val-47313", + "management-option": "example-management-option-val-72434", + "host-profile": "example-host-profile-val-84672" +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-create-child-on-existing-obj.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-create-child-on-existing-obj.json new file mode 100644 index 00000000..e9c408af --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-create-child-on-existing-obj.json @@ -0,0 +1,9 @@ +{ + "id": "JUNIT-TRANSACTION", + "source-name": "JUNIT", + "version": "v14", + "action": "CREATE", + "entity-type": "p-interface", + "top-entity-type": "pserver", + "entity-link": "/aai/v14/cloud-infrastructure/pservers/pserver/example-hostname-val-85598/p-interfaces/p-interface/p-interface-1" +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-create-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-create-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..2c255c1f --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-create-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,9 @@ +{ + "id": "JUNIT-TRANSACTION", + "source-name": "JUNIT", + "version": "v14", + "action": "UPDATE", + "entity-type": "pserver", + "top-entity-type": "pserver", + "entity-link": "/aai/v14/cloud-infrastructure/pservers/pserver/example-hostname-val-85598" +} diff --git a/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-delete-edge-between-pserver-and-generic-vnf.json b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-delete-edge-between-pserver-and-generic-vnf.json new file mode 100644 index 00000000..2c255c1f --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/notification-dmaap-events/depth-zero/expected-notification-header-delete-edge-between-pserver-and-generic-vnf.json @@ -0,0 +1,9 @@ +{ + "id": "JUNIT-TRANSACTION", + "source-name": "JUNIT", + "version": "v14", + "action": "UPDATE", + "entity-type": "pserver", + "top-entity-type": "pserver", + "entity-link": "/aai/v14/cloud-infrastructure/pservers/pserver/example-hostname-val-85598" +} diff --git a/aai-core/src/test/resources/payloads/resource/prevalidation/failed-response-with-violations.json b/aai-core/src/test/resources/payloads/resource/prevalidation/failed-response-with-violations.json new file mode 100644 index 00000000..409516dc --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/prevalidation/failed-response-with-violations.json @@ -0,0 +1,28 @@ +{ + "validationId": "52245aa2-72a8-440d-87e2-570272aa4a83", + "validationTimestamp": "20191201T211503Z", + "entityId": { + "vnf-id": "vnf-jenkins-15903-3" + }, + "entityName": "ormfl405me3", + "entityType": "generic-vnf", + "entityLink": "network/generic-vnfs/generic-vnf/vnf-jenkins-15903-3", + "resourceVersion": "1567815933280", + "requestor": "JUNIT", + "violations": [{ + "violationId": "37d6a7ebc1fc244f9dd04b1518726a9b4cc2350e6ff478c69502e8aeb1508333", + "modelName": null, + "category": "INVALID_VALUE", + "severity": "MAJOR", + "violationType": "Dlp_rule", + "validationRule": "DLP validate generic-vnf nf-values", + "violationDetails": { + "nf-role": "vSAEGW", + "nf-naming-code": "foo", + "nf-type": "blah", + "nf-function": "blah" + }, + "errorMessage": "Invalid nf values, check nf-type, nf-role, nf-function, and nf-naming-code" + } + ] +} diff --git a/aai-core/src/test/resources/payloads/resource/prevalidation/success-request-with-no-violations.json b/aai-core/src/test/resources/payloads/resource/prevalidation/success-request-with-no-violations.json new file mode 100644 index 00000000..328f9a26 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/prevalidation/success-request-with-no-violations.json @@ -0,0 +1,22 @@ +{ + "cambria.partition": "AAI", + "event-header": { + "severity": "NORMAL", + "entity-type": "pserver", + "top-entity-type": "pserver", + "entity-link": "/aai/v19/cloud-infrastructure/pservers/pserver/test-pserver234", + "event-type": "AAI-EVENT", + "domain": "uINT6", + "action": "CREATE", + "sequence-number": "0", + "id": "70b33094-9d60-4e49-9a42-9f9b45ef1aa6", + "source-name": "JUNIT", + "version": "v19", + "timestamp": "20191202-01:26:24:749" + }, + "entity": { + "hostname": "test-pserver234", + "in-maint": false, + "resource-version": "1575249983853" + } +} diff --git a/aai-core/src/test/resources/payloads/resource/prevalidation/success-response-with-empty-violations.json b/aai-core/src/test/resources/payloads/resource/prevalidation/success-response-with-empty-violations.json new file mode 100644 index 00000000..ecd907a1 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/prevalidation/success-response-with-empty-violations.json @@ -0,0 +1,13 @@ +{ + "validationId": "52245aa2-72a8-440d-87e2-570272aa4a83b", + "validationTimestamp": "20191201T211503Z", + "entityId": { + "vnf-id": "vnf-jenkins-15903-3" + }, + "entityName": "ormfl405me3", + "entityType": "generic-vnf", + "entityLink": "network/generic-vnfs/generic-vnf/vnf-jenkins-15903-3", + "resourceVersion": "1567815933280", + "requestor": "JUNIT", + "violations": [] +} diff --git a/aai-core/src/test/resources/payloads/resource/prevalidation/success-response-with-exclude-violations.json b/aai-core/src/test/resources/payloads/resource/prevalidation/success-response-with-exclude-violations.json new file mode 100644 index 00000000..106b763a --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/prevalidation/success-response-with-exclude-violations.json @@ -0,0 +1,12 @@ +{ + "validationId": "52245aa2-72a8-440d-87e2-570272aa4a83b", + "validationTimestamp": "20191201T211503Z", + "entityId": { + "vnf-id": "vnf-jenkins-15903-3" + }, + "entityName": "ormfl405me3", + "entityType": "generic-vnf", + "entityLink": "network/generic-vnfs/generic-vnf/vnf-jenkins-15903-3", + "resourceVersion": "1567815933280", + "requestor": "JUNIT" +} diff --git a/aai-core/src/test/resources/payloads/resource/pserver-implied-delete.json b/aai-core/src/test/resources/payloads/resource/pserver-implied-delete.json new file mode 100644 index 00000000..5cc35713 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/pserver-implied-delete.json @@ -0,0 +1,23 @@ +{ + "hostname": "test-pserver-implied-delete", + "p-interfaces": { + "p-interface": [ + { + "interface-name": "test-p-interface-implied-delete-1", + "selflink": "somelink" + }, + { + "interface-name": "test-p-interface-implied-delete-2", + "selflink": "somelink" + }, + { + "interface-name": "test-p-interface-implied-delete-3", + "selflink": "somelink" + }, + { + "interface-name": "test-p-interface-implied-delete-4", + "selflink": "somelink" + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/pserver-to-gvnf-relationship-notification.json b/aai-core/src/test/resources/payloads/resource/pserver-to-gvnf-relationship-notification.json new file mode 100644 index 00000000..cb8ec43a --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/pserver-to-gvnf-relationship-notification.json @@ -0,0 +1,4 @@ +{ + "related-to": "generic-vnf", + "related-link": "/network/generic-vnfs/generic-vnf/generic-vnf-notification" +} diff --git a/aai-core/src/test/resources/payloads/resource/pserver-with-children-for-notification.json b/aai-core/src/test/resources/payloads/resource/pserver-with-children-for-notification.json new file mode 100644 index 00000000..f0dd071c --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/pserver-with-children-for-notification.json @@ -0,0 +1,273 @@ +{ + "hostname": "example-hostname-val-85598", + "ptnii-equip-name": "example-ptnii-equip-name-val-85834", + "number-of-cpus": 280, + "disk-in-gigabytes": 78521, + "ram-in-megabytes": 36975, + "equip-type": "example-equip-type-val-47930", + "equip-vendor": "example-equip-vendor-val-59512", + "equip-model": "example-equip-model-val-46076", + "fqdn": "example-fqdn-val-74486", + "pserver-selflink": "example-pserver-selflink-val-72481", + "ipv4-oam-address": "example-ipv4-oam-address-val-16616", + "serial-number": "example-serial-number-val-92800", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-61384", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-91056", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-72233", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-13572", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-84518", + "inv-status": "example-inv-status-val-5042", + "pserver-id": "example-pserver-id-val-15622", + "internet-topology": "example-internet-topology-val-31234", + "in-maint": true, + "pserver-name2": "example-pserver-name2-val-93509", + "purpose": "example-purpose-val-52320", + "prov-status": "example-prov-status-val-47313", + "management-option": "example-management-option-val-72434", + "host-profile": "example-host-profile-val-84672", + "p-interfaces": { + "p-interface": [ + { + "interface-name": "example-interface-name-val-46147", + "selflink": "example-selflink-val-81029", + "speed-value": "example-speed-value-val-47874", + "speed-units": "example-speed-units-val-10396", + "port-description": "example-port-description-val-53068", + "equipment-identifier": "example-equipment-identifier-val-63234", + "interface-role": "example-interface-role-val-49232", + "interface-type": "example-interface-type-val-21757", + "prov-status": "example-prov-status-val-19117", + "in-maint": true, + "inv-status": "example-inv-status-val-48715", + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-13366", + "interface-role": "example-interface-role-val-29488", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-78396", + "selflink": "example-selflink-val-4757", + "interface-id": "example-interface-id-val-79486", + "macaddr": "example-macaddr-val-52194", + "network-name": "example-network-name-val-80678", + "management-option": "example-management-option-val-53535", + "interface-description": "example-interface-description-val-299", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-9736", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-62271", + "priority": 82452, + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-31470", + "vlan-id-inner": 61286171, + "vlan-id-outer": 64615174, + "speed-value": "example-speed-value-val-80457", + "speed-units": "example-speed-units-val-51587", + "vlan-description": "example-vlan-description-val-97575", + "backdoor-connection": "example-backdoor-connection-val-3179", + "vpn-key": "example-vpn-key-val-50069", + "orchestration-status": "example-orchestration-status-val-34071", + "in-maint": true, + "prov-status": "example-prov-status-val-62615", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-8171", + "l3-interface-ipv4-prefix-length": 39266592, + "vlan-id-inner": 91284707, + "vlan-id-outer": 80343467, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-52921", + "neutron-subnet-id": "example-neutron-subnet-id-val-88134" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-70726", + "l3-interface-ipv6-prefix-length": 81422758, + "vlan-id-inner": 15099560, + "vlan-id-outer": 46643832, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-97954", + "neutron-subnet-id": "example-neutron-subnet-id-val-23889" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-62086", + "interface-role": "example-interface-role-val-13107", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-32015", + "selflink": "example-selflink-val-31580", + "interface-id": "example-interface-id-val-57805", + "macaddr": "example-macaddr-val-54266", + "network-name": "example-network-name-val-38517", + "management-option": "example-management-option-val-8801", + "interface-description": "example-interface-description-val-88573", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-99164", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-14581", + "priority": 80355, + "admin-status": "example-admin-status-val-29720" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-31324", + "l3-interface-ipv4-prefix-length": 36060646, + "vlan-id-inner": 62164959, + "vlan-id-outer": 93058593, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-39206", + "neutron-subnet-id": "example-neutron-subnet-id-val-27746" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-72897", + "l3-interface-ipv6-prefix-length": 29592510, + "vlan-id-inner": 18402161, + "vlan-id-outer": 651158, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-6821", + "neutron-subnet-id": "example-neutron-subnet-id-val-11217" + } + ], + "admin-status": "example-admin-status-val-81745" + } + ] + } + } + ] + }, + "lag-interfaces": { + "lag-interface": [ + { + "interface-name": "example-interface-name-val-87366", + "interface-description": "example-interface-description-val-3722", + "speed-value": "example-speed-value-val-73546", + "speed-units": "example-speed-units-val-73658", + "interface-id": "example-interface-id-val-62385", + "interface-role": "example-interface-role-val-60746", + "prov-status": "example-prov-status-val-26239", + "in-maint": true, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-69579", + "interface-role": "example-interface-role-val-64571", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-68385", + "selflink": "example-selflink-val-29611", + "interface-id": "example-interface-id-val-75464", + "macaddr": "example-macaddr-val-7285", + "network-name": "example-network-name-val-52284", + "management-option": "example-management-option-val-26028", + "interface-description": "example-interface-description-val-37641", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-56460", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-23301", + "priority": 84739, + "vlans": { + "vlan": [ + { + "vlan-interface": "example-vlan-interface-val-56661", + "vlan-id-inner": 33305644, + "vlan-id-outer": 30871600, + "speed-value": "example-speed-value-val-1929", + "speed-units": "example-speed-units-val-71630", + "vlan-description": "example-vlan-description-val-63003", + "backdoor-connection": "example-backdoor-connection-val-41834", + "vpn-key": "example-vpn-key-val-16552", + "orchestration-status": "example-orchestration-status-val-95322", + "in-maint": true, + "prov-status": "example-prov-status-val-89886", + "is-ip-unnumbered": true, + "is-private": true, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-69142", + "l3-interface-ipv4-prefix-length": 11099430, + "vlan-id-inner": 88996967, + "vlan-id-outer": 23003182, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-53091", + "neutron-subnet-id": "example-neutron-subnet-id-val-41571" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-27490", + "l3-interface-ipv6-prefix-length": 20167688, + "vlan-id-inner": 40775405, + "vlan-id-outer": 75855907, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-9739", + "neutron-subnet-id": "example-neutron-subnet-id-val-806" + } + ] + } + ] + }, + "l-interfaces": { + "l-interface": [ + { + "interface-name": "example-interface-name-val-49266", + "interface-role": "example-interface-role-val-210", + "v6-wan-link-ip": "example-v6-wan-link-ip-val-81668", + "selflink": "example-selflink-val-6356", + "interface-id": "example-interface-id-val-99531", + "macaddr": "example-macaddr-val-25092", + "network-name": "example-network-name-val-3319", + "management-option": "example-management-option-val-79883", + "interface-description": "example-interface-description-val-54501", + "is-port-mirrored": true, + "in-maint": true, + "prov-status": "example-prov-status-val-48840", + "is-ip-unnumbered": true, + "allowed-address-pairs": "example-allowed-address-pairs-val-26846", + "priority": 21862, + "admin-status": "example-admin-status-val-89244" + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-61251", + "l3-interface-ipv4-prefix-length": 91875404, + "vlan-id-inner": 36470314, + "vlan-id-outer": 96344091, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-17339", + "neutron-subnet-id": "example-neutron-subnet-id-val-86128" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-31476", + "l3-interface-ipv6-prefix-length": 11663872, + "vlan-id-inner": 28459412, + "vlan-id-outer": 9852622, + "is-floating": true, + "neutron-network-id": "example-neutron-network-id-val-15120", + "neutron-subnet-id": "example-neutron-subnet-id-val-36088" + } + ], + "admin-status": "example-admin-status-val-81055" + } + ] + } + } + ] + } +} diff --git a/aai-core/src/test/resources/payloads/resource/transform-results-to-result.json b/aai-core/src/test/resources/payloads/resource/transform-results-to-result.json new file mode 100644 index 00000000..63fa9114 --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/transform-results-to-result.json @@ -0,0 +1,61 @@ +{ + "results": [ + { + "id": "286724136", + "node-type": "pserver", + "url": "/aai/v18/cloud-infrastructure/pservers/pserver/test-pserver1", + "properties": { + "equip-type": "SERVER", + "equip-vendor": "SomeVendor", + "equip-model": "SomeModel", + "in-maint": false, + "last-mod-source-of-truth": "AAIRctFeed", + "aai-node-type": "pserver", + "aai-created-ts": 1568997029298, + "aai-last-mod-ts": 1568997029298, + "source-of-truth": "AAI", + "aai-uri": "/cloud-infrastructure/pservers/pserver/test-pserver1", + "aai-uuid": "05fa7b64-59e4-44a1-8162-e32746659c77", + "ipv4-oam-address": "1.2.3.4", + "hostname": "test-pserver1", + "pserver-id": "6bf4944a-9f13-4bb8-8f49-b61060793510", + "purpose": "Standalone", + "fqdn": "a.b.c.d", + "ptnii-equip-name": "test-pserver1", + "resource-version": "1568997029298" + }, + "related-to": [ + { + "id": "286724232", + "relationship-label": "org.onap.relationships.inventory.LocatedIn", + "node-type": "complex", + "url": "/aai/v18/cloud-infrastructure/complexes/complex/testcomplex2" + }, + { + "id": "286724233", + "relationship-label": "org.onap.relationships.inventory.LocatedIn", + "node-type": "complex", + "url": "/aai/v18/cloud-infrastructure/complexes/complex/testcomplex1" + } + ] + }, + { + "id": "286724152", + "node-type": "pserver", + "url": "/aai/v18/cloud-infrastructure/pservers/pserver/test-pserver2", + "properties": { + "in-maint": false, + "last-mod-source-of-truth": "JUNITTESTAPP2", + "aai-node-type": "pserver", + "aai-created-ts": 1553805738492, + "aai-last-mod-ts": 1553805738492, + "source-of-truth": "JUNITTESTAPP2", + "aai-uri": "/cloud-infrastructure/pservers/pserver/test-pserver2", + "aai-uuid": "13a8440c-7fb4-4f41-a141-6e1d9e895b4a", + "hostname": "test-pserver2", + "resource-version": "1553805738492" + }, + "related-to": [] + } + ] +} diff --git a/aai-core/src/test/resources/payloads/resource/vnfc-related-to-vf-module.json b/aai-core/src/test/resources/payloads/resource/vnfc-related-to-vf-module.json new file mode 100644 index 00000000..139681fa --- /dev/null +++ b/aai-core/src/test/resources/payloads/resource/vnfc-related-to-vf-module.json @@ -0,0 +1,19 @@ +{ + "vnfc-name": "test-vnfc11", + "nfc-naming-code": "testname", + "nfc-function": "test-value", + "relationship-list": { + "relationship": [{ + "related-to": "vf-module", + "relationship-data": [{ + "relationship-key": "vnf.vnf-id", + "relationship-value": "test-vnf11" + }, { + "relationship-key": "vf-module.vf-module-id", + "relationship-value": "vf-module-test11" + } + ] + } + ] + } +} |