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>
Suite Setup Create Session DMI_URL http://${DMI_HOST}:${DMI_PORT}
*** Variables ***
-${auth} Basic Y3BzdXNlcjpjcHNyMGNrcyE=
${actuatorPath} /actuator/health
${swaggerPath} /swagger-ui/index.html
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
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}
urlsPrimaryName: query
urls:
- name: query
- url: /api-docs/openapi.yaml
\ No newline at end of file
+ url: /api-docs/openapi.yaml