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

chore: auth unit tests #13207

Merged
merged 1 commit into from
Oct 5, 2024
Merged

chore: auth unit tests #13207

merged 1 commit into from
Oct 5, 2024

Conversation

danieldietzler
Copy link
Member

Screenshot 2024-10-05 at 18 01 24

The remaining lines are untestable currently because we cannot mock out the OIDC handling, since that isn't abstracted away in a repo.

Comment on lines -195 to -197
if (!config.oauth.enabled) {
throw new BadRequestException('OAuth is not enabled');
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This already happens in this.getOAuthClient

@jrasm91 jrasm91 merged commit 9d9bf1c into main Oct 5, 2024
37 checks passed
@jrasm91 jrasm91 deleted the chore/auth-unit-tests branch October 5, 2024 16:16
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.

2 participants