Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use auth when waiting for ocis to come online #23

Merged
merged 1 commit into from
Jan 17, 2022
Merged

Conversation

individual-it
Copy link
Member

who can solve this riddle? After a lot of trying around I found out that the tests break when sending this "waiting" request without username & password, but just adding that makes them pass again.
I could not reproduce the problem when just running a compiled version of ocis, only when running it from docker, but that might be a timing issue.

Maybe related to owncloud/ocis#2964

Copy link
Contributor

@wkloucek wkloucek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the accounts service is not ready when K6 starts. Adding authentication to this wait script will cause the request to be authenticated in the backend, which is only possible when the accounts service is fully ready. Until it will return a 401 Unauthorized - in comparison to a 200 OK for unauthenticated request

@wkloucek wkloucek merged commit 98c2f59 into main Jan 17, 2022
@delete-merged-branch delete-merged-branch bot deleted the authWhenWaiting branch January 17, 2022 07:48
@refs
Copy link
Member

refs commented Jan 17, 2022

🧑‍⚖️ 💥 case closed

@individual-it
Copy link
Member Author

@refs @wkloucek the issue is that when NOT using auth here, the server will never come back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants