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

frontend: apiProxy: Pass in namespace to testAuth #2190

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Conversation

skoeva
Copy link
Contributor

@skoeva skoeva commented Jul 23, 2024

This fix allows testAuth to take in a namespace parameter if given and fall back to using the default namespace if not given. Added changes to the testAuth tests in apiProxy.test.ts to account for this.

related: #754

Testing

  • Run cd frontend && npm test -- --coverage
  • Ensure that testAuth tests in apiProxy.test.ts are successful

@skoeva skoeva linked an issue Jul 23, 2024 that may be closed by this pull request
skoeva added 2 commits July 23, 2024 10:49
This fix allows testAuth to take in a namespace parameter if given and
fall back to using the default namespace if not given. Added changes to
the testAuth tests in apiProxy.test.ts to account for this.

Fixes: #754

Signed-off-by: Evangelos Skopelitis <[email protected]>
This gives us updated test coverage of testAuth in apiProxy.

Signed-off-by: Evangelos Skopelitis <[email protected]>
@skoeva skoeva marked this pull request as ready for review July 23, 2024 15:32
@skoeva skoeva self-assigned this Jul 23, 2024
@skoeva skoeva added the frontend Issues related to the frontend label Jul 23, 2024
@joaquimrocha
Copy link
Collaborator

This PR doesn't fix the #754 issue. It allows that function to be used now with a namespace, but it's not including the allowed namespace in it.

@joaquimrocha joaquimrocha merged commit 41d7722 into main Jul 24, 2024
18 checks passed
@joaquimrocha joaquimrocha deleted the testauth-fix branch July 24, 2024 10:24
@joaquimrocha joaquimrocha added this to the v0.25.0 milestone Jul 24, 2024
@illume illume added bug Something isn't working auth Authentication or authorization related labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Authentication or authorization related bug Something isn't working frontend Issues related to the frontend
Projects
Development

Successfully merging this pull request may close these issues.

TestAuth in apiProxy only for default namespace
3 participants