Fix AAI connectivity issue 55/68755/2
authorGeora Barsky <georab@amdocs.com>
Tue, 25 Sep 2018 02:36:11 +0000 (22:36 -0400)
committerGeora Barsky <georab@amdocs.com>
Tue, 25 Sep 2018 03:15:30 +0000 (23:15 -0400)
Modify AAI Rest client configuration to ensure that
aai.port and host are not overriden by environment
variables

Issue-ID: LOG-694
Change-Id: I1b3fc449a07e967efa0466dacb5e75253d937c0a
Signed-off-by: Geora Barsky <georab@amdocs.com>
pomba/service-decomposition/config/application.properties
pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/AAIConfiguration.java
pomba/service-decomposition/src/test/java/org/onap/sdnc/apps/pomba/servicedecomposition/test/ServiceDecompositionTest.java

index fbe20ee..116db83 100644 (file)
@@ -19,8 +19,8 @@ basicAuth.username=admin
 basicAuth.password=OBF:1u2a1toa1w8v1tok1u30
 
 # AAI REST Client Configuration
-aai.host=135.63.125.59
-aai.port=8443
+aai.serviceName=135.63.125.59
+aai.servicePort=8443
 aai.httpProtocol=http
 aai.securityProtocol=TLS
 aai.connectionTimeout=5000
index 41451a1..6febf42 100644 (file)
@@ -24,10 +24,10 @@ import org.springframework.stereotype.Component;
 
 @Component
 public class AAIConfiguration {
-    @Value("${aai.host}")
+    @Value("${aai.serviceName}")
     private String host;
 
-    @Value("${aai.port}")
+    @Value("${aai.servicePort}")
     private String port;
 
     @Value("${aai.httpProtocol}")
index 94c73bf..37a5518 100644 (file)
@@ -59,8 +59,8 @@ import org.springframework.test.context.web.WebAppConfiguration;
 @SpringBootTest
 @TestPropertySource(properties = {
         "aai.httpProtocol=http",
-        "aai.host=localhost",
-        "aai.port=8081",
+        "aai.serviceName=localhost",
+        "aai.servicePort=8081",
         "basicAuth.username=admin",
         "basicAuth.password=OBF:1u2a1toa1w8v1tok1u30"
 })