Added oparent to sdc main
[sdc.git] / 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 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.vendorsoftwareproduct.services.impl.filedatastructuremodule;
22
23 import org.junit.Test;
24
25 import java.util.ArrayList;
26 import java.util.HashMap;
27 import java.util.List;
28 import java.util.Map;
29
30 import static org.junit.Assert.assertFalse;
31 import static org.junit.Assert.assertTrue;
32
33 public class ManifestCreatorNamingConventionImplTest extends ManifestCreatorNamingConventionImpl {
34
35     private static final String ARTIFACT_1 = "cloudtech_k8s_charts.zip";
36     private static final String ARTIFACT_2 = "cloudtech_azure_day0.zip";
37     private static final String ARTIFACT_3 = "cloudtech_aws_configtemplate.zip";
38     private static final String ARTIFACT_4 = "k8s_charts.zip";
39     private static final String ARTIFACT_5 = "cloudtech_openstack_configtemplate.zip";
40
41     @Test
42     public void testIsCloudSpecificArtifact() {
43         assertTrue(isCloudSpecificArtifact(ARTIFACT_1));
44         assertTrue(isCloudSpecificArtifact(ARTIFACT_2));
45         assertTrue(isCloudSpecificArtifact(ARTIFACT_3));
46         assertFalse(isCloudSpecificArtifact(ARTIFACT_4));
47         assertFalse(isCloudSpecificArtifact(ARTIFACT_5));
48     }
49 }