aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2018-09-12 11:40:21 -0400
committerTait,Trevor(rt0435) <rtait@amdocs.com>2018-09-12 11:40:36 -0400
commit1b74399de451eca25a4a6bb31817073af5f4a0b4 (patch)
tree5bb1b64a984a87f4b0546f2f5a30638a7b5727b4
parent44f4acba8cda0f013b6593f0731fe7a30b862c4c (diff)
Change URI to ndcontextbuilder
Issue-ID: LOG-648 The network-discovery context path in the URI is the same as we use for the network discovery microservice so we are changing this to be ndcontextbuilder to remove the confilict. URI will be of the form: http://<host>:8080/ndcontextbuilder/service/ Change-Id: I184307a0c14935f4b9e37c75d936ba12d32836b1 Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
-rw-r--r--config/application.properties2
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/service/SpringServiceImpl.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/application.properties b/config/application.properties
index ef63984..95ae244 100644
--- a/config/application.properties
+++ b/config/application.properties
@@ -3,7 +3,7 @@ spring.jersey.type=filter
spring.mvc.urls=swagger,docs,prometheus,auditevents,info,heapdump,autoconfig,beans,loggers,dump,env,trace,health,configprops,mappings,metrics,webjars
-server.contextPath=/network-discovery
+server.contextPath=/ndcontextbuilder
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
#This property is used to set the Tomcat connector attributes.developers can define multiple attributes separated by comma
diff --git a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/service/SpringServiceImpl.java b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/service/SpringServiceImpl.java
index 02b223b..4d22a92 100644
--- a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/service/SpringServiceImpl.java
+++ b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/service/SpringServiceImpl.java
@@ -88,7 +88,7 @@ public class SpringServiceImpl implements SpringService {
public static final String NETWORK_DISCOVERY_RSP_STATE_REQUEST_SENT = "RequestSent";
public static final String NETWORK_DISCOVERY_RSP_STATE_RSP_ALL_RECEIVED = "AllRspReceived";
public static final String NETWORK_DISCOVERY_RSP_REQUESTID_SPLITTER = "___";
- public static final String NETWORK_DISCOVERY_CTX_BUILDER_NETWORK_DISCOVERY_NOTIFICATION_PATH = "/network-discovery/service/networkDiscoveryNotification";
+ public static final String NETWORK_DISCOVERY_CTX_BUILDER_NETWORK_DISCOVERY_NOTIFICATION_PATH = "/ndcontextbuilder/service/networkDiscoveryNotification";
public static final String NETWORK_DISCOVERY_FIND_RESOURCE_BY_TYPE_REST_X_ONAP_PARTNER_NAME = "X-ONAP-PartnerName";
public static final String NETWORK_DISCOVERY_FIND_RESOURCE_BY_TYPE_REST_X_ONAP_REQUEST_ID = "X-ONAP-RequestID";
public static final String NETWORK_DISCOVERY_FIND_RESOURCE_BY_TYPE_REST_REQUEST_ID = "requestId";