Skip to content

Add container tunnel test#13107

Merged
karolz-ms merged 1 commit intomainfrom
dev/karolz/container-tunnel-test
Nov 24, 2025
Merged

Add container tunnel test#13107
karolz-ms merged 1 commit intomainfrom
dev/karolz/container-tunnel-test

Conversation

@karolz-ms
Copy link
Copy Markdown
Contributor

Adds a test that verifies basic functionality of the container tunnel.

Copilot AI review requested due to automatic review settings November 21, 2025 23:49
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13107

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 13107"

Copy link
Copy Markdown
Contributor

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 a functional test to verify that the container tunnel feature works correctly with YARP (Yet Another Reverse Proxy). The test ensures that when the container tunnel is enabled, YARP can properly route requests to a containerized service.

Key Changes

  • Added a new test class ContainerTunnelTests with one test method that verifies container tunnel functionality with YARP
  • Updated project references to include the YARP hosting package

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/Aspire.Hosting.Tests/ContainerTunnelTests.cs New test file that verifies container tunnel works with YARP by configuring a route through YARP to ServiceA and asserting the response
tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj Added project reference to Aspire.Hosting.Yarp to support YARP testing functionality

@davidfowl
Copy link
Copy Markdown
Contributor

@radical this will break on helix right?

@karolz-ms karolz-ms merged commit dbc61ee into main Nov 24, 2025
1152 of 1166 checks passed
@karolz-ms karolz-ms deleted the dev/karolz/container-tunnel-test branch November 24, 2025 17:31
@dotnet-policy-service dotnet-policy-service bot added this to the 13.1 milestone Nov 24, 2025
@karolz-ms
Copy link
Copy Markdown
Contributor Author

@davidfowl the test is marked as RequiresDocker so it should not cause any issues different from existing DistributedApplicationTests

radical pushed a commit that referenced this pull request Nov 25, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Dec 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants