Add SO APIs to Nokia VNFM adapter
[vfc/nfvo/driver/vnfm/svnfm.git] / nokiav2 / driver / src / test / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / nokia / ct / CTDirectReal.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.ct;
18
19 import com.google.gson.JsonObject;
20 import com.nokia.cbam.lcm.v32.model.*;
21 import java.util.ArrayList;
22 import org.junit.Test;
23 import org.junit.runner.RunWith;
24 import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.NokiaSvnfmApplication;
25 import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.onap.direct.AAIExternalSystemInfoProvider;
26 import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.onap.direct.notification.AAINotificationProcessor;
27 import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.util.SystemFunctions;
28 import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.vnfm.notification.ReportedAffectedConnectionPoints;
29 import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.vnfm.notification.ReportedAffectedCp;
30 import org.onap.vnfmdriver.model.VimInfo;
31 import org.springframework.beans.factory.annotation.Autowired;
32 import org.springframework.boot.test.context.SpringBootTest;
33 import org.springframework.test.context.ActiveProfiles;
34 import org.springframework.test.context.junit4.SpringRunner;
35
36 import static java.util.Optional.of;
37
38 @RunWith(value = SpringRunner.class)
39 @SpringBootTest(classes = NokiaSvnfmApplication.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
40 @ActiveProfiles("direct")
41 public class CTDirectReal {
42     @Autowired
43     private AAIExternalSystemInfoProvider externalSystemInfoProvider;
44     @Autowired
45     private AAINotificationProcessor notificationProcessor;
46
47     /**
48      * The following is not a real test, but only start the driver locally.
49      * It takes parameters from application-real.properties
50      */
51     @Test
52     public void testBasicWorkflow() throws Exception {
53         SystemFunctions.systemFunctions().sleep(10000000 * 1000L);
54
55     }
56
57 }