Skip to content

Commit 0dc8bb3

Browse files
committed
Stabilize content understanding playback URLs
1 parent 5ccfd9b commit 0dc8bb3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • sdk/contentunderstanding/azure-ai-contentunderstanding/tests

sdk/contentunderstanding/azure-ai-contentunderstanding/tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ def add_sanitizers(test_proxy):
111111
value="https://Sanitized.services.ai.azure.com",
112112
regex=r"https://[a-zA-Z0-9\-]+\.services\.ai\.azure\.com",
113113
)
114+
# Keep playback stable when recorded endpoints include a trailing slash.
115+
add_uri_regex_sanitizer(
116+
regex=r"//contentunderstanding",
117+
value="/contentunderstanding",
118+
)
114119

115120
# Sanitize Ocp-Apim-Subscription-Key header (where the API key is sent)
116121
add_header_regex_sanitizer(key="Ocp-Apim-Subscription-Key", value="fake-api-key", regex=".*")

0 commit comments

Comments
 (0)