Repository navigation
New Container: Toxiproxy #1104
Copy link
Copy link
Closed
Description
Activity
- yes, please open a PR!…On Wed, Aug 19, 2026 at 8:44 AM JonnasFigueiredo ***@***.***> wrote: *JonnasFigueiredo* created an issue (testcontainers/testcontainers-python#1104) <#1104> *What is the new container you'd like to have?* A ToxiproxyContainer that wraps Toxiproxy <https://github.com/Shopify/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 <https://testcontainers.com/modules/toxiproxy/>, 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. — Reply to this email directly, view it on GitHub <#1104?email_source=notifications&email_token=ACECGJCQBE5LED3M2MLJ2Y35KWOJDA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJRHEZDOMZUGI2TTJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACECGJEESJ527QTDYLX7KKL5KWOJDAVCNFSNUABEKJSXA33TNF2G64TZHM4DKOBQGI4DCOJ3JFZXG5LFHM2TCOJSG4ZTIMRVHGQXMAQ> . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/ACECGJEVZMK2S3PVEROJZXD5KWOJDA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJRHEZDOMZUGI2TTJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG> and Android <https://github.com/notifications/mobile/android/ACECGJEKBHKYU75HPB6TTS35KWOJDA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJRHEZDOMZUGI2TTJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>. Download it today! You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
JonnasFigueiredo commented
on Aug 19, 2026 ContributorAuthorMore actionsThanks @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 🙂- added a commit that references this issue
on Aug 26, 2026
Metadata
Metadata
Assignees
Labels
No labels
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.