test(docker): host-wide log search includes the removed container's line
CI / lint (push) Successful in 3s
CI / integration (push) Successful in 49s
CI / unit (push) Successful in 1m5s
CI / publish (push) Successful in 1m23s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-06 10:27:34 -04:00
co-authored by Claude Opus 5.5
parent f72ed97034
commit 30cb375079
+2 -1
View File
@@ -199,7 +199,8 @@ def test_docker_and_agent_tools_over_seeded_rows(app):
page2 = await dtools.search_container_logs(container=web, limit=2, before=page1["next_before"])
assert [m["line"] for m in page2["matches"]] == ["ERROR: 100% of disk_used", "connected to db"]
errs = await dtools.search_container_logs(host=host_name, stream="stderr")
assert [m["container_name"] for m in errs["matches"]] == [web]
# Host-wide search reaches a removed container's lines too.
assert [m["container_name"] for m in errs["matches"]] == [web, removed]
with pytest.raises(ValueError, match="context needs `container`"):
await dtools.search_container_logs(text="x", context=2)