testcontainers / testcontainers/testcontainers-python
Question: Can HealthcheckWaitStrategy make use of the HEALTHCHECK defined on the image?
未关闭
还没有人认领这个 Issue。
📖 documentation
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 core/testcontainers/core/waiting_utils.py 中的 HealthcheckWaitStrategy 开始,检查当前如何处理启动超时和 image healthcheck。确定当该策略使用 image 的 HEALTHCHECK 时的预期行为,然后添加测试覆盖,证明配置的 image healthcheck 会得到遵循,并运行相关的测试套件。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, python
- 领域
- devops, testing-qa
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100