diff options
author | Liang.Ding <liang.ding@intel.com> | 2019-03-15 08:16:42 +0000 |
---|---|---|
committer | Liang Ding <liang.ding@intel.com> | 2019-04-08 09:22:25 -0700 |
commit | ef6ec63b05fb93adef0edb392b0a33de97203876 (patch) | |
tree | 0d5b69950f8fd5e8a023b557c07a862b581da539 /catalog-be/src/test/java/org | |
parent | 06e8b70cb9cdbcc131a183f3a85a95b513d2b2f1 (diff) |
show cloud specific artifacts IDs in vf module meta
Change-Id: I42c54b2b94513c1dd69c3ec662a05a71a89fd3d0
Issue-ID: SDC-2041
Signed-off-by: Liang.Ding <liang.ding@intel.com>
Diffstat (limited to 'catalog-be/src/test/java/org')
-rw-r--r-- | catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java index b5d937e0e8..360f12579a 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java @@ -62,6 +62,7 @@ import org.openecomp.sdc.exception.ResponseFormat; import java.util.function.BiPredicate; import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; @@ -90,6 +91,11 @@ public class ComponentInstanceBusinessLogicTest { private final static String REQUIREMENT_UID = "requirementUid"; private final static String REQUIREMENT_NAME = "requirementName"; private final static String RELATIONSHIP_TYPE = "relationshipType"; + private final static String ARTIFACT_1 = "cloudtech_k8s_charts.zip"; + private final static String ARTIFACT_2 = "cloudtech_azure_day0.zip"; + private final static String ARTIFACT_3 = "cloudtech_aws_configtemplate.zip"; + private final static String ARTIFACT_4 = "k8s_charts.zip"; + private final static String ARTIFACT_5 = "cloudtech_openstack_configtemplate.zip"; @InjectMocks private static ComponentInstanceBusinessLogic componentInstanceBusinessLogic; @@ -154,6 +160,15 @@ public class ComponentInstanceBusinessLogicTest { getforwardingPathOnVersionChange(); } + @Test + public void testIsCloudSpecificArtifact() { + assertTrue(componentInstanceBusinessLogic.isCloudSpecificArtifact(ARTIFACT_1)); + assertTrue(componentInstanceBusinessLogic.isCloudSpecificArtifact(ARTIFACT_2)); + assertTrue(componentInstanceBusinessLogic.isCloudSpecificArtifact(ARTIFACT_3)); + assertFalse(componentInstanceBusinessLogic.isCloudSpecificArtifact(ARTIFACT_4)); + assertFalse(componentInstanceBusinessLogic.isCloudSpecificArtifact(ARTIFACT_5)); + } + private void getforwardingPathOnVersionChange(){ String containerComponentParam="services"; String containerComponentID="121-cont"; |