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

[ELY-2684] Unit test code refactor (removed duplicates) #2041

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

sugan0tech
Copy link
Contributor

@sugan0tech sugan0tech marked this pull request as ready for review October 22, 2023 17:30
Copy link
Contributor

@fjuma fjuma left a comment

Choose a reason for hiding this comment

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

Looks good, @sugan0tech, I've just added a small comment.

For the title and commit message, it would be good to include information about the specific test that was updated, e.g., [ELY-2648] Update tests in OTPTest to use a common helper method for tests where the password should remain unchanged"

@@ -1082,6 +994,40 @@ private CallbackHandler createClientCallbackHandler(String username, String pass
return ClientUtils.getCallbackHandler(new URI("remote://localhost"), context);
}

private void testAuthentication(String seed, int sequenceNumber) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be good to rename this to explain what it does, e.g., checkPasswordRemainsUnchanged or testPasswordRemainsUnchanged, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure 👍

@sugan0tech sugan0tech requested a review from fjuma October 24, 2023 04:57
Copy link
Contributor

@fjuma fjuma left a comment

Choose a reason for hiding this comment

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

Thanks very much @sugan0tech!

Copy link
Contributor

@PrarthonaPaul PrarthonaPaul left a comment

Choose a reason for hiding this comment

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

LGTM!
Thanks @sugan0tech

@Skyllarr Skyllarr merged commit c2e76af into wildfly-security:2.x Oct 26, 2023
3 checks passed
@sugan0tech sugan0tech deleted the sugan0tech/ELY-2684 branch October 26, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants