Open wli0503 opened 7 years ago
Thanks for the feedback and suggestions. Is it possible to show the actual response from server (or recorded cassette file)? I'm wondering which part is actually causing the not-found error. It might be one way to add bypass type of option, but not sure enough yet. I think there're some other options to ignore certain part of attributes in the request.
Hi @parroty - I've discovered a need for this functionality today. Is this planned/not going to happen/needs help and is open for PRs?
When using
HTTPoison
with :hackney, I got the error ofresponse for [URL:#{params[:url]}, METHOD:#{params[:method]}] was not found
. The requests are not the same one as recorded in the cassettes so I guess that's the reason it's not working as expected.So I propose when using ExVCR mockups, we have a switch as
bypass
. Just likecustom
, when set to true, it will ignore all the requests that are not specified in the recorded cassettes. Here's an example:By combining the
custom
switch and thebypass
switch, we now have the request to be passed directly to the server instead of using a pre-recorded one.See PR #97 for details. Let me know if you have any question or concern regarding to it. Any discussion is welcome.