Skip to content

Commit 276115d

Browse files
authored
[Mgmt Compute] Sanitize recordings (Azure#23331)
1 parent bfc1e45 commit 276115d

File tree

4 files changed

+720
-716
lines changed

4 files changed

+720
-716
lines changed

sdk/compute/azure-mgmt-compute/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@
2424
#
2525
# --------------------------------------------------------------------------
2626
import os
27-
import re
2827
import platform
2928
import pytest
3029
import sys
3130

3231
from dotenv import load_dotenv
3332

34-
from devtools_testutils import test_proxy, add_general_regex_sanitizer,add_body_regex_sanitizer
33+
from devtools_testutils import test_proxy, add_general_regex_sanitizer, add_body_key_sanitizer
3534

3635
# Ignore async tests for Python < 3.5
3736
collect_ignore_glob = []
@@ -49,3 +48,4 @@ def add_sanitizers(test_proxy):
4948
add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000")
5049
add_general_regex_sanitizer(regex='eyJ0eXAiOiJKV.*?"', value='access_token"')
5150
add_general_regex_sanitizer(regex='fpc=.*?;', value='fpc=fpc;')
51+
add_body_key_sanitizer(json_path="$..accessSAS")

0 commit comments

Comments
 (0)