[BUG] DMI Change management base endpoint 14/136314/3
authorhalil.cakal <halil.cakal@est.tech>
Wed, 25 Oct 2023 11:02:49 +0000 (12:02 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Wed, 25 Oct 2023 13:27:25 +0000 (14:27 +0100)
- 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>
csit/plans/dmi/setup.sh
csit/plans/dmi/test.properties
csit/tests/actuator/actuator.robot
docker-compose/docker-compose.yml
docs/design.rst
src/main/resources/application.yml
src/test/resources/application.yml

index 7008e29..8117c1f 100755 (executable)
@@ -26,7 +26,7 @@ check_health()
 
   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"
index 39e577a..2929eb6 100644 (file)
@@ -17,7 +17,6 @@ DMI_HOST=$LOCAL_IP
 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
index dcb4f3e..e278f5f 100644 (file)
@@ -22,7 +22,7 @@ Documentation         DMI - Actuator endpoints
 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
index ce415e1..859ddb5 100755 (executable)
@@ -23,7 +23,6 @@ services:
     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!}
index 27bfdf9..2efcc58 100644 (file)
@@ -45,7 +45,7 @@ The healthcheck URL can be accessed using following URI:
 
 .. 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.
index d964748..d2b5307 100644 (file)
@@ -30,7 +30,7 @@ rest:
     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 @@ notification:
 
 # Actuator
 management:
-  server:
-    port: 8081
   endpoints:
     web:
-      base-path: /manage
       exposure:
         include: info,health,loggers,prometheus
   endpoint:
@@ -128,4 +125,4 @@ springdoc:
     urlsPrimaryName: query
     urls:
       - name: query
-        url: /api-docs/openapi.yaml
+        url: /api-docs/openapi.yaml
\ No newline at end of file
index 43eb0fc..ddc2b45 100644 (file)
@@ -21,7 +21,7 @@ rest:
     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!