Skip to content

Commit 0a54c44

Browse files
authored
[EventHubs] sanitize api version from avro recordings (Azure#28215)
pipelines are failing when running non-live tests, b/c of strange pip install issues (i.e. installing diff versions of azure-schemaregistry for diff OSes). Scrubbing api-version altogether to avoid failures.
1 parent accd498 commit 0a54c44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sdk/schemaregistry/azure-schemaregistry-avroencoder/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/schemaregistry/azure-schemaregistry-avroencoder",
5-
"Tag": "python/schemaregistry/azure-schemaregistry-avroencoder_b8297fb102"
5+
"Tag": "python/schemaregistry/azure-schemaregistry-avroencoder_5561f5215a"
66
}

sdk/schemaregistry/azure-schemaregistry-avroencoder/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# autouse=True will trigger this fixture on each pytest run, even if it's not explicitly used by a test method
55
@pytest.fixture(scope="session", autouse=True)
66
def add_sanitizers(test_proxy):
7+
add_general_regex_sanitizer(regex="(?<=api-version=)[0-9]{4}-[0-9]{2}", value="xxxx-xx")
78
add_general_regex_sanitizer(regex="(?<=\\/\\/)[a-z-]+(?=\\.servicebus\\.windows\\.net)", value="fake_resource_avro")
89
add_oauth_response_sanitizer()
910

0 commit comments

Comments
 (0)