Skip to content

Add TestContainer support for .NET#1664

Merged
WhitWaldo merged 32 commits intodapr:masterfrom
WhitWaldo:test-container
Dec 24, 2025
Merged

Add TestContainer support for .NET#1664
WhitWaldo merged 32 commits intodapr:masterfrom
WhitWaldo:test-container

Conversation

@WhitWaldo
Copy link
Contributor

@WhitWaldo WhitWaldo commented Dec 20, 2025

Description

This PR seeks to add TestContainers support for Dapr using the Dapr .NET SDK.

It has been initially tested and validated with a Dapr Jobs E2E test and will be improved on over time with additional tests. I'm going to go ahead and merge this PR as-is at this time though so I can start utilizing what's here to build out E2E tests for the new Dapr.Workflows PR.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…based on the container configuration

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
… a configuration value

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@WhitWaldo WhitWaldo self-assigned this Dec 20, 2025
@WhitWaldo WhitWaldo requested review from a team as code owners December 20, 2025 11:26
@WhitWaldo WhitWaldo added kind/enhancement New feature or request area/test labels Dec 20, 2025
… and harnesses

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…andom app ID each invocation to avoid conflicts and facilitate parallel testing

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
… represented

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…vice properly initializes

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…hen not using a test app

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…cts the container name

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…ess to the container

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…ting code for starting up daprd and the start app, when specified

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…coded version - this leaves the door open to specific versions without having to manually update it each time

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…nches, not when using Docker

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…low. Starting with Jobs tests.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…p and configuration

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…to run parallel E2E tests

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…es on the internal Docker network instead of through its external ports ensuring test isolation for parallel testing

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…ey're not lost locally after merging this PR. They should be replaced by real implementations against the current API when possible.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@WhitWaldo WhitWaldo added this to the v1.17 milestone Dec 24, 2025
@WhitWaldo WhitWaldo moved this from Backlog to In review in v1.17 Release Tracking Board Dec 24, 2025
@WhitWaldo WhitWaldo merged commit 3cbcf5b into dapr:master Dec 24, 2025
15 of 16 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in v1.17 Release Tracking Board Dec 24, 2025
@WhitWaldo WhitWaldo deleted the test-container branch December 24, 2025 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/test kind/enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant