GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — fix(elasticsearch): Use wait strategy instead of deprecated decorator by artem-ilin · Pull Request #915 · testcontainers/testcontainers-python Conversation
Contributor
Part of fixing #874. Decided to remove
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
artem-ilin
force-pushed
the
elasticsearch-wait-strategy
branch
from
afd19bc to
3fe0eb8
Compare
artem-ilin
force-pushed
the
elasticsearch-wait-strategy
branch
from
3fe0eb8 to
2d39872
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
alexanderankin
approved these changes
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #915 +/- ## ========================================== - Coverage 78.18% 77.93% -0.25% ========================================== Files 14 14 Lines 1210 1210 Branches 187 187 ========================================== - Hits 946 943 -3 - Misses 222 226 +4 + Partials 42 41 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@alexanderankin Huge thanks! Tests seem to pass. The codecov and docs/build jobs fail in the main branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🤖 I have created a release *beep* *boop* --- ## [4.14.0](testcontainers-v4.13.3...testcontainers-v4.14.0) (2026-01-07) ### Features * Add ExecWaitStrategy and migrate Postgres from deprecated decorator ([#935](#935)) ([2d9eee3](2d9eee3)) ### Bug Fixes * add ruff to deps ([#919](#919)) ([5853d32](5853d32)) * **cassandra,mysqk,kafka:** Use wait strategy instead of deprecated wait_for_logs ([#945](#945)) ([b7791b9](b7791b9)) * **core:** recreate poetry lockfile with latest versions of libraries ([#946](#946)) ([9a97385](9a97385)) * **elasticsearch:** Use wait strategy instead of deprecated decorator ([#915](#915)) ([c785ecd](c785ecd)) * **minio:** minio client requires kwargs now ([#933](#933)) ([37f5902](37f5902)) * **minio:** Use wait strategy instead of deprecated decorator ([#899](#899)) ([febccb7](febccb7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Is there a specfic reason why the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
i would probably say that this is because it is not specific to this subclass of Container, but that is not great, we can bring that back. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@maspetsberger I apologize for the inconvenience. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No worries Artem, I got it sorted on my end - after all it is not that complex of a function. If you can put it in the backlog to bring it back, that would be appreciated. Thanks for responding so quickly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…943) # fix(mongodb): Use wait strategy instead of deprecated wait_for_logs ## Summary Replace the deprecated `wait_for_logs` function with `LogMessageWaitStrategy` in the MongoDB container module. This is part of a fix for #874 and similar to: - #899 (MinIO - merged) - #915 (Elasticsearch - merged) - #935 (Postgres - merged) - #903 (Kafka/Redpanda - open) - #914 (Redis - open) - #941 (Redis - open) ## Changes - Import `LogMessageWaitStrategy` instead of `wait_for_logs` - Pass `_wait_strategy=LogMessageWaitStrategy(...)` to parent constructor - Override `_connect()` with empty implementation (DbContainer's base implementation uses SQLAlchemy which doesn't apply to MongoDB) ## Testing All existing MongoDB tests pass: ``` poetry run pytest modules/mongodb/tests/ -v ======================== 4 passed in 16.26s ======================== ``` No deprecation warnings from testcontainers after this change. Co-authored-by: David Ankin <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.