[BUG] DMI Change management base endpoint
- Update DMI management endpoint from /manage to
/actuator
- The actuator port is as same as application port
- Change CSIT portfolio
- Change web config filters
- Change docker-compose
- Update the docs
Issue-ID: CPS-1922
Change-Id: Iab45a625b518f1b24a77c99dbdf20a58105723b6
Signed-off-by: halil.cakal <halil.cakal@est.tech>
diff --git a/csit/plans/dmi/setup.sh b/csit/plans/dmi/setup.sh
index 7008e29..8117c1f 100755
--- a/csit/plans/dmi/setup.sh
+++ b/csit/plans/dmi/setup.sh
@@ -26,7 +26,7 @@
while [ "$TICKER" -le "$TIME_OUT" ]; do
- RESPONSE=$(curl --location --request GET 'http://'$1'/manage/health/readiness')
+ RESPONSE=$(curl --location --request GET 'http://'$1'/actuator/health/readiness')
if [[ "$RESPONSE" == *"UP"* ]]; then
echo "$2 started in $TICKER"
diff --git a/csit/plans/dmi/test.properties b/csit/plans/dmi/test.properties
index 39e577a..2929eb6 100644
--- a/csit/plans/dmi/test.properties
+++ b/csit/plans/dmi/test.properties
@@ -17,7 +17,6 @@
DMI_PORT=8783
DMI_USERNAME=cpsuser
DMI_PASSWORD=cpsr0cks!
-DMI_MANAGEMENT_PORT=8787
DMI_SERVICE_URL=http://$LOCAL_IP:$DMI_PORT
DOCKER_REPO=nexus3.onap.org:10003
diff --git a/csit/tests/actuator/actuator.robot b/csit/tests/actuator/actuator.robot
index dcb4f3e..e278f5f 100644
--- a/csit/tests/actuator/actuator.robot
+++ b/csit/tests/actuator/actuator.robot
@@ -22,7 +22,7 @@
Library Collections
Library RequestsLibrary
-Suite Setup Create Session MANAGEMENT_URL http://${DMI_HOST}:${DMI_MANAGEMENT_PORT}/manage
+Suite Setup Create Session MANAGEMENT_URL http://${DMI_HOST}:${DMI_PORT}/actuator
*** Test Cases ***
Test DMI Enhanced Healthcheck
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index ce415e1..859ddb5 100755
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -23,7 +23,6 @@
image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/ncmp-dmi-plugin:${DMI_VERSION:-latest}
ports:
- ${DMI_PORT:-8783}:8080
- - ${DMI_MANAGEMENT_PORT:-8787}:8081
environment:
CPS_USERNAME: ${CPS_CORE_USERNAME:-cpsuser}
CPS_PASSWORD: ${CPS_CORE_PASSWORD:-cpsr0cks!}
diff --git a/docs/design.rst b/docs/design.rst
index 27bfdf9..2efcc58 100644
--- a/docs/design.rst
+++ b/docs/design.rst
@@ -45,7 +45,7 @@
.. code-block:: bash
- http://<hostname>:<port>/manage/health
+ http://<hostname>:<port>/actuator/health
The Health check endpoint is essential for monitoring the status of DMI-Plugins.
CPS is using a Spring Boot pattern here which can easily be configured for any spring boot application.
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index d964748..d2b5307 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -30,7 +30,7 @@
dmi-base-path: /dmi
security:
- permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
+ permit-uri: /actuator/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
auth:
username: ${DMI_USERNAME}
password: ${DMI_PASSWORD}
@@ -82,11 +82,8 @@
# Actuator
management:
- server:
- port: 8081
endpoints:
web:
- base-path: /manage
exposure:
include: info,health,loggers,prometheus
endpoint:
@@ -128,4 +125,4 @@
urlsPrimaryName: query
urls:
- name: query
- url: /api-docs/openapi.yaml
+ url: /api-docs/openapi.yaml
\ No newline at end of file
diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml
index 43eb0fc..ddc2b45 100644
--- a/src/test/resources/application.yml
+++ b/src/test/resources/application.yml
@@ -21,7 +21,7 @@
dmi-base-path: /dmi
security:
- permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
+ permit-uri: /actuator/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
auth:
username: cpsuser
password: cpsr0cks!