f5d24575a3fcf24ee7512aecbbaf3d994b6d9dc1
[sdc.git] /
1 package org.openecomp.sdc.vendorsoftwareproduct.services.impl.filedatastructuremodule;
2
3 import org.junit.Test;
4
5 import java.util.ArrayList;
6 import java.util.HashMap;
7 import java.util.List;
8 import java.util.Map;
9
10 import static org.junit.Assert.assertFalse;
11 import static org.junit.Assert.assertTrue;
12
13 public class ManifestCreatorNamingConventionImplTest extends ManifestCreatorNamingConventionImpl {
14
15     private static final String ARTIFACT_1 = "cloudtech_k8s_charts.zip";
16     private static final String ARTIFACT_2 = "cloudtech_azure_day0.zip";
17     private static final String ARTIFACT_3 = "cloudtech_aws_configtemplate.zip";
18     private static final String ARTIFACT_4 = "k8s_charts.zip";
19     private static final String ARTIFACT_5 = "cloudtech_openstack_configtemplate.zip";
20
21     @Test
22     public void testIsCloudSpecificArtifact() {
23         assertTrue(isCloudSpecificArtifact(ARTIFACT_1));
24         assertTrue(isCloudSpecificArtifact(ARTIFACT_2));
25         assertTrue(isCloudSpecificArtifact(ARTIFACT_3));
26         assertFalse(isCloudSpecificArtifact(ARTIFACT_4));
27         assertFalse(isCloudSpecificArtifact(ARTIFACT_5));
28     }
29 }