What is the new container you'd like to have?
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.
What is the new container you'd like to have?
A
ToxiproxyContainerthat 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
ToxiproxyContainermodule 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.