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

test: fix JaasAuthProviderTest validation #6664

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

vcrfxia
Copy link
Contributor

@vcrfxia vcrfxia commented Nov 24, 2020

Description

Functionality was lost from the JaasAuthProviderTest over the course of a couple refactors. Specifically, the test was no longer verifying that the authentication roles config was properly used in validating user authorization. This PR fixes the tests to check the behavior again, and also performs some minor cleanup in the file.

Credits to @big-andy-coates for discovering the test gap!

Testing done

Tests pass now, and they also fail if conditions are changed to be erroneous.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@vcrfxia vcrfxia requested a review from a team as a code owner November 24, 2020 02:47
Copy link
Contributor

@big-andy-coates big-andy-coates left a comment

Choose a reason for hiding this comment

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

LGTM

@vcrfxia vcrfxia merged commit 1e19204 into confluentinc:master Nov 24, 2020
@vcrfxia vcrfxia deleted the jaas-auth-test branch November 24, 2020 17:02
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.

2 participants