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

Simulate fault #149

Open
Sytten opened this issue Oct 22, 2024 · 2 comments
Open

Simulate fault #149

Sytten opened this issue Oct 22, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Sytten
Copy link

Sytten commented Oct 22, 2024

It would be very useful to be able simulate faults to test how the program reacts to them.

@LukeMathWalker
Copy link
Owner

What kind of faults?

@Sytten
Copy link
Author

Sytten commented Oct 22, 2024

Sorry for the lack of details. I meant to come back and fill the details.

The base and most useful case is simulating a network failure/disconnect (usually an EOF) mid transmission. That happens often to regular users so it interesting to test. This can also be used to simulate an offline mode.

It would also be nice to be able to control the frames that sent (like in chunked encoding) to introduce delays between chunks and also failures after a number of chunks.

See the Java implementation: https://wiremock.org/docs/simulating-faults/#bad-responses

@LukeMathWalker LukeMathWalker added enhancement New feature or request help wanted Extra attention is needed labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants