How to check if the Cosmos DB emulator in a Docker container is done booting?

984 Views Asked by At

We use the Cosmos DB emulator in a Docker container. The container is started together with the test. Sometimes during the first test, there is a read timeout when connecting and the tests are aborted. Is there any check we can run before the tests to verify that the Cosmos DB has completed initialization? For example by querying a specific URL?

1

There are 1 best solutions below

2
On

Emulator readiness can be checked using HTTP GET request to the following url: /_explorer/emulator.pem