Skip to content

Conversation

@nleconte-csgroup
Copy link
Collaborator

@nleconte-csgroup nleconte-csgroup commented Sep 16, 2024

This PR fixes an issue that caused the test pod to end in Error.

Issue : When setting a value for config.openapi_url, for e.g. /docs/openapi.json instead of the default openapi.json, the test pod crashes with the error 404 not found :

Connecting to apikeymanager:8000 (10.233.49.90:8000)
wget: server returned error: HTTP/1.1 404 Not Found

And the pod is in error :
image

Solution : Appending the config.openapi_url value to the end of the tested URL.

The pod is now able to run wget without errors :

Connecting to apikeymanager:8000 (10.233.43.252:8000)
saving to 'openapi.json'
openapi.json         100% |********************************|  6142  0:00:00 ETA
'openapi.json' saved

The test is sucessfull :

NAME: apikeymanager
LAST DEPLOYED: Mon Sep 16 14:00:08 2024
NAMESPACE: debug-nleconte
STATUS: deployed
REVISION: 1
TEST SUITE:     apikeymanager-test-connection
Last Started:   Mon Sep 16 14:00:22 2024
Last Completed: Mon Sep 16 14:00:26 2024
Phase:          Succeeded
NOTES:
1. Get the application URL by running these commands:
  https://apikeymanagernew.example.com/

And the pod is not in error anymore :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants