Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Toxiproxy module #1330

Merged
merged 8 commits into from
Mar 22, 2019
Merged

Add Toxiproxy module #1330

merged 8 commits into from
Mar 22, 2019

Conversation

rnorth
Copy link
Member

@rnorth rnorth commented Mar 20, 2019

Based on https://gist.github.com/rnorth/4c3666d62fa93bf0daa813b282e4ebff, in turn based on hotels.com’s blog post where they show use of Testcontainers with Toxiproxy.

Having seen Toxiproxy and experimented with it, I'm inclined to go with this and suggest that we not move forward with #283 (which is a great PR, but we've unfortunately failed to land after quite a long time). While Pumba may be nice and transparent, there are a lot of moving parts and complexity under the covers, vs Toxiproxy, which is a bit less magical but easier to understand.

In either scenario, it is necessary to create a `ToxiproxyContainer` instance on the same Docker network, as follows:

<!--codeinclude-->
[Creating a Toxiproxy container](../../modules/toxiproxy/src/test/java/org/testcontainers/containers/ToxiproxyTest.java) inside_block:creatingProxy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 😍

Copy link
Member

@bsideup bsideup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@worldtiki
Copy link
Contributor

This is brilliant :)
Thank you so much for this work!

@rnorth rnorth merged commit 41987ef into master Mar 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the toxiproxy branch March 22, 2019 20:25
@rnorth rnorth added this to the next milestone Mar 22, 2019
@rnorth
Copy link
Member Author

rnorth commented Mar 22, 2019

Releasing this in 1.11.0 🎉

@rnorth rnorth mentioned this pull request May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants