added generic fabric support to SO
[so.git] / mso-catalog-db / src / test / java / org / onap / so / db / catalog / BaseTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 - 2018 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.onap.so.db.catalog;
22
23 import org.junit.Test;
24 import org.junit.runner.RunWith;
25 import org.onap.so.db.catalog.beans.CvnfcCustomization;
26 import org.onap.so.db.catalog.beans.VfModule;
27 import org.onap.so.db.catalog.beans.VnfResource;
28 import org.onap.so.db.catalog.beans.VnfcCustomization;
29 import org.springframework.boot.test.context.SpringBootTest;
30 import org.springframework.test.context.ActiveProfiles;
31 import org.springframework.test.context.junit4.SpringRunner;
32
33 @RunWith(SpringRunner.class)
34 @SpringBootTest(classes = TestApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
35 @ActiveProfiles("test")
36 public class BaseTest {
37     
38     protected VnfcCustomization setUpVnfcCustomization(){
39         VnfcCustomization vnfcCustomization = new VnfcCustomization();
40         vnfcCustomization.setModelInstanceName("testVnfcCustomizationModelInstanceName");
41         vnfcCustomization.setModelUUID("321228a4-9f15-11e8-98d0-529269fb1459");
42         vnfcCustomization.setModelInvariantUUID("c0659136-9f15-11e8-98d0-529269fb1459");
43         vnfcCustomization.setModelVersion("testModelVersion");
44         vnfcCustomization.setModelName("testModelName");
45         vnfcCustomization.setToscaNodeType("testToscaModelType");
46         vnfcCustomization.setDescription("testVnfcCustomizationDescription");
47         return vnfcCustomization;
48     }
49     
50     protected CvnfcCustomization setUpCvnfcCustomization(){
51         CvnfcCustomization cvnfcCustomization = new CvnfcCustomization();
52         cvnfcCustomization.setModelInstanceName("cvfncCustomizationTestModelInstanceName");
53         cvnfcCustomization.setModelUUID("321228a4-9f15-11e8-98d0-529269fb1459");
54         cvnfcCustomization.setModelInvariantUUID("c0659136-9f15-11e8-98d0-529269fb1459");
55         cvnfcCustomization.setModelVersion("testModelVersion");
56         cvnfcCustomization.setModelName("testModelName");
57         cvnfcCustomization.setToscaNodeType("testToscaNodeType");
58         cvnfcCustomization.setDescription("description");
59         cvnfcCustomization.setNfcFunction("testNfcFunction");
60         cvnfcCustomization.setNfcNamingCode("testNfcNamingCode");
61         return cvnfcCustomization;
62     }
63     
64     protected VfModule setUpVfModule(){
65         VfModule vFModule = new VfModule();
66         vFModule.setModelUUID("cb82ffd8-252a-11e7-93ae-92361f002671");
67         vFModule.setModelVersion("testModelVersion");
68         vFModule.setModelName("testModelName");
69         vFModule.setIsBase(false);
70         return vFModule;
71     }
72     
73     protected VnfResource setUpVnfResource(){
74         VnfResource vnfResource = new VnfResource();
75         vnfResource.setModelUUID("cb82ffd8-252a-11e7-93ae-92361f002671");
76         vnfResource.setModelInvariantUUID("az82ffd8-252a-11e7-93ae-92361f002677");
77         vnfResource.setModelVersion("testModelVersion");
78         vnfResource.setOrchestrationMode("HEAT");
79         return vnfResource;
80     }
81     
82     @Test
83     public void testNothing(){}
84 }