Skip to content

Commit 5d96949

Browse files
Add BodyKeySanitizers (Azure#27832)
1 parent c3a1fed commit 5d96949

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk/core/Azure.Core.TestFramework/src/TestRecording.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ await _proxy.Client.AddUriSanitizerAsync(
135135
await _proxy.Client.AddBodyKeySanitizerAsync(new BodyKeySanitizer(Sanitized) { JsonPath = path }, RecordingId);
136136
}
137137

138+
foreach (BodyKeySanitizer sanitizer in _recordedTestBase.BodyKeySanitizers)
139+
{
140+
await _proxy.Client.AddBodyKeySanitizerAsync(sanitizer, RecordingId);
141+
}
142+
138143
foreach (BodyRegexSanitizer sanitizer in _recordedTestBase.BodyRegexSanitizers)
139144
{
140145
await _proxy.Client.AddBodyRegexSanitizerAsync(sanitizer, RecordingId);

0 commit comments

Comments
 (0)