Updated pom to remove distribution-management section and corrected aai base image...
[aai/babel.git] / src / test / java / org / onap / aai / babel / csar / vnfcatalog / TestVnfVendorImageExtractor.java
index 7ab8ecd..83cbe20 100644 (file)
@@ -104,6 +104,15 @@ public class TestVnfVendorImageExtractor {
         new VnfVendorImageExtractor().buildVendorImageConfigurations(null, vf);
     }
 
+    @Test
+    public void createVendorImageMappingsValidFileDifferentVnfNodeTypes() throws IOException, ToscaToCatalogException {
+        String expectedJson = new ArtifactTestUtils().getRequestJson("vnfodservice-vendorImageConfigurations.json");
+        BabelArtifact artifact = CsarTest.VNFOD_SERVICE.extractVnfVendorImages();
+        assertThat(artifact.getName(), is(equalTo("vnfVendorImageConfigurations")));
+        assertThat(artifact.getType(), is(equalTo(ArtifactType.VNFCATALOG)));
+        assertThat(artifact.getPayload(), is(equalTo(expectedJson)));
+    }
+
     @Test
     public void testSoftwareVersions() throws ToscaToCatalogException {
         VnfVendorImageExtractor extractor = new VnfVendorImageExtractor();