You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to log the request and response if validation fails, but at the same time I also want to filter out or blacklist one of my response headers. I am setting this configuration in RequestSpecBuilder but it does not blacklist the response header and instead logs the whole response.
I am using PreemptiveBasicAuthScheme to set my username and password, and I do not want the username or password to get logged in response. Currently REST Assured logs the username in response header with key X-AUSERNAME which I am trying to blacklist. Is there a way to filter this from response header when logging only if validation fails?
I would appreciate any help in this regard.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to log the request and response if validation fails, but at the same time I also want to filter out or blacklist one of my response headers. I am setting this configuration in RequestSpecBuilder but it does not blacklist the response header and instead logs the whole response.
Here is how the code looks:
Background:
I am using
PreemptiveBasicAuthScheme
to set my username and password, and I do not want the username or password to get logged in response. Currently REST Assured logs the username in response header with keyX-AUSERNAME
which I am trying to blacklist. Is there a way to filter this from response header when logging only if validation fails?I would appreciate any help in this regard.
The text was updated successfully, but these errors were encountered: