-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update ServiceBusEmulatorContainer (remove deprecation), fix CosmosDB startup #11223
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
base: main
Are you sure you want to change the base?
Conversation
…verContainer anymore. This is a breaking change, but only in the INCUBATING Azure module. No neat way to do this without any pain. Users of this module will need to: change their imports from: import org.testcontainers.containers.MSSQLServerContainer; to: import org.testcontainers.mssqlserver.MSSQLServerContainer; and: remove the <?> from the MSSQLServerContainer variable.
|
Hmm, 2 tests fail on unrelated code: CosmosDBEmulatorContainerTest > testWithCosmosClient() FAILED The EventHubsEmulatorContainerTest works fine for me locally. Are these tests flaky? |
Or have the tests not been run for months because of caching, and have now run for the first time because I touched the azure module, and have been broken for a while due to updated images? ;) |
a55830f to
d319c19
Compare
|
I've 'fixed' the problem of the CosmosDB test:
|
Even when that image logs "Started" the API endpoint is not available yet for many seconds. See Azure/azure-cosmos-db-emulator-docker#209 .
d319c19 to
6d5b6ef
Compare
| dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME); | ||
| withExposedPorts(PORT); | ||
| waitingFor(Wait.forLogMessage(".*Started\\r\\n$", 1)); | ||
| // Wait.forLogMessage(".*Started\\r\\n$") is not sufficient with the current version of cosmos db emulator (vnext-EN20251022), |
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.
can you add a test using that image? AFAIR, it was not working at all with it.
This is a breaking change, but only in the INCUBATING Azure module. No neat way to do this without any pain.
Users of this module will need to:
change their imports from:
import org.testcontainers.containers.MSSQLServerContainer;
to:
import org.testcontainers.mssqlserver.MSSQLServerContainer;
and:
remove the <?> from the MSSQLServerContainer variable.