diff options
author | Manzon, Inna (im453s) <im453s@intl.att.com> | 2018-12-25 17:41:33 +0200 |
---|---|---|
committer | Manzon, Inna (im453s) <im453s@intl.att.com> | 2019-01-10 18:27:17 +0200 |
commit | e10154ff631cf86a978899db8533e86bbc0e658e (patch) | |
tree | 57dc73699b599acd1b16d82ae7f6add448505e44 /src/test/java | |
parent | 67f39f670bd700878d11759ef5f0a91e674261f8 (diff) |
SDC Tosca Parser getEntity API1.4.12
Change-Id: I7cb1acfcfacd3c58eae52995523b1e55e7302144
Issue-ID: SDC-1967
Signed-off-by: Manzon, Inna (im453s) <im453s@intl.att.com>
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/onap/sdc/impl/GetEntityTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/onap/sdc/impl/GetEntityTest.java b/src/test/java/org/onap/sdc/impl/GetEntityTest.java index 830e67a..5c19072 100644 --- a/src/test/java/org/onap/sdc/impl/GetEntityTest.java +++ b/src/test/java/org/onap/sdc/impl/GetEntityTest.java @@ -90,6 +90,20 @@ public class GetEntityTest { } @Test + public void getCpsFromVfRecursively() { + EntityQuery entityQuery = EntityQuery.newBuilder(SdcTypes.CP) + .build(); + TopologyTemplateQuery topologyTemplateQuery = TopologyTemplateQuery.newBuilder(SdcTypes.VF) + .build(); + + List<IEntityDetails> entities = helper.getEntity(entityQuery, topologyTemplateQuery, true); + + assertEquals(16, entities.size()); + assertEquals("jenny vTSBC vlan VNF 0#abstract_rtp_msc", entities.get(2).getPath()); + assertEquals("jenny vTSBC vlan VNF 0#abstract_rtp_msc#rtp_msc_rtp_msc_avpn_port_0_vlan_subinterface_rtp_msc_avpn", entities.get(7).getPath()); + } + + @Test public void getCpByUuidsFromCVFCRecursively() { EntityQuery entityQuery = EntityQuery.newBuilder(SdcTypes.CP) .customizationUUID("d674b231-34ba-4777-b83a-78be33960a69") |