diff options
author | Liang <liang.ding@intel.com> | 2019-03-13 01:49:25 +0000 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2019-04-10 06:10:03 +0000 |
commit | ef0e8be1453e3959b38c9832e3e729e4e86a9e04 (patch) | |
tree | 35240c48472a44b48ab959ded27892d870674b9b /openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/ManifestCreatorNamingConventionImplTest.java | |
parent | fffb841e0ba5a48f5a8606c28e013f23723db3b5 (diff) |
specify a new type to cloud specific artifacts
Change-Id: I26e9533989a377d407290451063d97263a814d6b
Issue-ID: SDC-2041
Signed-off-by: Liang Ding <liang.ding@intel.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/ManifestCreatorNamingConventionImplTest.java')
1 files changed, 29 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/ManifestCreatorNamingConventionImplTest.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/ManifestCreatorNamingConventionImplTest.java new file mode 100644 index 0000000000..f5d24575a3 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/ManifestCreatorNamingConventionImplTest.java @@ -0,0 +1,29 @@ +package org.openecomp.sdc.vendorsoftwareproduct.services.impl.filedatastructuremodule; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +public class ManifestCreatorNamingConventionImplTest extends ManifestCreatorNamingConventionImpl { + + private static final String ARTIFACT_1 = "cloudtech_k8s_charts.zip"; + private static final String ARTIFACT_2 = "cloudtech_azure_day0.zip"; + private static final String ARTIFACT_3 = "cloudtech_aws_configtemplate.zip"; + private static final String ARTIFACT_4 = "k8s_charts.zip"; + private static final String ARTIFACT_5 = "cloudtech_openstack_configtemplate.zip"; + + @Test + public void testIsCloudSpecificArtifact() { + assertTrue(isCloudSpecificArtifact(ARTIFACT_1)); + assertTrue(isCloudSpecificArtifact(ARTIFACT_2)); + assertTrue(isCloudSpecificArtifact(ARTIFACT_3)); + assertFalse(isCloudSpecificArtifact(ARTIFACT_4)); + assertFalse(isCloudSpecificArtifact(ARTIFACT_5)); + } +} |