From 04ffc88f07fbe45463de3ea4f3c240cdbf223c07 Mon Sep 17 00:00:00 2001 From: "waqas.ikram" Date: Thu, 25 Jan 2024 12:03:26 +0000 Subject: 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 --- csit/tests/actuator/actuator.robot | 4 +--- src/main/resources/application.yml | 4 ++-- 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 -- cgit 1.2.3-korg