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

Use quarkus-test-security in unit tests to simplify unit tests #258

Open
vishal423 opened this issue Nov 12, 2022 · 0 comments
Open

Use quarkus-test-security in unit tests to simplify unit tests #258

vishal423 opened this issue Nov 12, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@vishal423
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

The current approach requires you to authenticate against the Restful endpoint, retrieve the JWT token and use that to invoke the actual test. Though this approach sounds fine in end-to-end tests, it slows the unit test feedback loop, while testing unrelated concerns along each test. Quarkus provides a separate package quarkus-test-security to disable security and allow configuration of the custom Security context. We should explore usage of this package to simplify current suite of unit tests.

Describe the solution you'd like
Use Quarkus Security test extension to simplify unit tests.

Describe alternatives you've considered
N/A

Additional context
https://quarkus.io/guides/security-testing

@vishal423 vishal423 added the enhancement New feature or request label Nov 26, 2022
@vishal423 vishal423 self-assigned this Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant