diff options
author | Leigh, Phillip (pl876u) <phillip.leigh@amdocs.com> | 2019-02-08 16:23:27 -0500 |
---|---|---|
committer | Leigh, Phillip (pl876u) <phillip.leigh@amdocs.com> | 2019-02-11 10:18:51 -0500 |
commit | b2e9556678bbacd8c3777973b9fa89b63497e026 (patch) | |
tree | 2883f06ecbcf5442b5d1cfdedbfb9426d0bf00f0 /src/test/resources | |
parent | 4b09f26cc90254827fc9a1b406575ed40bc27eab (diff) |
Handle L-Interface in AaiCtxBuilder3.0.1-ONAP
Also adapted the sprintframework to aaiCtxBuilder and added more junit test cases
Issue-ID: LOG-766
Change-Id: Ibcc81e7ad3602666ff17c660d33b9ab7b57620df
Signed-off-by: Leigh, Phillip (pl876u) <phillip.leigh@amdocs.com>
Diffstat (limited to 'src/test/resources')
-rw-r--r-- | src/test/resources/junit/aai-vserver-set3.json | 110 | ||||
-rw-r--r-- | src/test/resources/junit/l-interface-input.json | 10 | ||||
-rw-r--r-- | src/test/resources/junit/l-interface-input2.json | 10 |
3 files changed, 130 insertions, 0 deletions
diff --git a/src/test/resources/junit/aai-vserver-set3.json b/src/test/resources/junit/aai-vserver-set3.json new file mode 100644 index 0000000..f50d65a --- /dev/null +++ b/src/test/resources/junit/aai-vserver-set3.json @@ -0,0 +1,110 @@ +{ + "vserver-id": "b494cd6e-b9f3-45e0-afe7-e1d1a5f5d74a", + "vserver-name": "Firewall-0", + "vserver-name2": "Firewall-0", + "prov-status": "ACTIVE", + "vserver-selflink": "http://10.12.25.2:8774/v2.1/b49b830686654191bb1e952a74b014ad/servers/b494cd6e-b9f3-45e0-afe7-e1d1a5f5d74a", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1528481820321", + "relationship-list": { + "relationship": [ + { + "related-to": "l-interface", + "relationship-label": "tosca.relationships.HostedOn", + "related-link": "/aai/v13/l-interfaces/l-interface/junit-l-interface-name1", + "relationship-data": [ + { + "relationship-key": "l-interface.interface-name", + "relationship-value": "junit-l-interface-name1" + } + ], + "related-to-property": [ + { "property-key": "l-interface.interface-id", + "property-value": "junit-l-interface-1" + } + ] + }, + { + "related-to": "l-interface", + "relationship-label": "tosca.relationships.HostedOn", + "related-link": "/aai/v13/l-interfaces/l-interface/junit-l-interface-name2", + "relationship-data": [ + { + "relationship-key": "l-interface.interface-name", + "relationship-value": "junit-l-interface-name2" + } + ], + "related-to-property": [ + { "property-key": "l-interface.interface-id", + "property-value": "junit-l-interface-2" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v13/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "Firewall-1" + } + ] + }, + { + "related-to": "flavor", + "related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "CloudOwner" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "RegionOne" + }, + { + "relationship-key": "flavor.flavor-id", + "relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39" + } + ], + "related-to-property": [ + { + "property-key": "flavor.flavor-name", + "property-value": "m1.medium" + } + ] + }, + { + "related-to": "image", + "related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "CloudOwner" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "RegionOne" + }, + { + "relationship-key": "image.image-id", + "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b" + } + ], + "related-to-property": [ + { + "property-key": "image.image-name", + "property-value": "unknown" + } + ] + } + ] + } +} diff --git a/src/test/resources/junit/l-interface-input.json b/src/test/resources/junit/l-interface-input.json new file mode 100644 index 0000000..0f80367 --- /dev/null +++ b/src/test/resources/junit/l-interface-input.json @@ -0,0 +1,10 @@ +{ + "interface-id": "junit-l-interface-1", + "interface-name": "junit-l-interface-name1", + "interface-role": "interface-role1", + "is-port-mirrored": "true", + "admin-status": "admin-status1", + "network-name": "network-name-amdocs", + "macaddr": "macaddr-1", + "in-maint": "true" +}
\ No newline at end of file diff --git a/src/test/resources/junit/l-interface-input2.json b/src/test/resources/junit/l-interface-input2.json new file mode 100644 index 0000000..3bcbbda --- /dev/null +++ b/src/test/resources/junit/l-interface-input2.json @@ -0,0 +1,10 @@ +{ + "interface-id": "junit-l-interface-2", + "interface-name": "junit-l-interface-name2", + "interface-role": "interface-role2", + "is-port-mirrored": "true", + "admin-status": "admin-status2", + "network-name": "network-name-amdocs", + "macaddr": "macaddr-2", + "in-maint": "true" +}
\ No newline at end of file |