Guids and DateTimes not being scrubbed #596
-
Hi, Thanks for this project, I just started trying it out as I love the idea of it. Any idea what I'm doing wrong here? One object is scrubbed of Dates and Guids, the other is not. await Verify(new {_response, _createdNode}); gives the following '*.received.text'
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
try https://github.com/VerifyTests/Verify/blob/main/docs/serializer-settings.md#snippet-scrubinlineguids and use verifyhttp for better header scrubbing https://github.com/VerifyTests/Verify.Http#enable |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. This has helped with the GUIDs (i.e. all GUIDs contained in strings are scrubbed) but it has not scrubbed the DateTimes. I now get the following. I.e. the DateTime in the Date header is still present and there is also a DateTime in the HttpResponse content property. I had removed this previously to make my post more readable but I have included it here, truncated. I suppose it depends on what the scrubbers recognise as a DateTime, as my values below are in two different formats. Perhaps I need to create custom scrubbers for this but the example video I watched at least seemed to scrub the Date header in a http response. Thanks in advance for any help.
|
Beta Was this translation helpful? Give feedback.
-
hi, Yes, the |
Beta Was this translation helpful? Give feedback.
try https://github.com/VerifyTests/Verify/blob/main/docs/serializer-settings.md#snippet-scrubinlineguids and use verifyhttp for better header scrubbing https://github.com/VerifyTests/Verify.Http#enable