testcontainers / testcontainers/testcontainers-python
Question: Can HealthcheckWaitStrategy make use of the HEALTHCHECK defined on the image?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 386
- Avg merge
- 4h 40m
- Merged PRs (30d)
- 1
Description
What are you trying to do?
HealthcheckWaitStrategy initializes _startup_timeout from the testcontainers configuration. It can be overridden by calling with_startup_timeout.
Is there a way to indicate "Use whatever is defined on the image we are starting"?
Where are you trying to do it?
MyContainer.waiting_for(HealthcheckWaitStrategy.with_startup_timeout(XXXX))
# XXXX should be > whatever is defined on the container image
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in core/testcontainers/core/waiting_utils.py at HealthcheckWaitStrategy and inspect how startup timeouts and image healthchecks are currently handled. Determine the expected behavior when the strategy uses the image's HEALTHCHECK, then add coverage showing that the configured image healthcheck is respected and run the relevant test suite.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100