Add Toxiproxy fault testing - #411
Draft
ruslandoga wants to merge 2 commits into
Draft
Conversation
ruslandoga
force-pushed
the
rd/add-toxiproxy-kinesis-client
branch
from
August 9, 2026 15:11
e8bbbb2 to
52f0645
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ch.Testsupport moduleWhy
The existing low-level fault tests precisely exercise individual HTTP failure paths. This adds complementary end-to-end coverage through a real network proxy, including repeated outages on the same client connection.
Test behavior
Toxiproxy is only contacted by the Toxiproxy fault test. Unrelated test files can still run with ClickHouse alone. To run the complete suite:
docker compose up -dValidation
CH_DATABASE=ch_bishkek_toxiproxy_test MIX_ENV=test mix test --include slow— 626 passed, 10 skippedCH_DATABASE=ch_bishkek_toxiproxy_test MIX_ENV=test mix test test/ch/faults_test.exs— 28 passedMIX_ENV=test mix test test/ch/types_test.exswith Toxiproxy stopped — 171 passedMIX_ENV=test mix compile --warnings-as-errorsMIX_ENV=test mix formatgit diff --check