Skip to content

Name the CosmosDB emulator image, as the other fixtures already do - #45

Merged
ivanvyd merged 1 commit into
mainfrom
fix/cosmos-builder-obsolete
Jul 30, 2026
Merged

Name the CosmosDB emulator image, as the other fixtures already do#45
ivanvyd merged 1 commit into
mainfrom
fix/cosmos-builder-obsolete

Conversation

@ivanvyd

@ivanvyd ivanvyd commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Testcontainers deprecated the parameterless builders in favour of the ones taking an image. The CosmosDB fixture was the last on the old form — 2 warnings, one per target framework.

The Redis, PostgreSQL and SQL Server fixtures beside it already name their image. This makes the emulator match, and puts the version the tests run against in the file rather than leaving it to the package.

Found on a cleaned build. An incremental one reported none — the second time today that difference has hidden a warning I had just introduced, and the reason I now only quote warning counts after dotnet clean.

Verified: cold build is 0 errors / 0 warnings, and the 9 CosmosDB emulator tests still pass.

Testcontainers has deprecated the parameterless builders in favour of the ones
that take an image, and the CosmosDB fixture was the last using the old form.
Two warnings, one per target framework.

The Redis, PostgreSQL and SQL Server fixtures beside it already name their
image. This makes the emulator match, and makes the version the tests run
against visible in the file rather than decided by the package.

Found on a cleaned build. An incremental one had reported none, which is the
second time today that difference has hidden a warning I had just introduced.
@ivanvyd
ivanvyd merged commit d0d37d5 into main Jul 30, 2026
8 checks passed
@ivanvyd
ivanvyd deleted the fix/cosmos-builder-obsolete branch July 30, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant