diff --git a/sdk/tables/azure-data-tables/tests/conftest.py b/sdk/tables/azure-data-tables/tests/conftest.py index 8f0123cd1b456..4ef85d1f16a6b 100644 --- a/sdk/tables/azure-data-tables/tests/conftest.py +++ b/sdk/tables/azure-data-tables/tests/conftest.py @@ -42,8 +42,8 @@ def add_sanitizers(test_proxy): regex="(?<=\\/\\/)[a-z]+(?=(?:|-secondary)\\.(?:table|blob|queue)\\.(?:cosmos|core)\\." "(?:azure|windows)\\.(?:com|net))", ) - # add_general_regex_sanitizer( - # value="00000000-0000-0000-0000-000000000000", - # regex="batch[a-z]*_([0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b)", - # group_for_replace="1", - # ) + add_general_regex_sanitizer( + value="00000000-0000-0000-0000-000000000000", + regex="batch[a-z]*_([0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b)", + group_for_replace="1", + ) diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_append.json b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_append.json index 34f6963216bf0..36bc2a03dcf73 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_append.json +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_append.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://mcpatinotestprim.table.cosmos.azure.com/Tables", + "RequestUri": "https://fakeendpoint.table.cosmos.azure.com/Tables", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json;odata=minimalmetadata", @@ -9,23 +9,23 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "DataServiceVersion": "3.0", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:17 GMT", "User-Agent": "customer_user_agent", - "x-ms-client-request-id": "e6f2c4b8-428c-11ec-a746-c8348e51ab51", - "x-ms-date": "Thu, 11 Nov 2021 01:15:47 GMT", + "x-ms-client-request-id": "fd707753-481f-11ec-b8cd-c8348e51ab51", + "x-ms-date": "Thu, 18 Nov 2021 03:31:17 GMT", "x-ms-version": "2019-02-02" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:16 GMT", "Transfer-Encoding": "chunked", - "x-ms-request-id": "cd6d1461-8f0a-4010-855f-9b942037a71a" + "x-ms-request-id": "529fc8eb-cd51-4543-b430-48c50b969dc5" }, "ResponseBody": { "value": [], - "odata.metadata": "https://mcpatinotestprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://fakeendpoint.table.cosmos.azure.com/$metadata#Tables" } } ], diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_custom.json b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_custom.json index 8d8ee00c84a56..13b1cf0d5d60d 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_custom.json +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_custom.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://mcpatinotestprim.table.cosmos.azure.com/Tables", + "RequestUri": "https://fakeendpoint.table.cosmos.azure.com/Tables", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json;odata=minimalmetadata", @@ -9,27 +9,27 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "DataServiceVersion": "3.0", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:17 GMT", "User-Agent": "TestApp/v1.0 azsdk-python-data-tables/12.2.0 Python/3.10.0 (Windows-10-10.0.22000-SP0)", - "x-ms-client-request-id": "e6d2161a-428c-11ec-b5d0-c8348e51ab51", - "x-ms-date": "Thu, 11 Nov 2021 01:15:47 GMT", + "x-ms-client-request-id": "fd3f71e5-481f-11ec-bcf0-c8348e51ab51", + "x-ms-date": "Thu, 18 Nov 2021 03:31:17 GMT", "x-ms-version": "2019-02-02" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:16 GMT", "Transfer-Encoding": "chunked", - "x-ms-request-id": "2da2b919-08ee-41a6-8fdd-7cb01cb741a6" + "x-ms-request-id": "4f21b5c1-5e15-4a3c-a49f-71150531fff3" }, "ResponseBody": { "value": [], - "odata.metadata": "https://mcpatinotestprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://fakeendpoint.table.cosmos.azure.com/$metadata#Tables" } }, { - "RequestUri": "https://mcpatinotestprim.table.cosmos.azure.com/Tables", + "RequestUri": "https://fakeendpoint.table.cosmos.azure.com/Tables", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json;odata=minimalmetadata", @@ -37,23 +37,23 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "DataServiceVersion": "3.0", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:17 GMT", "User-Agent": "TestApp/v2.0 TestApp/v1.0 azsdk-python-data-tables/12.2.0 Python/3.10.0 (Windows-10-10.0.22000-SP0)", - "x-ms-client-request-id": "e6daa96e-428c-11ec-ae19-c8348e51ab51", - "x-ms-date": "Thu, 11 Nov 2021 01:15:47 GMT", + "x-ms-client-request-id": "fd50ad39-481f-11ec-b148-c8348e51ab51", + "x-ms-date": "Thu, 18 Nov 2021 03:31:17 GMT", "x-ms-version": "2019-02-02" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:16 GMT", "Transfer-Encoding": "chunked", - "x-ms-request-id": "7ac526af-b161-4e7b-80ba-ed406828184e" + "x-ms-request-id": "10a3adec-534f-4094-acf4-bff8c24ab448" }, "ResponseBody": { "value": [], - "odata.metadata": "https://mcpatinotestprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://fakeendpoint.table.cosmos.azure.com/$metadata#Tables" } } ], diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_default.json b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_default.json index 674dfae308a59..2d7a934eb8cab 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_default.json +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos.pyTestTableClientCosmostest_user_agent_default.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://mcpatinotestprim.table.cosmos.azure.com/Tables", + "RequestUri": "https://fakeendpoint.table.cosmos.azure.com/Tables", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json;odata=minimalmetadata", @@ -9,23 +9,23 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "DataServiceVersion": "3.0", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:16 GMT", "User-Agent": "azsdk-python-data-tables/12.2.0 Python/3.10.0 (Windows-10-10.0.22000-SP0)", - "x-ms-client-request-id": "e6bb9ab0-428c-11ec-8bad-c8348e51ab51", - "x-ms-date": "Thu, 11 Nov 2021 01:15:47 GMT", + "x-ms-client-request-id": "fccbd92e-481f-11ec-b544-c8348e51ab51", + "x-ms-date": "Thu, 18 Nov 2021 03:31:16 GMT", "x-ms-version": "2019-02-02" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Thu, 11 Nov 2021 01:15:47 GMT", + "Date": "Thu, 18 Nov 2021 03:31:15 GMT", "Transfer-Encoding": "chunked", - "x-ms-request-id": "db3b9ada-0fac-401b-b329-04e7c4504e55" + "x-ms-request-id": "c9a9b79c-19d9-461d-a3d4-fdf94136430e" }, "ResponseBody": { "value": [], - "odata.metadata": "https://mcpatinotestprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://fakeendpoint.table.cosmos.azure.com/$metadata#Tables" } } ], diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_append.json b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_append.json index 2c68bc7984844..3723b4a01bff1 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_append.json +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_append.json @@ -1,30 +1,30 @@ { "Entries": [ { - "RequestUri": "https://mcpatinotestprim.table.cosmos.azure.com/Tables", + "RequestUri": "https://fakeendpoint.table.cosmos.azure.com/Tables", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json;odata=minimalmetadata", "Accept-Encoding": "gzip, deflate", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "Date": "Thu, 11 Nov 2021 01:15:48 GMT", + "Date": "Thu, 18 Nov 2021 03:32:00 GMT", "User-Agent": "customer_user_agent", - "x-ms-client-request-id": "e744a38e-428c-11ec-b7c8-c8348e51ab51", - "x-ms-date": "Thu, 11 Nov 2021 01:15:48 GMT", + "x-ms-client-request-id": "17359bfc-4820-11ec-b5ad-c8348e51ab51", + "x-ms-date": "Thu, 18 Nov 2021 03:32:00 GMT", "x-ms-version": "2019-02-02" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Thu, 11 Nov 2021 01:15:48 GMT", + "Date": "Thu, 18 Nov 2021 03:31:59 GMT", "Transfer-Encoding": "chunked", - "x-ms-request-id": "adb420c5-44b2-48ee-9fc4-afde54600ae4" + "x-ms-request-id": "70f00cf7-6f64-4050-a09e-d5ce4e325b7d" }, "ResponseBody": { "value": [], - "odata.metadata": "https://mcpatinotestprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://fakeendpoint.table.cosmos.azure.com/$metadata#Tables" } } ], diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_custom_async.json b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_custom_async.json index 62cc338e9d9e0..d4dc180377729 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_custom_async.json +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_custom_async.json @@ -1,30 +1,30 @@ { "Entries": [ { - "RequestUri": "https://mcpatinotestprim.table.cosmos.azure.com/Tables", + "RequestUri": "https://fakeendpoint.table.cosmos.azure.com/Tables", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json;odata=minimalmetadata", "Accept-Encoding": "gzip, deflate", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "Date": "Thu, 11 Nov 2021 01:15:48 GMT", + "Date": "Thu, 18 Nov 2021 03:32:00 GMT", "User-Agent": "TestApp/v1.0 azsdk-python-data-tables/12.2.0 Python/3.10.0 (Windows-10-10.0.22000-SP0)", - "x-ms-client-request-id": "e7281398-428c-11ec-b333-c8348e51ab51", - "x-ms-date": "Thu, 11 Nov 2021 01:15:48 GMT", + "x-ms-client-request-id": "171c100b-4820-11ec-8ebe-c8348e51ab51", + "x-ms-date": "Thu, 18 Nov 2021 03:32:00 GMT", "x-ms-version": "2019-02-02" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Thu, 11 Nov 2021 01:15:48 GMT", + "Date": "Thu, 18 Nov 2021 03:31:59 GMT", "Transfer-Encoding": "chunked", - "x-ms-request-id": "ca9e81bd-4e89-443c-961f-f4f4e7ccb511" + "x-ms-request-id": "98e6400e-6b1e-4cfd-af3a-0ec741961ad1" }, "ResponseBody": { "value": [], - "odata.metadata": "https://mcpatinotestprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://fakeendpoint.table.cosmos.azure.com/$metadata#Tables" } } ], diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_default_async.json b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_default_async.json index 4fa693f69b222..3f5cc4867148d 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_default_async.json +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_client_cosmos_async.pyTestTableClientCosmosAsynctest_user_agent_default_async.json @@ -1,30 +1,30 @@ { "Entries": [ { - "RequestUri": "https://mcpatinotestprim.table.cosmos.azure.com/Tables", + "RequestUri": "https://fakeendpoint.table.cosmos.azure.com/Tables", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json;odata=minimalmetadata", "Accept-Encoding": "gzip, deflate", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "Date": "Thu, 11 Nov 2021 01:15:48 GMT", + "Date": "Thu, 18 Nov 2021 03:31:59 GMT", "User-Agent": "azsdk-python-data-tables/12.2.0 Python/3.10.0 (Windows-10-10.0.22000-SP0)", - "x-ms-client-request-id": "e712e976-428c-11ec-b4ff-c8348e51ab51", - "x-ms-date": "Thu, 11 Nov 2021 01:15:48 GMT", + "x-ms-client-request-id": "16c36e97-4820-11ec-84f5-c8348e51ab51", + "x-ms-date": "Thu, 18 Nov 2021 03:31:59 GMT", "x-ms-version": "2019-02-02" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Thu, 11 Nov 2021 01:15:48 GMT", + "Date": "Thu, 18 Nov 2021 03:31:58 GMT", "Transfer-Encoding": "chunked", - "x-ms-request-id": "f594a360-1bf9-42aa-852a-f24e10efaab0" + "x-ms-request-id": "a72a88a5-01f5-4c0a-ae56-41de170f2fd1" }, "ResponseBody": { "value": [], - "odata.metadata": "https://mcpatinotestprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://fakeendpoint.table.cosmos.azure.com/$metadata#Tables" } } ],