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

Implement unit tests for OIDC provider configuration in oidc_provider… #19

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

Mehrn0ush
Copy link
Owner

…s.rs

  • Added unit tests for to verify correct behavior:
    • Tests ensure that valid environment variables result in correct OIDC configuration.
    • Tests cover scenarios where environment variables (, , ) are missing, triggering appropriate panics.
  • Ensured proper cleanup of environment variables after each test.

…s.rs

- Added unit tests for  to verify correct behavior:
  - Tests ensure that valid environment variables result in correct OIDC configuration.
  - Tests cover scenarios where environment variables (, , ) are missing, triggering appropriate panics.
- Ensured proper cleanup of environment variables after each test.
- Added unit tests to validate ScopeValidator functionality:
  - Tests for allowing all requested scopes if valid.
  - Tests for invalid scope requests, including partial and fully disallowed scopes.
  - Tests for cases with no requested scopes and no allowed scopes.
- Removed redundant HashSet import to avoid compilation errors.
@Mehrn0ush Mehrn0ush merged commit 47af2ec into main Oct 23, 2024
3 checks passed
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.

1 participant