testcontainers / testcontainers-python

Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
https://testcontainers-python.readthedocs.io/en/latest/
Apache License 2.0
1.59k stars 290 forks source link

Support for HTTP wait strategy #86

Open joeystevens00 opened 4 years ago

joeystevens00 commented 4 years ago

Are there any plans to support the HTTP wait strategy? https://www.testcontainers.org/features/startup_and_waits/#other-wait-strategies

tillahoffmann commented 4 years ago

It should be relatively straightforward to support http wait strategies using a generalisation of wait_for_logs. PRs welcome!

smparekh commented 4 years ago

I took a stab at adding the port and http status code wait strategies: https://github.com/smparekh/testcontainers-python/compare/30dce29920766e3d34926d4ec174ab11f6158f81...smparekh:master

Comments and suggestions welcome.