--- /dev/null
+/*-\r
+ * ============LICENSE_START=======================================================\r
+ * ONAP - SO\r
+ * ================================================================================\r
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * ================================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END=========================================================\r
+ */\r
+\r
+package org.openecomp.mso.adapters.vnf.test;\r
+\r
+import java.util.HashMap;\r
+import java.util.Map;\r
+import javax.xml.ws.Holder;\r
+import org.junit.Test;\r
+import org.openecomp.mso.adapters.vnf.MsoVnfCloudifyAdapterImpl;\r
+import org.openecomp.mso.entity.MsoRequest;\r
+import org.openecomp.mso.openstack.beans.VnfRollback;\r
+\r
+public class MsoVnfCloudifyAdapterImplTest {\r
+\r
+ @Test\r
+ public void healthCheckVNFTest() {\r
+ MsoVnfCloudifyAdapterImpl instance = new MsoVnfCloudifyAdapterImpl();\r
+ instance.healthCheck();\r
+ }\r
+\r
+ @Test\r
+ public void createVnfTest() {\r
+ MsoVnfCloudifyAdapterImpl instance = new MsoVnfCloudifyAdapterImpl();\r
+ MsoRequest msoRequest = new MsoRequest();\r
+ msoRequest.setRequestId("12345");\r
+ msoRequest.setServiceInstanceId("12345");\r
+\r
+ Map<String, String> map = new HashMap<>();\r
+ map.put("key1", "value1");\r
+ try {\r
+ instance.createVfModule("mdt1", "88a6ca3ee0394ade9403f075db23167e", "vnf", "1", "vSAMP12", "VFMOD",\r
+ "volumeGroupHeatStackId|1", "baseVfHeatStackId", "88a6ca3ee0394ade9403f075db23167e", map,\r
+ Boolean.FALSE, Boolean.TRUE, msoRequest, new Holder<>(), new Holder<>(),\r
+ new Holder<>());\r
+ } catch (Exception e) {\r
+\r
+ }\r
+ }\r
+\r
+ @Test\r
+ public void updateVnfTest() {\r
+ MsoVnfCloudifyAdapterImpl instance = new MsoVnfCloudifyAdapterImpl();\r
+ MsoRequest msoRequest = new MsoRequest();\r
+ msoRequest.setRequestId("12345");\r
+ msoRequest.setServiceInstanceId("12345");\r
+\r
+ Map<String, String> map = new HashMap<>();\r
+ map.put("key1", "value1");\r
+ try {\r
+ instance.updateVfModule("mdt1", "88a6ca3ee0394ade9403f075db23167e", "vnf", "1", "vSAMP12", "VFMOD",\r
+ "volumeGroupHeatStackId|1", "baseVfHeatStackId", "vfModuleStackId",\r
+ "88a6ca3ee0394ade9403f075db23167e", map, msoRequest, new Holder<>(),\r
+ new Holder<>());\r
+ } catch (Exception e) {\r
+\r
+ }\r
+ }\r
+\r
+ @Test\r
+ public void deleteVnfTest() {\r
+ MsoVnfCloudifyAdapterImpl instance = new MsoVnfCloudifyAdapterImpl();\r
+ MsoRequest msoRequest = new MsoRequest();\r
+ msoRequest.setRequestId("12345");\r
+ msoRequest.setServiceInstanceId("12345");\r
+ try {\r
+ instance.deleteVfModule("mdt1", "88a6ca3ee0394ade9403f075db23167e", "vSAMP12", msoRequest,\r
+ new Holder<>());\r
+ } catch (Exception e) {\r
+\r
+ }\r
+ }\r
+\r
+}\r