summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwaqas.ikram <waqas.ikram@est.tech>2024-01-25 12:03:26 +0000
committerwaqas.ikram <waqas.ikram@est.tech>2024-01-25 13:23:30 +0000
commit04ffc88f07fbe45463de3ea4f3c240cdbf223c07 (patch)
tree4e148e4c1da2283df0701af7e67dbb0a0d92d605
parent75d07eaed2cd208e90b01919eb158a97a577d306 (diff)
Omitting the basic auth header in healthcheck test
as it is not required and adding v3 to uri of api-docs plus allowing swagger-ui.html to be access as well Issue-ID: CPS-2045 Change-Id: Ia254e718a28d58578b8b0dcbf2abd8f7ef1c0e1d Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
-rw-r--r--csit/tests/actuator/actuator.robot4
-rw-r--r--src/main/resources/application.yml4
2 files changed, 3 insertions, 5 deletions
diff --git a/csit/tests/actuator/actuator.robot b/csit/tests/actuator/actuator.robot
index 21ea2df0..9ca3d6f5 100644
--- a/csit/tests/actuator/actuator.robot
+++ b/csit/tests/actuator/actuator.robot
@@ -25,7 +25,6 @@ Library RequestsLibrary
Suite Setup Create Session DMI_URL http://${DMI_HOST}:${DMI_PORT}
*** Variables ***
-${auth} Basic Y3BzdXNlcjpjcHNyMGNrcyE=
${actuatorPath} /actuator/health
${swaggerPath} /swagger-ui/index.html
@@ -40,5 +39,4 @@ Test DMI Enhanced Healthcheck
Test DMI Swagger UI
[Documentation] Runs health check for DMI Swagger UI. If the DMI Swagger URL is accessible, status should be 200.
- ${headers}= Create Dictionary Authorization=${auth}
- GET On Session DMI_URL ${swaggerPath} headers=${headers} expected_status=200
+ GET On Session DMI_URL ${swaggerPath} expected_status=200
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index d2b53071..732f46db 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -30,7 +30,7 @@ rest:
dmi-base-path: /dmi
security:
- permit-uri: /actuator/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
+ permit-uri: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**,/v3/api-docs/**
auth:
username: ${DMI_USERNAME}
password: ${DMI_PASSWORD}
@@ -125,4 +125,4 @@ springdoc:
urlsPrimaryName: query
urls:
- name: query
- url: /api-docs/openapi.yaml \ No newline at end of file
+ url: /api-docs/openapi.yaml