-
Notifications
You must be signed in to change notification settings - Fork 719
Add test cases and ensure container cert override paths work #12654
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
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12654Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12654" |
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 extends the container certificate trust configuration testing to cover multiple certificate trust scopes (Append, Override, None) and custom certificate path configurations. The changes enhance test coverage for certificate authority trust scenarios and fix a bug in how certificate bundles are created for multiple paths in the same directory.
Key changes:
- Expanded test cases to cover
CertificateTrustScopeenum values (Append, Override, None) with custom certificate path overrides - Fixed a bug in
DcpExecutor.cswhere multiple certificate bundle paths in the same directory were creating duplicate file system entries instead of grouping them
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/Aspire.Hosting.Tests/DistributedApplicationTests.cs | Expanded test coverage to verify certificate trust behavior across all three trust scopes (Append, Override, None) and with custom certificate paths |
| src/Aspire.Hosting/Dcp/DcpExecutor.cs | Fixed null-coalescing operator order and grouped certificate bundle paths by directory to avoid duplicate file system entries |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
/backport to release/13.0 |
|
Started backporting to release/13.0: https://github.com/dotnet/aspire/actions/runs/19057488155 |
Description
Added test cases and fixed some bugs related to overriding the default certificate paths for containers.