You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A ToxiproxyContainer that wraps Toxiproxy, the TCP proxy for simulating adverse network conditions (latency, bandwidth limits, connection drops, ...). This lets tests verify how an application behaves when its dependencies misbehave.
Why not just use a generic container for this?
Toxiproxy needs its own helpers to be usable: exposing the HTTP control API and a range of proxy ports, creating proxies in front of an upstream, and adding toxics via the control API. A ToxiproxyContainer module already exists for testcontainers Java, Go and .NET, but not yet for Python.
I have a working implementation (no extra runtime dependencies, control API called over urllib) with an integration test, docs and example, and would like to contribute it.
Thanks @alexanderankin! Already opened as #1105 — it adds a ToxiproxyContainer module (control API + proxy port range, create_proxy/add_toxic helpers) with an integration test, docs and an example, and no extra runtime dependencies. Happy to adjust anything in review 🙂
Activity
alexanderankin commentedon Aug 19, 2026
JonnasFigueiredo commentedon Aug 19, 2026
Thanks @alexanderankin! Already opened as #1105 — it adds a
ToxiproxyContainermodule (control API + proxy port range,create_proxy/add_toxichelpers) with an integration test, docs and an example, and no extra runtime dependencies. Happy to adjust anything in review 🙂fix(toxiproxy): add Toxiproxy container module (testcontainers#1105)