Skip to content

Conversation

chlowell
Copy link
Member

Closes #3126

@chlowell chlowell self-assigned this Oct 13, 2025
@github-actions github-actions bot added the Azure.Identity The azure_identity crate label Oct 13, 2025
@chlowell chlowell marked this pull request as ready for review October 13, 2025 17:58
@chlowell chlowell requested a review from heaths as a code owner October 13, 2025 17:58
@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 17:58
Copy link
Contributor

@Copilot Copilot AI left a 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

@chlowell
Copy link
Member Author

@microsoft-github-policy-service rerun

@github-project-automation github-project-automation bot moved this from Untriaged to In Progress in Azure Identity SDK Improvements Oct 13, 2025
@chlowell chlowell merged commit fd513f1 into Azure:main Oct 15, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Azure Identity SDK Improvements Oct 15, 2025
@chlowell chlowell deleted the cert-tests branch October 15, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Azure.Identity The azure_identity crate

Projects

Development

Successfully merging this pull request may close these issues.

Add ClientCertificateCredential tests

3 participants