Omitting the basic auth header in healthcheck test 82/137082/2
authorwaqas.ikram <waqas.ikram@est.tech>
Thu, 25 Jan 2024 12:03:26 +0000 (12:03 +0000)
committerwaqas.ikram <waqas.ikram@est.tech>
Thu, 25 Jan 2024 13:23:30 +0000 (13:23 +0000)
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>
csit/tests/actuator/actuator.robot
src/main/resources/application.yml

index 21ea2df..9ca3d6f 100644 (file)
@@ -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
index d2b5307..732f46d 100644 (file)
@@ -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