Merge "Sonar Fix- URIParser.java"
authorJames Forsyth <jf2512@att.com>
Thu, 15 Aug 2019 13:46:31 +0000 (13:46 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 15 Aug 2019 13:46:31 +0000 (13:46 +0000)
12 files changed:
Dockerfiles/aai-common/README.md
Dockerfiles/haproxy/Dockerfile
aai-annotations/pom.xml
aai-auth/pom.xml
aai-core/pom.xml
aai-core/src/test/java/org/onap/aai/AAISetup.java
aai-rest/pom.xml
aai-rest/src/main/java/org/onap/aai/restclient/RestClient.java
aai-schema-ingest/pom.xml
aai-utils/pom.xml
pom.xml
version.properties

index 0726e26..8213124 100644 (file)
@@ -2,13 +2,23 @@
 
 ### Building the image
 
-Run the following command if building the image in internal network
+Run the following command to build AAI common images at internal network
 
 ```bash
     export NEW_VERSION=<NEW_VERSION>
-    docker build \
-           -t aaionap/aai-common:${NEW_VERSION}${BASE_TAG:-"-alpine"} -f <Dockerfile.alpine | Dockerfile.ubuntu> .
+    export BASE_IMAGE=<alpine | ubuntu>
+    sudo docker build -t \
+        nexus3.onap.org:10003/onap/aai-common-${BASE_IMAGE}:${NEW_VERSION} \
+        -f Dockerfile.${BASE_IMAGE} .
 ```
 
-Replace the NEW\_VERSION with the new docker image version for aai-common
-If different based images are required replace BASE\_TAG accordingly to the base image used.
+Replace the **NEW\_VERSION** with the new docker image version for aai-common.
+Set **BASE\_IMAGE** to **alpine** or **ubuntu** to build aai-common-alpine or
+aai-common-ubuntu image.
+
+NOTE: In order to push images into Nexus3, you have to be logged into Nexus3
+with appropriate credentials first.
+
+NOTE2: Both alpine and ubuntu based aai-common images are built automatically
+by jenkins jobs and they are available at official ONAP docker registry
+(currently nexus3).
index f6d6c28..7bf9b20 100644 (file)
@@ -1,4 +1,4 @@
-FROM haproxy:1.7
+FROM haproxy:1.7-alpine
 
 # Set up your corporate proxy if there is
 ENV HTTP_PROXY  ""
@@ -6,17 +6,10 @@ ENV HTTPS_PROXY  ""
 ENV http_proxy  ""
 ENV https_proxy  ""
 
-ENV DEBIAN_FRONTEND=noninteractive
-
-RUN if [ ! -z ${HTTP_PROXY} ]; \
-    then echo "Acquire::http::proxy  \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; \
-    fi && \
-    if [ ! -z ${HTTP_PROXY} ]; \
-    then echo "Acquire::https::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; \
-    fi && \
-    apt-get update && \
-    apt-get -y install ca-certificates openssl curl && \
-    rm -rf /var/lib/apt/lists/*
+RUN apk add --no-cache \
+    ca-certificates \
+    curl \
+    openssl
 
 RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/ssl/private
 
index 6fd1c35..8838d53 100644 (file)
     <parent>
         <groupId>org.onap.aai.aai-common</groupId>
         <artifactId>aai-common</artifactId>
-        <version>1.5.2-SNAPSHOT</version>
+        <version>1.6.0-SNAPSHOT</version>
     </parent>
     <artifactId>aai-annotations</artifactId>
     <name>aai-annotations</name>
     <packaging>jar</packaging>
-    <version>1.5.2-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
     <properties>
         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
     </properties>
index 518f96f..090a7bc 100644 (file)
     <parent>
         <groupId>org.onap.aai.aai-common</groupId>
         <artifactId>aai-common</artifactId>
-        <version>1.5.2-SNAPSHOT</version>
+        <version>1.6.0-SNAPSHOT</version>
     </parent>
     <artifactId>aai-auth</artifactId>
     <name>aai-auth</name>
-    <version>1.5.2-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
 
     <properties>
         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
index 553db9f..75aea62 100644 (file)
     <parent>
         <groupId>org.onap.aai.aai-common</groupId>
         <artifactId>aai-common</artifactId>
-        <version>1.5.2-SNAPSHOT</version>
+        <version>1.6.0-SNAPSHOT</version>
     </parent>
     <artifactId>aai-core</artifactId>
     <name>aai-core</name>
-    <version>1.5.2-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
     <packaging>jar</packaging>
     <properties>
       <springframework.version>4.3.24.RELEASE</springframework.version>
         <dependency>
             <groupId>org.janusgraph</groupId>
             <artifactId>janusgraph-core</artifactId>
-            <version>0.2.0</version>
+            <version>0.2.3</version>
             <exclusions>
                 <exclusion>
                     <groupId>org.slf4j</groupId>
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-test</artifactId>
-            <version>1.5.20.RELEASE</version>
+            <version>1.5.21.RELEASE</version>
             <scope>test</scope>
         </dependency>
         <dependency>
index ade20f4..4bc30b8 100644 (file)
@@ -22,7 +22,7 @@ package org.onap.aai;
 
 import java.util.Map;
 
-import org.junit.BeforeClass;
+import org.junit.Before;
 import org.junit.ClassRule;
 import org.junit.Rule;
 import org.onap.aai.config.ConfigConfiguration;
@@ -88,8 +88,8 @@ public abstract class AAISetup {
 
     protected static final String SERVICE_NAME = "JUNIT";
 
-    @BeforeClass
-    public static void setupBundleconfig() throws Exception {
+    @Before
+    public void setupBundleconfig() throws Exception {
         System.setProperty("AJSC_HOME", ".");
         System.setProperty("BUNDLECONFIG_DIR", "src/test/resources/bundleconfig-local");
         System.setProperty("aai.service.name", SERVICE_NAME);
index c640c10..203a89e 100644 (file)
     <parent>
         <groupId>org.onap.aai.aai-common</groupId>
         <artifactId>aai-common</artifactId>
-        <version>1.5.2-SNAPSHOT</version>
+        <version>1.6.0-SNAPSHOT</version>
     </parent>
     <artifactId>aai-rest</artifactId>
     <name>aai-rest</name>
-    <version>1.5.2-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
 
     <properties>
         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
         <eelf.core.version>1.0.1-oss</eelf.core.version>
-        <spring.boot.starter.web.version>1.5.20.RELEASE</spring.boot.starter.web.version>
-        <spring.boot.starter.parent.version>1.5.20.RELEASE</spring.boot.starter.parent.version>
+        <spring.boot.starter.web.version>1.5.21.RELEASE</spring.boot.starter.web.version>
+        <spring.boot.starter.parent.version>1.5.21.RELEASE</spring.boot.starter.parent.version>
         <spring.security.version>1.0.8.RELEASE</spring.security.version>
     </properties>
 
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-test</artifactId>
-            <version>1.5.20.RELEASE</version>
+            <version>1.5.21.RELEASE</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
index 130cb6e..f5fc074 100644 (file)
@@ -79,7 +79,7 @@ public abstract class RestClient {
             log.error("URL syntax error with url {}{}", getBaseUrl(), uri);
             throw new RestClientException(e.getMessage());
         }
-        log.debug("METHOD={},URL={},http={}" + method, url, httpEntity);
+        log.debug("METHOD={},URL={},HEADERS={}", method, url, httpEntity);
 
         ResponseEntity responseEntity = getRestTemplate().exchange(url, method, httpEntity, String.class);
         log.debug("RESPONSE={}", responseEntity);
index 9f20418..152994f 100644 (file)
     <parent>
         <groupId>org.onap.aai.aai-common</groupId>
         <artifactId>aai-common</artifactId>
-        <version>1.5.2-SNAPSHOT</version>
+        <version>1.6.0-SNAPSHOT</version>
     </parent>
     <artifactId>aai-schema-ingest</artifactId>
     <name>aai-schema-ingest</name>
-    <version>1.5.2-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
     <packaging>jar</packaging>
 
     <properties>
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>
-            <version>1.5.20.RELEASE</version>
+            <version>1.5.21.RELEASE</version>
         </dependency>
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-test</artifactId>
-            <version>1.5.20.RELEASE</version>
+            <version>1.5.21.RELEASE</version>
             <scope>test</scope>
         </dependency>
         <dependency>
index 5e73372..000c2d6 100644 (file)
     <parent>
         <groupId>org.onap.aai.aai-common</groupId>
         <artifactId>aai-common</artifactId>
-        <version>1.5.2-SNAPSHOT</version>
+        <version>1.6.0-SNAPSHOT</version>
     </parent>
     <artifactId>aai-utils</artifactId>
     <name>aai-utils</name>
-    <version>1.5.2-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
 
     <properties>
         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
diff --git a/pom.xml b/pom.xml
index dfc01f3..222c8e1 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
 
     <groupId>org.onap.aai.aai-common</groupId>
     <artifactId>aai-common</artifactId>
-    <version>1.5.2-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
     <packaging>pom</packaging>
     <name>aai-aai-common</name>
     <description>Contains all of the common code for resources and traversal repos</description>
index 708788b..704dc53 100644 (file)
@@ -4,8 +4,8 @@
 # because they are used in Jenkins, whose plug-in doesn't support
 
 major_version=1
-minor_version=5
-patch_version=2
+minor_version=6
+patch_version=0
 
 base_version=${major_version}.${minor_version}.${patch_version}