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

refactor: refactor mfa tests #1322

Merged
merged 5 commits into from
Nov 28, 2023
Merged

refactor: refactor mfa tests #1322

merged 5 commits into from
Nov 28, 2023

Conversation

J0
Copy link
Contributor

@J0 J0 commented Nov 28, 2023

What kind of change does this PR introduce?

The mfa tests are hard to read. There's also a lot of redundant code which makes testing for hooks quite a bit harder. This PR aims to remove some of the redundancy so that it's easier to write the tests for #1314

Main changes include

  • Splitting out enrollAndVerify into enroll and verify
  • Using suite specific constants
  • Packaging duplicated setup code

@J0 J0 requested a review from a team as a code owner November 28, 2023 10:11
internal/api/mfa_test.go Outdated Show resolved Hide resolved
internal/api/mfa_test.go Outdated Show resolved Hide resolved
internal/api/mfa_test.go Outdated Show resolved Hide resolved
internal/api/mfa_test.go Outdated Show resolved Hide resolved
internal/api/mfa_test.go Outdated Show resolved Hide resolved
@J0 J0 merged commit 0540c7f into master Nov 28, 2023
2 checks passed
@J0 J0 deleted the j0/refactor_mfa_verification branch November 28, 2023 17:32
Copy link
Contributor

🎉 This PR is included in version 2.120.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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