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?
Asked
Active
Viewed 725 times
1 Answers
1
Emulator readiness can be checked using HTTP GET request to the following url: /_explorer/emulator.pem

nicolas2008
- 945
- 9
- 11
-
How this get the status of the emulator? It returns the certificate and not if the database is ready. – Horcrux7 Oct 01 '22 at 09:34
-
It doesn't return status 200 until db is ready – nicolas2008 Oct 02 '22 at 14:38