Changing ETSI folder dir per SDC-3244 requirement 45/114145/1
authorwaqas.ikram <waqas.ikram@est.tech>
Thu, 22 Oct 2020 09:33:50 +0000 (10:33 +0100)
committerwaqas.ikram <waqas.ikram@est.tech>
Thu, 22 Oct 2020 09:34:41 +0000 (10:34 +0100)
Change-Id: I69b5f72add73868626acf0c0951da12e4e29607a
Issue-ID: SO-3327
Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
asdc-controller/src/main/java/org/onap/so/asdc/etsi/pkg/processor/EtsiResourcePackageProcessor.java
asdc-controller/src/test/java/org/onap/so/asdc/client/SdcNotificationWithSol004PackageTest.java
asdc-controller/src/test/resources/resource-examples/vgw/ETSI_PACKAGE/VENDOR_LICENSE/vendor-license-model.xml [moved from asdc-controller/src/test/resources/resource-examples/vgw/ONBOARDED_PACKAGE/VENDOR_LICENSE/vendor-license-model.xml with 100% similarity]
asdc-controller/src/test/resources/resource-examples/vgw/ETSI_PACKAGE/VF_LICENSE/vf-license-model.xml [moved from asdc-controller/src/test/resources/resource-examples/vgw/ONBOARDED_PACKAGE/VF_LICENSE/vf-license-model.xml with 100% similarity]
asdc-controller/src/test/resources/resource-examples/vgw/ETSI_PACKAGE/vgw6.csar [moved from asdc-controller/src/test/resources/resource-examples/vgw/ONBOARDED_PACKAGE/vgw6.csar with 100% similarity]
asdc-controller/src/test/resources/resource-examples/vgw/SDC_RESOURCE_CSAR/vgw_sdc_resource.csar
asdc-controller/src/test/resources/resource-examples/vgw/dmaap-notification-message.json
asdc-controller/src/test/resources/resource-examples/vgw/service-Vgwservicev1-csar.csar

index bb7197b..4205de3 100644 (file)
@@ -44,7 +44,7 @@ import com.google.common.collect.ImmutableSet;
 public class EtsiResourcePackageProcessor {
 
     private final static Logger LOGGER = LoggerFactory.getLogger(EtsiResourcePackageProcessor.class);
-    private static final String ONBOARDED_PACKAGE_DIR_PATH = "Artifacts/Deployment/ONBOARDED_PACKAGE";
+    private static final String ONBOARDED_PACKAGE_DIR_PATH = "Artifacts/Deployment/ETSI_PACKAGE";
     private final SdcResourceProvider sdcResourceProvider;
     private final EtsiCatalogServiceProvider catalogServiceProvider;
     private static final int SLEEP_TIME_IN_SECONDS = 5;
index cb5bd0f..2e8da35 100644 (file)
@@ -345,7 +345,7 @@ public class SdcNotificationWithSol004PackageTest extends BaseTest {
      * Mock the AAI using wireshark.
      */
     private void initMockAaiServer(final String serviceUuid, final String serviceInvariantUuid) {
-        final String modelEndpoint = "/aai/v19/service-design-and-creation/models/model/" + serviceInvariantUuid
+        final String modelEndpoint = "/aai/v21/service-design-and-creation/models/model/" + serviceInvariantUuid
                 + "/model-vers/model-ver/" + serviceUuid + "?depth=0";
 
         wireMockServer.stubFor(post(urlEqualTo(modelEndpoint)).willReturn(ok()));
index 7ddfb6e..9eb240d 100644 (file)
Binary files a/asdc-controller/src/test/resources/resource-examples/vgw/SDC_RESOURCE_CSAR/vgw_sdc_resource.csar and b/asdc-controller/src/test/resources/resource-examples/vgw/SDC_RESOURCE_CSAR/vgw_sdc_resource.csar differ
index d936cd1..8c42c9c 100644 (file)
@@ -29,8 +29,8 @@
                 },
                 {
                     "artifactName": "vgw6.csar",
-                    "artifactType": "ONBOARDED_PACKAGE",
-                    "artifactURL": "/ONBOARDED_PACKAGE/vgw6.csar",
+                    "artifactType": "ETSI_PACKAGE",
+                    "artifactURL": "/ETSI_PACKAGE/vgw6.csar",
                     "artifactChecksum": "NjdmNGU3ZDlkODQ0YTUzMTU5NjZmOThiYjMxNTJiNGI\u003d",
                     "artifactDescription": "Artifact created from csar",
                     "artifactTimeout": 120,
index 51a9e19..eaed092 100644 (file)
Binary files a/asdc-controller/src/test/resources/resource-examples/vgw/service-Vgwservicev1-csar.csar and b/asdc-controller/src/test/resources/resource-examples/vgw/service-Vgwservicev1-csar.csar differ