mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Support for Faults #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MiguelAlho on GitHub (Mar 5, 2018).
Originally assigned to: @StefH on GitHub.
Are there any plans for implementing the support for faulty responses, as in http://wiremock.org/docs/simulating-faults/ ?
@StefH commented on GitHub (Mar 5, 2018):
Can you explain which part of the faults functionality you would like to see in this project ?
@MiguelAlho commented on GitHub (Mar 5, 2018):
EMPTY_RESPONSE and MALFORMED_RESPONSE_CHUNK (at the end of the page) are currently interesting to me to create integratoon tests that verify a retry cycle. CONNECTION_RESET_BY_PEER also but that doesn't seem to be supported.
I'm also trying to figure out how to simulate a timeout...
@StefH commented on GitHub (Mar 5, 2018):
@MiguelAlho commented on GitHub (Mar 5, 2018):
I've been trying delay (response an extra second more then the amount of time i have for HttpClient timeout), but my instance o HttpClient seems to be receiving a 504 response than actually throwing the exception it's known to throw. I might need o up on the time on the delay to account for other factors.
@StefH commented on GitHub (Mar 15, 2018):
@MiguelAlho commented on GitHub (May 7, 2018):
(sorry for the delayed response). Yes, those seem to help. In the timeout case, I have figured out the problem to my approach, and fixed the setup. The delay setup on the mock server works correctly and is suficiente.