I am using Tesla, with Httpc and ExVCR in my project. I sign requests with basic authentication. I am trying to setup the VCR recording to filter out the basic authentication.
I wanted to test that my config is working so I could remove it by using a hardcoded authentication value and filter_sensitive_data. That works, but when I use a regular expression to match it fails.
As you can see in the response below this doesn't work. I am testing how my code handles the remote server being down so the failed_connect should not be unrelated. The fact that I can remove, for example, the context-type using filter-sensitive-data tells me its not related to the entire ExVCR setup but to specifically filter_request_headers.
I am using
Tesla
, withHttpc
and ExVCR in my project. I sign requests with basic authentication. I am trying to setup the VCR recording to filter out the basic authentication.I wanted to test that my config is working so I could remove it by using a hardcoded authentication value and
filter_sensitive_data
. That works, but when I use a regular expression to match it fails.This is my config in test.exs:
As you can see in the response below this doesn't work. I am testing how my code handles the remote server being down so the
failed_connect
should not be unrelated. The fact that I can remove, for example, the context-type usingfilter-sensitive-data
tells me its not related to the entire ExVCR setup but to specificallyfilter_request_headers
.Hope someone can shed some light. Thanks!