Skip to content

Commit

Permalink
Fix sanitizer issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chung Sheng Fu authored and Chung Sheng Fu committed May 22, 2024
1 parent 389b01d commit 3354597
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ const envSetupForPlayback: Record<string, string> = {

const recorderEnvSetup: RecorderStartOptions = {
envSetupForPlayback,
// Ref: https://github.com/Azure/azure-sdk-tools/blob/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs
removeCentralSanitizers: [
"AZSDK2030", // HeaderRegexSanitizer("operation-location", value: "https://example.com")
"AZSDK3430", // BodyKeySanitizer("$..id")
"AZSDK3496", // BodyKeySanitizer("$..resourceLocation")
],
};

/**
Expand Down

0 comments on commit 3354597

Please sign in to comment.