summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPriyank Maheshwari <priyank.maheshwari@est.tech>2024-01-25 13:38:02 +0000
committerGerrit Code Review <gerrit@onap.org>2024-01-25 13:38:02 +0000
commit52a7c2b2685ad63154e347782f0ff5c16f87ef53 (patch)
tree8516a97ac7845212095536b6ace97f9ca61b54a4
parent26804e49980bc1d3139b09b7934e94a2ea1e7743 (diff)
parent7a397ca71ce9aacbddc64b87813c1c5f8fc8bd9b (diff)
Merge "Omitting the basic auth header in healthcheck test"
-rw-r--r--cps-application/src/main/resources/application.yml4
-rw-r--r--csit/tests/actuator/actuator.robot4
2 files changed, 3 insertions, 5 deletions
diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml
index 4e20a4b8d..e56e0e13c 100644
--- a/cps-application/src/main/resources/application.yml
+++ b/cps-application/src/main/resources/application.yml
@@ -142,7 +142,7 @@ springdoc:
security:
# comma-separated uri patterns which do not require authorization
- permit-uri: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**
+ permit-uri: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**,/v3/api-docs/**
auth:
username: ${CPS_USERNAME}
password: ${CPS_PASSWORD}
@@ -209,4 +209,4 @@ hazelcast:
mode:
kubernetes:
enabled: ${HAZELCAST_MODE_KUBERNETES_ENABLED:false}
- service-name: ${CPS_NCMP_SERVICE_NAME:"cps-and-ncmp-service"} \ No newline at end of file
+ service-name: ${CPS_NCMP_SERVICE_NAME:"cps-and-ncmp-service"}
diff --git a/csit/tests/actuator/actuator.robot b/csit/tests/actuator/actuator.robot
index b1cf102fe..e010fdd7c 100644
--- a/csit/tests/actuator/actuator.robot
+++ b/csit/tests/actuator/actuator.robot
@@ -27,7 +27,6 @@ Library RequestsLibrary
Suite Setup Create Session CPS_URL http://${CPS_CORE_HOST}:${CPS_CORE_PORT}
*** Variables ***
-${auth} Basic Y3BzdXNlcjpjcHNyMGNrcyE=
${actuatorPath} /actuator/health
${swaggerPath} /swagger-ui/index.html
@@ -43,5 +42,4 @@ Test CPS Enhanced Healthcheck
Test CPS Swagger UI
[Documentation] Runs health check for CPS Swagger UI. If the CPS Swagger URL is accessible, status should be 200.
- ${headers}= Create Dictionary Authorization=${auth}
- GET On Session CPS_URL ${swaggerPath} headers=${headers} expected_status=200
+ GET On Session CPS_URL ${swaggerPath} expected_status=200