Skip to content

New Container: Toxiproxy #1104

Description

@JonnasFigueiredo

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.

Activity

  1. alexanderankin commented on Aug 19, 2026

    @alexanderankin
    Member
  2. JonnasFigueiredo commented on Aug 19, 2026

    @JonnasFigueiredo
    ContributorAuthor

    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 🙂

  3. added a commit that references this issue on Aug 26, 2026
    16ba92e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions