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"
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
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
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!}
.. 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.
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}
# Actuator
management:
- server:
- port: 8081
endpoints:
web:
- base-path: /manage
exposure:
include: info,health,loggers,prometheus
endpoint:
urlsPrimaryName: query
urls:
- name: query
- url: /api-docs/openapi.yaml
+ url: /api-docs/openapi.yaml
\ No newline at end of file
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!