Merge "fixing Logger usage Issue"
authorGao Weitao <victor.gao@huawei.com>
Mon, 27 Aug 2018 09:17:26 +0000 (09:17 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 27 Aug 2018 09:17:26 +0000 (09:17 +0000)
16 files changed:
huawei/pom.xml
huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/RestfulConfigureTest.java [new file with mode: 0644]
huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check2.txt [new file with mode: 0644]
huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check3.txt [new file with mode: 0644]
huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check4.txt [new file with mode: 0644]
huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check5.txt [new file with mode: 0644]
huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check7.txt [new file with mode: 0644]
nokia/pom.xml
nokiav2/deployment/pom.xml
nokiav2/driver/pom.xml
nokiav2/driverwar/pom.xml
nokiav2/generatedapis/pom.xml
nokiav2/pom.xml
pom.xml
version.properties
zte/pom.xml

index b6f765e..275d5cc 100644 (file)
@@ -18,7 +18,7 @@
     <parent>
         <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm</groupId>
         <artifactId>vfc-nfvo-driver-vnfm-svnfm</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.2.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.huawei</groupId>
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/RestfulConfigureTest.java b/huawei/vnfmadapter/VnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/restclient/RestfulConfigureTest.java
new file mode 100644 (file)
index 0000000..9a40cda
--- /dev/null
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2016 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.common.restclient;
+
+import static org.junit.Assert.*;
+
+import java.io.IOException;
+
+import org.junit.Test;
+
+import net.sf.json.JSONException;
+
+public class RestfulConfigureTest {
+
+       @Test
+       public void testRestfulConfigure() {
+                RestfulConfigure rc = new  RestfulConfigure();
+                rc.toString();
+       }
+       
+       @Test
+       public void testRestfulConfigureStringNoFilePath() {
+                RestfulConfigure rc = new  RestfulConfigure("");
+                RestfulOptions rp = rc.getOptions();
+                assertTrue(true);
+       }
+
+       @Test
+       public void testRestfulConfigureStringNoFileExist() {
+                RestfulConfigure rc = new  RestfulConfigure("C:/Users/Public/Desktop");
+                RestfulOptions rp = rc.getOptions();
+                assertTrue(true);
+       }
+       
+       @Test
+       public void testRestfulConfigureString() {
+                RestfulConfigure rc = new  RestfulConfigure("src/test/resources/Check7.txt");
+                RestfulOptions rp = rc.getOptions();
+                assertTrue(true);
+       }
+       
+       @Test
+       public void testRestfulConfigureStringNoFile() {
+                RestfulConfigure rc = new  RestfulConfigure("src/test/resources/Check1.txt");
+                RestfulOptions rp = rc.getOptions();
+                assertTrue(true);
+       }
+       
+       @Test
+       public void testRestfulConfigureStringWrongFile() {
+                RestfulConfigure rc = new  RestfulConfigure("src/test/resources/Check2.txt");
+                RestfulOptions rp = rc.getOptions();
+                assertTrue(true);
+       }
+       
+       @Test
+       public void testRestfulConfigureStringEmptyFile() {
+                RestfulConfigure rc = new  RestfulConfigure("src/test/resources/Check3.txt");
+                RestfulOptions rp = rc.getOptions();
+                assertTrue(true);
+       }
+       @Test
+       public void testRestfulConfigureStringNoHostFile() {
+                RestfulConfigure rc = new  RestfulConfigure("src/test/resources/Check4.txt");
+                RestfulOptions rp = rc.getOptions();
+                assertTrue(true);
+       }
+       @Test(expected=JSONException.class)
+       public void testRestfulConfigureStringZeroFile() throws IOException {
+                RestfulConfigure rc = new  RestfulConfigure("src/test/resources/Check5.txt");
+                rc.getOptions();
+       }
+       /*@Test
+       public void testRestfulConfigureStringClose()  {
+                RestfulConfigure rc = new  RestfulConfigure("src/test/resources/Check6.txt");
+                rc.getOptions();
+       }*/
+}
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check2.txt b/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check2.txt
new file mode 100644 (file)
index 0000000..926dc20
--- /dev/null
@@ -0,0 +1,12 @@
+{
+    "defaultServer":
+    {
+        "host":"",
+        "port":"80"
+    },
+"ConnectTimeout":"300000",
+"thread":"10",
+"idletimeout":"500000",
+"timeout":"300000"
+}
+               
\ No newline at end of file
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check3.txt b/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check3.txt
new file mode 100644 (file)
index 0000000..08e3741
--- /dev/null
@@ -0,0 +1,12 @@
+{
+    "":
+    {
+        "host":"",
+        "port":""
+    },
+"":"",
+"":"",
+"":"",
+"":""
+}
+               
\ No newline at end of file
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check4.txt b/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check4.txt
new file mode 100644 (file)
index 0000000..7ccbf2b
--- /dev/null
@@ -0,0 +1,12 @@
+{
+    "defaultServer":
+    {
+        "":"127.0.0.1",
+        "port":"80"
+    },
+"ConnectTimeout":"300000",
+"thread":"10",
+"idletimeout":"500000",
+"timeout":"300000"
+}
+               
\ No newline at end of file
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check5.txt b/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check5.txt
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check7.txt b/huawei/vnfmadapter/VnfmadapterService/service/src/test/resources/Check7.txt
new file mode 100644 (file)
index 0000000..47c4e08
--- /dev/null
@@ -0,0 +1,12 @@
+{
+    "defaultServer":
+    {
+        "host":"127.0.0.1",
+        "port":"80"
+    },
+"ConnectTimeout":"300000",
+"thread":"10",
+"idletimeout":"500000",
+"timeout":"300000"
+}
+               
\ No newline at end of file
index 7fd5cdf..c3d3dc5 100644 (file)
@@ -18,7 +18,7 @@
     <parent>
         <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm</groupId>
         <artifactId>vfc-nfvo-driver-vnfm-svnfm</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.2.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia</groupId>
index 2f300e7..abf8ef1 100644 (file)
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <artifactId>deployment</artifactId>
-  <version>1.1.1-SNAPSHOT</version>
+  <version>1.2.0-SNAPSHOT</version>
   <packaging>pom</packaging>
   <name>vfc/nfvo/driver/vnfm/svnfm/nokiav2/deployment</name>
   <description>Nokia SVNFM driver deployment files</description>
   <parent>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
     <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2</artifactId>
-    <version>1.1.1-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
   </parent>
   <build>
     <plugins>
index 956ef95..1e6b0dc 100644 (file)
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <artifactId>driver</artifactId>
-  <version>1.1.1-SNAPSHOT</version>
+  <version>1.2.0-SNAPSHOT</version>
   <packaging>jar</packaging>
   <name>vfc/nfvo/driver/vnfm/svnfm/nokiav2/driver</name>
   <description>svnfm vnfm driver</description>
   <parent>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
     <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2</artifactId>
-    <version>1.1.1-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
   </parent>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -35,7 +35,7 @@
     <dependency>
       <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
       <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2-clients</artifactId>
-      <version>1.1.1-SNAPSHOT</version>
+      <version>1.2.0-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.springframework.boot</groupId>
index 7215e3f..d6866cd 100644 (file)
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
   <artifactId>driverwar</artifactId>
-  <version>1.1.1-SNAPSHOT</version>
+  <version>1.2.0-SNAPSHOT</version>
   <packaging>war</packaging>
   <name>vfc/nfvo/driver/vnfm/svnfm/nokiav2/driverwar</name>
   <description>svnfm vnfm driver</description>
   <parent>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
     <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2</artifactId>
-    <version>1.1.1-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
   </parent>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -36,7 +36,7 @@
     <dependency>
       <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
       <artifactId>driver</artifactId>
-      <version>1.1.1-SNAPSHOT</version>
+      <version>1.2.0-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.springframework.boot</groupId>
index 294158c..ee3e65d 100644 (file)
   <parent>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
     <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2</artifactId>
-    <version>1.1.1-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
   <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2-clients</artifactId>
-  <version>1.1.1-SNAPSHOT</version>
+  <version>1.2.0-SNAPSHOT</version>
   <packaging>jar</packaging>
   <name>vfc/nfvo/driver/vnfm/svnfm/nokiav2/generatedapis</name>
   <properties>
index 52a368e..72ab854 100644 (file)
   <parent>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm</groupId>
     <artifactId>vfc-nfvo-driver-vnfm-svnfm</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
   <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2</artifactId>
-  <version>1.1.1-SNAPSHOT</version>
+  <version>1.2.0-SNAPSHOT</version>
   <packaging>pom</packaging>
   <name>vfc-nfvo-driver-vnfm-svnfm-nokiav2</name>
   <properties>
     <jacoco.version>0.8.0</jacoco.version>
-    <spring.boot.version>2.0.2.RELEASE</spring.boot.version>
+    <spring.boot.version>2.0.4.RELEASE</spring.boot.version>
   </properties>
   <!-- used to test dependency convergence locally
   <build>
diff --git a/pom.xml b/pom.xml
index f8f1902..b4aa4c7 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm</groupId>
   <artifactId>vfc-nfvo-driver-vnfm-svnfm</artifactId>
-  <version>1.1.0-SNAPSHOT</version>
+  <version>1.2.0-SNAPSHOT</version>
   <packaging>pom</packaging>
   <name>vfc-nfvo-driver-vnfm-svnfm</name>
   <description>vfc-nfvo-driver-vnfm-svnfm</description>
index d7c69cd..2cddbb0 100644 (file)
@@ -18,7 +18,7 @@
 # because they are used in Jenkins, whose plug-in doesn't support
 
 major=1
-minor=1
+minor=2
 patch=0
 
 base_version=${major}.${minor}.${patch}
index 6af4bcc..e1d45b5 100644 (file)
@@ -18,7 +18,7 @@
     <parent>
         <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm</groupId>
         <artifactId>vfc-nfvo-driver-vnfm-svnfm</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.2.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.zte</groupId>