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

Actually test that login works correctly. #438

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

adk-swisstopo
Copy link
Member

/api/stac/admin always redirects so we don't actually know whether login succeeds when testing that endpoint. In this change we modify the test to point to /api/stac/admin/ which does return 200 when valid credentials are used and 302 when failing to log in. We also add a test to verify invalid credentials are correctly rejected/redirected.

/api/stac/admin always redirects so we don't actually know whether login
succeeds when testing that endpoint. In this change we modify the test to
point to /api/stac/admin/ which does return 200 when valid credentials are
used and 302 when failing to log in. We also add a test to verify invalid
credentials are correctly rejected/redirected.
@adk-swisstopo adk-swisstopo requested a review from boecklic August 7, 2024 14:59
@github-actions github-actions bot added the bug label Aug 7, 2024
Copy link
Contributor

@boecklic boecklic left a comment

Choose a reason for hiding this comment

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

👍

@adk-swisstopo adk-swisstopo merged commit 58a2c20 into develop Aug 8, 2024
3 checks passed
@adk-swisstopo adk-swisstopo deleted the fix-admin-test-login branch August 8, 2024 06:58
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.

2 participants