From 07cb87c6cea08b59762c84f31eb08c6c182041aa Mon Sep 17 00:00:00 2001 From: liboNet Date: Thu, 9 May 2019 08:54:06 +0800 Subject: upgrade sdc tosca parse to v1.5.1 update pom.xml to use v1.5.1 for sdc-tosca parse update Extract file since the DM's change update the csar file based on new DM update Test file to reflect the new CSAR file Change-Id: I90da979ff1cedbdedadacc46386aa5ea0e7b6711 Issue-ID: POLICY-1720 Signed-off-by: liboNet --- .../decoding/pdpx/TestPolicyDecoderCsarPdpx.java | 10 +++++----- .../src/test/resources/hpaPolicyHugePage.csar | Bin 46508 -> 78091 bytes .../test/resources/hpaPolicyPciePassthrough.csar | Bin 47214 -> 93228 bytes .../src/test/resources/hpaPolicySriov.csar | Bin 47201 -> 82560 bytes .../src/test/resources/s3p_0_pciVendorId.csar | Bin 49224 -> 81316 bytes .../src/test/resources/service-TestNs8-csar.csar | Bin 46374 -> 78364 bytes 6 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/reception-plugins/src/test') diff --git a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestPolicyDecoderCsarPdpx.java b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestPolicyDecoderCsarPdpx.java index 2d91f837..b5396b90 100644 --- a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestPolicyDecoderCsarPdpx.java +++ b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestPolicyDecoderCsarPdpx.java @@ -82,7 +82,7 @@ public class TestPolicyDecoderCsarPdpx { assertTrue(policy.getConfigBody().contains("\"version\":\"1.0\"")); assertTrue(policy.getConfigBody().contains("\"policyType\":\"hpa\"")); - assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vnf_1\"")); + assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vgw_0\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"tosca.nodes.nfv.Vdu.Compute\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"flavor_directives\"")); assertTrue(policy.getConfigBody().contains("\"hpa-feature\":\"basicCapabilities\"")); @@ -111,7 +111,7 @@ public class TestPolicyDecoderCsarPdpx { assertTrue(policy.getConfigBody().contains("\"version\":\"1.0\"")); assertTrue(policy.getConfigBody().contains("\"policyType\":\"hpa\"")); - assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vnf_1\"")); + assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vgw_0\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"tosca.nodes.nfv.Vdu.Compute\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"flavor_directives\"")); assertTrue(policy.getConfigBody().contains("\"attribute_name\":\"flavorName\"")); @@ -152,7 +152,7 @@ public class TestPolicyDecoderCsarPdpx { assertTrue(policy.getConfigBody().contains("\"version\":\"1.0\"")); assertTrue(policy.getConfigBody().contains("\"policyType\":\"hpa\"")); - assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vnf_1\"")); + assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vgw_0\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"tosca.nodes.nfv.Vdu.Compute\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"flavor_directives\"")); assertTrue(policy.getConfigBody().contains("\"attribute_name\":\"flavorName\"")); @@ -195,13 +195,13 @@ public class TestPolicyDecoderCsarPdpx { assertTrue(policy.getConfigBody().contains("\"version\":\"1.0\"")); assertTrue(policy.getConfigBody().contains("\"policyType\":\"hpa\"")); - assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vnf_1\"")); + assertTrue(policy.getConfigBody().contains("\"id\":\"VDU_vgw_0\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"tosca.nodes.nfv.Vdu.Compute\"")); assertTrue(policy.getConfigBody().contains("\"type\":\"flavor_directives\"")); assertTrue(policy.getConfigBody().contains("\"attribute_name\":\"flavorName\"")); assertTrue(policy.getConfigBody().contains("\"attribute_value\":\"\"")); assertTrue(policy.getConfigBody().contains("\"hpa-feature\":\"hugePages\"")); - assertTrue(policy.getConfigBody().contains("\"mandatory\":\"false\"")); + assertTrue(policy.getConfigBody().contains("\"mandatory\":\"true\"")); assertTrue(policy.getConfigBody().contains("\"architecture\":\"generic\"")); assertTrue(policy.getConfigBody().contains("\"hpa-version\":\"v1\"")); assertTrue(policy.getConfigBody().contains("\"hpa-attribute-key\":\"memoryPageSize\"")); diff --git a/plugins/reception-plugins/src/test/resources/hpaPolicyHugePage.csar b/plugins/reception-plugins/src/test/resources/hpaPolicyHugePage.csar index 3c3c4a15..eec9836e 100644 Binary files a/plugins/reception-plugins/src/test/resources/hpaPolicyHugePage.csar and b/plugins/reception-plugins/src/test/resources/hpaPolicyHugePage.csar differ diff --git a/plugins/reception-plugins/src/test/resources/hpaPolicyPciePassthrough.csar b/plugins/reception-plugins/src/test/resources/hpaPolicyPciePassthrough.csar index a97e76d2..43947110 100644 Binary files a/plugins/reception-plugins/src/test/resources/hpaPolicyPciePassthrough.csar and b/plugins/reception-plugins/src/test/resources/hpaPolicyPciePassthrough.csar differ diff --git a/plugins/reception-plugins/src/test/resources/hpaPolicySriov.csar b/plugins/reception-plugins/src/test/resources/hpaPolicySriov.csar index 29a8ca9b..6940a359 100644 Binary files a/plugins/reception-plugins/src/test/resources/hpaPolicySriov.csar and b/plugins/reception-plugins/src/test/resources/hpaPolicySriov.csar differ diff --git a/plugins/reception-plugins/src/test/resources/s3p_0_pciVendorId.csar b/plugins/reception-plugins/src/test/resources/s3p_0_pciVendorId.csar index 9f1af628..7e37bd42 100644 Binary files a/plugins/reception-plugins/src/test/resources/s3p_0_pciVendorId.csar and b/plugins/reception-plugins/src/test/resources/s3p_0_pciVendorId.csar differ diff --git a/plugins/reception-plugins/src/test/resources/service-TestNs8-csar.csar b/plugins/reception-plugins/src/test/resources/service-TestNs8-csar.csar index 75f5bda0..46b8c418 100644 Binary files a/plugins/reception-plugins/src/test/resources/service-TestNs8-csar.csar and b/plugins/reception-plugins/src/test/resources/service-TestNs8-csar.csar differ -- cgit 1.2.3-korg