-
Notifications
You must be signed in to change notification settings - Fork 316
Add ClientCertificateCredential tests #3184
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive test coverage for the ClientCertificateCredential
class by implementing unit tests for authentication scenarios. The changes focus on testing success cases, error handling, and cloud configuration variations.
Key changes:
- Added a complete test module with three test functions covering different authentication scenarios
- Updated the
is_valid_request
helper function to support optional assertion validation - Improved error handling in the main credential implementation with proper status code checking
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
client_certificate_credential.rs |
Added comprehensive test module and improved error handling with status code checking |
client_assertion_credential.rs |
Updated test helper function to support optional assertion validation |
workload_identity_credential.rs |
Updated test calls to match the modified helper function signature |
.vscode/cspell.json |
Added exclusion for .pfx certificate files to prevent spell checking |
@microsoft-github-policy-service rerun |
Closes #3126