From 5b06b6e74112db1d8b5c04e19472ca92bf6a0ff4 Mon Sep 17 00:00:00 2001 From: Sean Kane <68240067+seankane-msft@users.noreply.github.com> Date: Wed, 3 Mar 2021 12:12:40 -0500 Subject: [PATCH] [Tables] Add SAS to tables (#16717) #16610 --- sdk/tables/azure-data-tables/CHANGELOG.md | 2 +- .../azure/data/tables/_base_client.py | 7 + .../azure/data/tables/_deserialize.py | 2 +- .../data/tables/_shared_access_signature.py | 6 +- .../data/tables/aio/_base_client_async.py | 4 + .../test_table.test_account_sas.yaml | 48 ++-- .../test_table_entity.test_sas_add.yaml | 190 -------------- ...able_entity.test_sas_add_inside_range.yaml | 190 -------------- ...ble_entity.test_sas_add_outside_range.yaml | 143 ----------- .../test_table_entity.test_sas_delete.yaml | 233 ----------------- .../test_table_entity.test_sas_query.yaml | 188 -------------- ...ble_entity.test_sas_signed_identifier.yaml | 227 ---------------- .../test_table_entity.test_sas_update.yaml | 242 ------------------ ...entity.test_sas_upper_case_table_name.yaml | 188 -------------- .../test_table_entity_async.test_sas_add.yaml | 145 ----------- ...ntity_async.test_sas_add_inside_range.yaml | 145 ----------- ...tity_async.test_sas_add_outside_range.yaml | 111 -------- ...st_table_entity_async.test_sas_delete.yaml | 178 ------------- ...est_table_entity_async.test_sas_query.yaml | 144 ----------- ...tity_async.test_sas_signed_identifier.yaml | 177 ------------- ...st_table_entity_async.test_sas_update.yaml | 187 -------------- ..._async.test_sas_upper_case_table_name.yaml | 144 ----------- .../azure-data-tables/tests/test_table.py | 4 +- .../tests/test_table_async.py | 1 + .../tests/test_table_cosmos.py | 3 +- .../tests/test_table_cosmos_async.py | 1 + .../tests/test_table_entity.py | 5 +- .../tests/test_table_entity_async.py | 3 +- .../tests/test_table_entity_cosmos.py | 45 +--- .../tests/test_table_entity_cosmos_async.py | 47 +--- 30 files changed, 54 insertions(+), 2956 deletions(-) delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_inside_range.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_outside_range.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_delete.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_query.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_signed_identifier.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_update.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_upper_case_table_name.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_inside_range.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_outside_range.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_delete.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_query.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_signed_identifier.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_update.yaml delete mode 100644 sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_upper_case_table_name.yaml diff --git a/sdk/tables/azure-data-tables/CHANGELOG.md b/sdk/tables/azure-data-tables/CHANGELOG.md index 217ae52c87a6..f639a7fd4b92 100644 --- a/sdk/tables/azure-data-tables/CHANGELOG.md +++ b/sdk/tables/azure-data-tables/CHANGELOG.md @@ -1,7 +1,7 @@ # Release History ## 12.0.0b5 (Unreleased) - +* Adds SAS credential as an authentication option * Bumped minimum requirement of msrest from `0.6.10` to `0.6.19`. * Added support for datetime entities with milliseconds diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py b/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py index e497dad2fe85..ba3c9cea5b22 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py @@ -18,6 +18,7 @@ from urllib2 import quote # type: ignore from azure.core.configuration import Configuration +from azure.core.credentials import AzureSasCredential from azure.core.exceptions import ClientAuthenticationError, ResourceNotFoundError from azure.core.pipeline import Pipeline from azure.core.pipeline.transport import ( @@ -32,6 +33,7 @@ DistributedTracingPolicy, HttpLoggingPolicy, UserAgentPolicy, + AzureSasCredentialPolicy ) from ._common_conversion import _to_utc_datetime @@ -245,6 +247,9 @@ def _format_query_string( query_str += "snapshot={}&".format(self.snapshot) if share_snapshot: query_str += "sharesnapshot={}&".format(self.snapshot) + if sas_token and isinstance(credential, AzureSasCredential): + raise ValueError( + "You cannot use AzureSasCredential when the resource URI also contains a Shared Access Signature.") if sas_token and not credential: query_str += sas_token elif is_credential_sastoken(credential): @@ -261,6 +266,8 @@ def _configure_credential(self, credential): ) elif isinstance(credential, SharedKeyCredentialPolicy): self._credential_policy = credential + elif isinstance(credential, AzureSasCredential): + self._credential_policy = AzureSasCredentialPolicy(credential) elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_deserialize.py b/sdk/tables/azure-data-tables/azure/data/tables/_deserialize.py index ad0c107d7a39..39987baf89ec 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_deserialize.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_deserialize.py @@ -37,7 +37,7 @@ List, Type, Tuple, -) + ) def url_quote(url): diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_shared_access_signature.py b/sdk/tables/azure-data-tables/azure/data/tables/_shared_access_signature.py index efab141cbc3f..55e0f3a41075 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_shared_access_signature.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_shared_access_signature.py @@ -11,11 +11,15 @@ from ._common_conversion import ( _sign_string, _to_str, - _to_utc_datetime, ) from ._constants import DEFAULT_X_MS_VERSION +def _to_utc_datetime(value): + # This is for SAS where milliseconds are not supported + return value.strftime("%Y-%m-%dT%H:%M:%SZ") + + class SharedAccessSignature(object): """ Provides a factory for creating account access diff --git a/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py b/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py index e9594190abb6..5a8f90f365de 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py @@ -18,6 +18,7 @@ import logging from uuid import uuid4 +from azure.core.credentials import AzureSasCredential from azure.core.exceptions import ResourceNotFoundError, ClientAuthenticationError from azure.core.pipeline.policies import ( ContentDecodePolicy, @@ -27,6 +28,7 @@ HttpLoggingPolicy, UserAgentPolicy, ProxyPolicy, + AzureSasCredentialPolicy ) from azure.core.pipeline.transport import ( AsyncHttpTransport, @@ -86,6 +88,8 @@ def _configure_credential(self, credential): ) elif isinstance(credential, SharedKeyCredentialPolicy): self._credential_policy = credential + elif isinstance(credential, AzureSasCredential): + self._credential_policy = AzureSasCredentialPolicy(credential) elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table.test_account_sas.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table.test_account_sas.yaml index 58a5f4e0315d..72be35a2a90b 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table.test_account_sas.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table.test_account_sas.yaml @@ -15,11 +15,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:28:36 GMT + - Thu, 11 Feb 2021 20:51:40 GMT User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 18 Dec 2020 17:28:36 GMT + - Thu, 11 Feb 2021 20:51:40 GMT x-ms-version: - '2019-02-02' method: POST @@ -33,7 +33,7 @@ interactions: content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:51:46 GMT location: - https://fake_table_account.table.core.windows.net/Tables('pytablesync99dc0b08') server: @@ -65,11 +65,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:51:47 GMT User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:51:47 GMT x-ms-version: - '2019-02-02' method: PATCH @@ -83,9 +83,9 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:51:46 GMT etag: - - W/"datetime'2020-12-18T17%3A28%3A37.7170314Z'" + - W/"datetime'2021-02-11T20%3A51%3A47.3343151Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: @@ -113,11 +113,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:51:47 GMT User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:51:47 GMT x-ms-version: - '2019-02-02' method: PATCH @@ -131,9 +131,9 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:51:47 GMT etag: - - W/"datetime'2020-12-18T17%3A28%3A37.8581334Z'" + - W/"datetime'2021-02-11T20%3A51%3A47.4674095Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: @@ -155,25 +155,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:52:42 GMT User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:52:42 GMT x-ms-version: - '2019-02-02' method: GET - uri: https://fake_table_account.table.core.windows.net/pytablesync99dc0b08()?st=2020-12-18T17%3A27%3A37Z&se=2020-12-18T18%3A28%3A37Z&sp=r&sv=2019-02-02&ss=t&srt=o&sig=549isvlvwOzIBJDkCaGWoDm91RaODe%2FdgTtIB55df28%3D + uri: https://fake_table_account.table.core.windows.net/pytablesync99dc0b08()?st=2021-02-11T20%3A50%3A47Z&se=2021-02-11T21%3A51%3A47Z&sp=r&sv=2019-02-02&ss=t&srt=o&sig=J3HV5BKdOK0BuEAQ9BIlFe1EjIIA8gveOkl2WzsvfhY%3D response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#pytablesync99dc0b08","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A28%3A37.7170314Z''\"","PartitionKey":"test","RowKey":"test1","Timestamp":"2020-12-18T17:28:37.7170314Z","text":"hello"},{"odata.etag":"W/\"datetime''2020-12-18T17%3A28%3A37.8581334Z''\"","PartitionKey":"test","RowKey":"test2","Timestamp":"2020-12-18T17:28:37.8581334Z","text":"hello"}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#pytablesync99dc0b08","value":[{"odata.etag":"W/\"datetime''2021-02-11T20%3A51%3A47.3343151Z''\"","PartitionKey":"test","RowKey":"test1","Timestamp":"2021-02-11T20:51:47.3343151Z","text":"hello"},{"odata.etag":"W/\"datetime''2021-02-11T20%3A51%3A47.4674095Z''\"","PartitionKey":"test","RowKey":"test2","Timestamp":"2021-02-11T20:51:47.4674095Z","text":"hello"}]}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:28:37 GMT + - Thu, 11 Feb 2021 20:52:42 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -197,11 +197,11 @@ interactions: Content-Length: - '0' Date: - - Fri, 18 Dec 2020 17:28:38 GMT + - Thu, 11 Feb 2021 20:52:43 GMT User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 18 Dec 2020 17:28:38 GMT + - Thu, 11 Feb 2021 20:52:43 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -215,7 +215,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 17:28:38 GMT + - Thu, 11 Feb 2021 20:52:43 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add.yaml deleted file mode 100644 index ce5535938c71..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add.yaml +++ /dev/null @@ -1,190 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttablebfd90c40"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:44 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:44 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablebfd90c40"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:44 GMT - location: - - https://fake_table_account.table.core.windows.net/Tables('uttablebfd90c40') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pkbfd90c40", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rkbfd90c40", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:45 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:45 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttablebfd90c40?st=2020-12-18T17%3A08%3A45Z&se=2020-12-18T18%3A09%3A45Z&sp=a&sv=2019-02-02&tn=uttablebfd90c40&sig=wPFt5qJQF0Aratb%2F5Uew58V%2FoEZ9%2BfvD0b0fKAGW7Wk%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablebfd90c40/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A46.0434803Z''\"","PartitionKey":"pkbfd90c40","RowKey":"rkbfd90c40","Timestamp":"2020-12-18T17:09:46.0434803Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:45 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A46.0434803Z'" - location: - - https://fake_table_account.table.core.windows.net/uttablebfd90c40(PartitionKey='pkbfd90c40',RowKey='rkbfd90c40') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:45 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:45 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttablebfd90c40(PartitionKey='pkbfd90c40',RowKey='rkbfd90c40') - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablebfd90c40/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A46.0434803Z''\"","PartitionKey":"pkbfd90c40","RowKey":"rkbfd90c40","Timestamp":"2020-12-18T17:09:46.0434803Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:45 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A46.0434803Z'" - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Fri, 18 Dec 2020 17:09:45 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:45 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttablebfd90c40') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:45 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_inside_range.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_inside_range.yaml deleted file mode 100644 index 550c1f2ae3b2..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_inside_range.yaml +++ /dev/null @@ -1,190 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable84281187"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:46 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:46 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable84281187"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:46 GMT - location: - - https://fake_table_account.table.core.windows.net/Tables('uttable84281187') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "test", "PartitionKey@odata.type": "Edm.String", "RowKey": - "test1", "RowKey@odata.type": "Edm.String", "age": 39, "sex": "male", "sex@odata.type": - "Edm.String", "married": true, "deceased": false, "ratio": 3.1, "evenratio": - 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", "Birthday@odata.type": - "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": "Edm.DateTime", - "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": 20, "clsid": - "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '566' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:46 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:46 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttable84281187?se=2020-12-18T18%3A09%3A46Z&sp=a&sv=2019-02-02&tn=uttable84281187&spk=test&srk=test1&epk=test&erk=test1&sig=D0e0jMToTEbjdfq06jtQjLZwwglgKKVz1gw8rT233sY%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable84281187/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A47.3453566Z''\"","PartitionKey":"test","RowKey":"test1","Timestamp":"2020-12-18T17:09:47.3453566Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:46 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A47.3453566Z'" - location: - - https://fake_table_account.table.core.windows.net/uttable84281187(PartitionKey='test',RowKey='test1') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:47 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:47 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttable84281187(PartitionKey='test',RowKey='test1') - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable84281187/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A47.3453566Z''\"","PartitionKey":"test","RowKey":"test1","Timestamp":"2020-12-18T17:09:47.3453566Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:47 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A47.3453566Z'" - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Fri, 18 Dec 2020 17:09:47 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:47 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttable84281187') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:47 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_outside_range.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_outside_range.yaml deleted file mode 100644 index 5f49108cd1f0..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_add_outside_range.yaml +++ /dev/null @@ -1,143 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable973c1208"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:47 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:47 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable973c1208"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:47 GMT - location: - - https://fake_table_account.table.core.windows.net/Tables('uttable973c1208') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pk973c1208", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk973c1208", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:47 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:47 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttable973c1208?se=2020-12-18T18%3A09%3A47Z&sp=a&sv=2019-02-02&tn=uttable973c1208&spk=test&srk=test1&epk=test&erk=test1&sig=oqnItw01gS5hXE18IBK2wiPaXFSRsX6h4dwSRnTxFe8%3D - response: - body: - string: '{"odata.error":{"code":"AuthorizationFailure","message":{"lang":"en-US","value":"This - request is not authorized to perform this operation.\nRequestId:82d25fce-c002-003c-6d60-d58ade000000\nTime:2020-12-18T17:09:48.6605246Z"}}}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:47 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 403 - message: Forbidden -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Fri, 18 Dec 2020 17:09:48 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:48 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttable973c1208') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:47 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_delete.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_delete.yaml deleted file mode 100644 index 4c52177ba6bd..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_delete.yaml +++ /dev/null @@ -1,233 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttablee74c0d8a"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:48 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:48 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablee74c0d8a"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:49 GMT - location: - - https://fake_table_account.table.core.windows.net/Tables('uttablee74c0d8a') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pke74c0d8a", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rke74c0d8a", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:49 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:49 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttablee74c0d8a - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablee74c0d8a/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A49.4676759Z''\"","PartitionKey":"pke74c0d8a","RowKey":"rke74c0d8a","Timestamp":"2020-12-18T17:09:49.4676759Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:49 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A49.4676759Z'" - location: - - https://fake_table_account.table.core.windows.net/uttablee74c0d8a(PartitionKey='pke74c0d8a',RowKey='rke74c0d8a') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:49 GMT - If-Match: - - '*' - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:49 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/uttablee74c0d8a(PartitionKey='pke74c0d8a',RowKey='rke74c0d8a')?se=2020-12-18T18%3A09%3A49Z&sp=d&sv=2019-02-02&tn=uttablee74c0d8a&sig=CdFpMj5V6EukeBxr4IpFy%2BHn4qieXD85nfKvyjQev%2FQ%3D - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:49 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:49 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:49 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttablee74c0d8a(PartitionKey='pke74c0d8a',RowKey='rke74c0d8a') - response: - body: - string: '{"odata.error":{"code":"ResourceNotFound","message":{"lang":"en-US","value":"The - specified resource does not exist.\nRequestId:03c9620b-2002-0056-5360-d552f6000000\nTime:2020-12-18T17:09:50.1491587Z"}}}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:49 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: Not Found -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Fri, 18 Dec 2020 17:09:49 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:49 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttablee74c0d8a') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:49 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_query.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_query.yaml deleted file mode 100644 index 6f82178d5178..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_query.yaml +++ /dev/null @@ -1,188 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttableda4d0d4d"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:50 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:50 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttableda4d0d4d"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:50 GMT - location: - - https://fake_table_account.table.core.windows.net/Tables('uttableda4d0d4d') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pkda4d0d4d", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rkda4d0d4d", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:50 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:50 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttableda4d0d4d - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttableda4d0d4d/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A50.9775404Z''\"","PartitionKey":"pkda4d0d4d","RowKey":"rkda4d0d4d","Timestamp":"2020-12-18T17:09:50.9775404Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:50 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A50.9775404Z'" - location: - - https://fake_table_account.table.core.windows.net/uttableda4d0d4d(PartitionKey='pkda4d0d4d',RowKey='rkda4d0d4d') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:50 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:50 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttableda4d0d4d()?$filter=PartitionKey%20eq%20%27pkda4d0d4d%27&st=2020-12-18T17%3A08%3A50Z&se=2020-12-18T18%3A09%3A50Z&sp=r&sv=2019-02-02&tn=uttableda4d0d4d&sig=OjBgUMUk0BqBHadAKbI7DmjAI2SRvvXKZ741l%2B%2BN%2FDM%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttableda4d0d4d","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A50.9775404Z''\"","PartitionKey":"pkda4d0d4d","RowKey":"rkda4d0d4d","Timestamp":"2020-12-18T17:09:50.9775404Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}]}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:51 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Fri, 18 Dec 2020 17:09:51 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:51 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttableda4d0d4d') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:50 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_signed_identifier.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_signed_identifier.yaml deleted file mode 100644 index 535085106d78..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_signed_identifier.yaml +++ /dev/null @@ -1,227 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable979d1213"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Wed, 04 Nov 2020 17:28:33 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 04 Nov 2020 17:28:33 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://tablesteststorname.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable979d1213"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Wed, 04 Nov 2020 17:28:34 GMT - location: - - https://tablesteststorname.table.core.windows.net/Tables('uttable979d1213') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pk979d1213", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk979d1213", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Wed, 04 Nov 2020 17:28:34 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 04 Nov 2020 17:28:34 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://tablesteststorname.table.core.windows.net/uttable979d1213 - response: - body: - string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttable979d1213/@Element","odata.etag":"W/\"datetime''2020-11-04T17%3A28%3A35.0646003Z''\"","PartitionKey":"pk979d1213","RowKey":"rk979d1213","Timestamp":"2020-11-04T17:28:35.0646003Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Wed, 04 Nov 2020 17:28:34 GMT - etag: - - W/"datetime'2020-11-04T17%3A28%3A35.0646003Z'" - location: - - https://tablesteststorname.table.core.windows.net/uttable979d1213(PartitionKey='pk979d1213',RowKey='rk979d1213') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: ' - - testid2011-10-11T00:00:00Z2020-10-12T00:00:00Zr' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '257' - Content-Type: - - application/xml - Date: - - Wed, 04 Nov 2020 17:28:35 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 04 Nov 2020 17:28:35 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://tablesteststorname.table.core.windows.net/uttable979d1213?comp=acl - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 04 Nov 2020 17:28:34 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - DataServiceVersion: - - '3.0' - Date: - - Wed, 04 Nov 2020 17:28:35 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 04 Nov 2020 17:28:35 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://tablesteststorname.table.core.windows.net/uttable979d1213()?sv=2019-02-02&si=testid&tn=uttable979d1213&sig=cJLMxL7C3xrVUfgaE6fjscbYztLcsJWL8btnCSp%2BVUI%3D - response: - body: - string: '{"odata.error":{"code":"AuthenticationFailed","message":{"lang":"en-US","value":"Server - failed to authenticate the request. Make sure the value of Authorization header - is formed correctly including the signature.\nRequestId:4c888ea2-f002-0019-4ccf-b234e8000000\nTime:2020-11-04T17:28:35.3390529Z"}}}' - headers: - content-length: - - '299' - content-type: - - application/json - date: - - Wed, 04 Nov 2020 17:28:35 GMT - server: - - Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - AuthenticationFailed - status: - code: 403 - message: Server failed to authenticate the request. Make sure the value of Authorization - header is formed correctly including the signature. -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 04 Nov 2020 17:28:35 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 04 Nov 2020 17:28:35 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://tablesteststorname.table.core.windows.net/Tables('uttable979d1213') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 04 Nov 2020 17:28:34 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_update.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_update.yaml deleted file mode 100644 index d6c3a6f9d0c0..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_update.yaml +++ /dev/null @@ -1,242 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttablee7bd0d9a"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:51 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:51 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablee7bd0d9a"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:52 GMT - location: - - https://fake_table_account.table.core.windows.net/Tables('uttablee7bd0d9a') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pke7bd0d9a", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rke7bd0d9a", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:52 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:52 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttablee7bd0d9a - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablee7bd0d9a/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A52.5075446Z''\"","PartitionKey":"pke7bd0d9a","RowKey":"rke7bd0d9a","Timestamp":"2020-12-18T17:09:52.5075446Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:52 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A52.5075446Z'" - location: - - https://fake_table_account.table.core.windows.net/uttablee7bd0d9a(PartitionKey='pke7bd0d9a',RowKey='rke7bd0d9a') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pke7bd0d9a", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rke7bd0d9a", "RowKey@odata.type": "Edm.String", "age": "abc", "age@odata.type": - "Edm.String", "sex": "female", "sex@odata.type": "Edm.String", "sign": "aquarius", - "sign@odata.type": "Edm.String", "birthday": "1991-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '353' - Content-Type: - - application/json - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:52 GMT - If-Match: - - '*' - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:52 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://fake_table_account.table.core.windows.net/uttablee7bd0d9a(PartitionKey='pke7bd0d9a',RowKey='rke7bd0d9a')?se=2020-12-18T18%3A09%3A52Z&sp=u&sv=2019-02-02&tn=uttablee7bd0d9a&sig=U9J0KMraUPAg9gtE3kSSxRBEUhrXn8K%2FD%2BWicysLCg0%3D - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:52 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A53.0333404Z'" - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:52 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:52 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttablee7bd0d9a(PartitionKey='pke7bd0d9a',RowKey='rke7bd0d9a') - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablee7bd0d9a/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A53.0333404Z''\"","PartitionKey":"pke7bd0d9a","RowKey":"rke7bd0d9a","Timestamp":"2020-12-18T17:09:53.0333404Z","age":"abc","birthday@odata.type":"Edm.DateTime","birthday":"1991-10-04T00:00:00Z","sex":"female","sign":"aquarius"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:52 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A53.0333404Z'" - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Fri, 18 Dec 2020 17:09:52 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:52 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttablee7bd0d9a') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:53 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_upper_case_table_name.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_upper_case_table_name.yaml deleted file mode 100644 index f6de54824709..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_sas_upper_case_table_name.yaml +++ /dev/null @@ -1,188 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttablee48713a5"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:53 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:53 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablee48713a5"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:53 GMT - location: - - https://fake_table_account.table.core.windows.net/Tables('uttablee48713a5') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '{"PartitionKey": "pke48713a5", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rke48713a5", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:53 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:53 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttablee48713a5 - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablee48713a5/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A53.9801154Z''\"","PartitionKey":"pke48713a5","RowKey":"rke48713a5","Timestamp":"2020-12-18T17:09:53.9801154Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:53 GMT - etag: - - W/"datetime'2020-12-18T17%3A09%3A53.9801154Z'" - location: - - https://fake_table_account.table.core.windows.net/uttablee48713a5(PartitionKey='pke48713a5',RowKey='rke48713a5') - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:09:53 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:53 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttablee48713a5()?$filter=PartitionKey%20eq%20%27pke48713a5%27&st=2020-12-18T17%3A08%3A53Z&se=2020-12-18T18%3A09%3A53Z&sp=r&sv=2019-02-02&tn=UTTABLEE48713A5&sig=YEyE6xbD8ljCyAZVksXP7VpXskveHLsRx%2FNCWRyt%2BRU%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablee48713a5","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A53.9801154Z''\"","PartitionKey":"pke48713a5","RowKey":"rke48713a5","Timestamp":"2020-12-18T17:09:53.9801154Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}]}' - headers: - cache-control: - - no-cache - content-type: - - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: - - Fri, 18 Dec 2020 17:09:54 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Fri, 18 Dec 2020 17:09:54 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:09:54 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttablee48713a5') - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 18 Dec 2020 17:09:54 GMT - server: - - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: - - nosniff - x-ms-version: - - '2019-02-02' - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add.yaml deleted file mode 100644 index 24623793342e..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add.yaml +++ /dev/null @@ -1,145 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable13ae0ebd"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:49 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:49 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable13ae0ebd"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:49 GMT - location: https://fake_table_account.table.core.windows.net/Tables('uttable13ae0ebd') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "pk13ae0ebd", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk13ae0ebd", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:49 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:49 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttable13ae0ebd?st=2020-12-18T17:09:49Z&se=2020-12-18T18:10:49Z&sp=a&sv=2019-02-02&tn=uttable13ae0ebd&sig=R4gUt1lcdQodtN6kHdYDxNIeFHg%2BAJv8jsfRo8SVxkA%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable13ae0ebd/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A50.528974Z''\"","PartitionKey":"pk13ae0ebd","RowKey":"rk13ae0ebd","Timestamp":"2020-12-18T17:10:50.528974Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:50 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A50.528974Z'" - location: https://fake_table_account.table.core.windows.net/uttable13ae0ebd(PartitionKey='pk13ae0ebd',RowKey='rk13ae0ebd') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/uttable13ae0ebd?st=2020-12-18T17:09:49Z&se=2020-12-18T18:10:49Z&sp=a&sv=2019-02-02&tn=uttable13ae0ebd&sig=R4gUt1lcdQodtN6kHdYDxNIeFHg%2BAJv8jsfRo8SVxkA%3D -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:50 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:50 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttable13ae0ebd(PartitionKey='pk13ae0ebd',RowKey='rk13ae0ebd') - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable13ae0ebd/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A50.528974Z''\"","PartitionKey":"pk13ae0ebd","RowKey":"rk13ae0ebd","Timestamp":"2020-12-18T17:10:50.528974Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:50 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A50.528974Z'" - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: https://seankaneprim.table.core.windows.net/uttable13ae0ebd(PartitionKey='pk13ae0ebd',RowKey='rk13ae0ebd') -- request: - body: null - headers: - Accept: - - application/json - Date: - - Fri, 18 Dec 2020 17:10:50 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:50 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttable13ae0ebd') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:50 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/Tables('uttable13ae0ebd') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_inside_range.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_inside_range.yaml deleted file mode 100644 index 998b04231644..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_inside_range.yaml +++ /dev/null @@ -1,145 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttablef8471404"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:50 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:50 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablef8471404"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:50 GMT - location: https://fake_table_account.table.core.windows.net/Tables('uttablef8471404') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "test", "PartitionKey@odata.type": "Edm.String", "RowKey": - "test1", "RowKey@odata.type": "Edm.String", "age": 39, "sex": "male", "sex@odata.type": - "Edm.String", "married": true, "deceased": false, "ratio": 3.1, "evenratio": - 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", "Birthday@odata.type": - "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": "Edm.DateTime", - "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": 20, "clsid": - "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '566' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:51 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:51 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttablef8471404?se=2020-12-18T18:10:51Z&sp=a&sv=2019-02-02&tn=uttablef8471404&spk=test&srk=test1&epk=test&erk=test1&sig=D/xqk5gWkvBQwecvT7xGbm8EhUITVnwkduwC16DgrJc%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablef8471404/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A51.9000509Z''\"","PartitionKey":"test","RowKey":"test1","Timestamp":"2020-12-18T17:10:51.9000509Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:51 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A51.9000509Z'" - location: https://fake_table_account.table.core.windows.net/uttablef8471404(PartitionKey='test',RowKey='test1') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/uttablef8471404?se=2020-12-18T18:10:51Z&sp=a&sv=2019-02-02&tn=uttablef8471404&spk=test&srk=test1&epk=test&erk=test1&sig=D/xqk5gWkvBQwecvT7xGbm8EhUITVnwkduwC16DgrJc%3D -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:51 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:51 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttablef8471404(PartitionKey='test',RowKey='test1') - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablef8471404/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A51.9000509Z''\"","PartitionKey":"test","RowKey":"test1","Timestamp":"2020-12-18T17:10:51.9000509Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:51 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A51.9000509Z'" - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: https://seankaneprim.table.core.windows.net/uttablef8471404(PartitionKey='test',RowKey='test1') -- request: - body: null - headers: - Accept: - - application/json - Date: - - Fri, 18 Dec 2020 17:10:51 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:51 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttablef8471404') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:51 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/Tables('uttablef8471404') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_outside_range.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_outside_range.yaml deleted file mode 100644 index 8d0ebfbdd3af..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_add_outside_range.yaml +++ /dev/null @@ -1,111 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttablede71485"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '31' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:51 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:51 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablede71485"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:51 GMT - location: https://fake_table_account.table.core.windows.net/Tables('uttablede71485') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "pkde71485", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rkde71485", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '575' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:52 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:52 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttablede71485?se=2020-12-18T18:10:52Z&sp=a&sv=2019-02-02&tn=uttablede71485&spk=test&srk=test1&epk=test&erk=test1&sig=VsGAYEwnN3o0swIV04VqcGD8%2BHdRk7iNMeyA6i/T6Vs%3D - response: - body: - string: '{"odata.error":{"code":"AuthorizationFailure","message":{"lang":"en-US","value":"This - request is not authorized to perform this operation.\nRequestId:c5db331c-e002-002b-3460-d523d5000000\nTime:2020-12-18T17:10:53.1511608Z"}}}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:52 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 403 - message: Forbidden - url: https://seankaneprim.table.core.windows.net/uttablede71485?se=2020-12-18T18:10:52Z&sp=a&sv=2019-02-02&tn=uttablede71485&spk=test&srk=test1&epk=test&erk=test1&sig=VsGAYEwnN3o0swIV04VqcGD8%2BHdRk7iNMeyA6i/T6Vs%3D -- request: - body: null - headers: - Accept: - - application/json - Date: - - Fri, 18 Dec 2020 17:10:52 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:52 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttablede71485') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:52 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/Tables('uttablede71485') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_delete.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_delete.yaml deleted file mode 100644 index 9f6b8c27441b..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_delete.yaml +++ /dev/null @@ -1,178 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable42981007"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:52 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:52 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable42981007"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:53 GMT - location: https://fake_table_account.table.core.windows.net/Tables('uttable42981007') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "pk42981007", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk42981007", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:53 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:53 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttable42981007 - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable42981007/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A53.8835815Z''\"","PartitionKey":"pk42981007","RowKey":"rk42981007","Timestamp":"2020-12-18T17:10:53.8835815Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:53 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A53.8835815Z'" - location: https://fake_table_account.table.core.windows.net/uttable42981007(PartitionKey='pk42981007',RowKey='rk42981007') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/uttable42981007 -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:53 GMT - If-Match: - - '*' - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:53 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/uttable42981007(PartitionKey='pk42981007',RowKey='rk42981007')?se=2020-12-18T18:10:53Z&sp=d&sv=2019-02-02&tn=uttable42981007&sig=JH8eXSk%2Bc26%2B%2BR238h9b2PpjZUcJUUEpd6rvEzRonP8%3D - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:54 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/uttable42981007(PartitionKey='pk42981007',RowKey='rk42981007')?se=2020-12-18T18:10:53Z&sp=d&sv=2019-02-02&tn=uttable42981007&sig=JH8eXSk%2Bc26%2B%2BR238h9b2PpjZUcJUUEpd6rvEzRonP8%3D -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:54 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:54 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttable42981007(PartitionKey='pk42981007',RowKey='rk42981007') - response: - body: - string: '{"odata.error":{"code":"ResourceNotFound","message":{"lang":"en-US","value":"The - specified resource does not exist.\nRequestId:5bcffb5b-6002-000a-4b60-d507ae000000\nTime:2020-12-18T17:10:54.4630003Z"}}}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:54 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 404 - message: Not Found - url: https://seankaneprim.table.core.windows.net/uttable42981007(PartitionKey='pk42981007',RowKey='rk42981007') -- request: - body: null - headers: - Accept: - - application/json - Date: - - Fri, 18 Dec 2020 17:10:54 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:54 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttable42981007') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:54 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/Tables('uttable42981007') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_query.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_query.yaml deleted file mode 100644 index 7342819ed004..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_query.yaml +++ /dev/null @@ -1,144 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable331c0fca"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:54 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:54 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable331c0fca"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:54 GMT - location: https://fake_table_account.table.core.windows.net/Tables('uttable331c0fca') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "pk331c0fca", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk331c0fca", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:54 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:54 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttable331c0fca - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable331c0fca/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A55.1773781Z''\"","PartitionKey":"pk331c0fca","RowKey":"rk331c0fca","Timestamp":"2020-12-18T17:10:55.1773781Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:55 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A55.1773781Z'" - location: https://fake_table_account.table.core.windows.net/uttable331c0fca(PartitionKey='pk331c0fca',RowKey='rk331c0fca') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/uttable331c0fca -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:54 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:54 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttable331c0fca()?$filter=PartitionKey%20eq%20'pk331c0fca'&st=2020-12-18T17:09:54Z&se=2020-12-18T18:10:54Z&sp=r&sv=2019-02-02&tn=uttable331c0fca&sig=tz%2B%2Bhtuj1Nk3DUvpo3v4jfmd9k6zXW6/fDCs0Va0h7k%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable331c0fca","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A55.1773781Z''\"","PartitionKey":"pk331c0fca","RowKey":"rk331c0fca","Timestamp":"2020-12-18T17:10:55.1773781Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}]}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:55 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: https://seankaneprim.table.core.windows.net/uttable331c0fca()?$filter=PartitionKey%20eq%20'pk331c0fca'&st=2020-12-18T17:09:54Z&se=2020-12-18T18:10:54Z&sp=r&sv=2019-02-02&tn=uttable331c0fca&sig=tz%2B%2Bhtuj1Nk3DUvpo3v4jfmd9k6zXW6/fDCs0Va0h7k%3D -- request: - body: null - headers: - Accept: - - application/json - Date: - - Fri, 18 Dec 2020 17:10:55 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:55 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttable331c0fca') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:55 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/Tables('uttable331c0fca') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_signed_identifier.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_signed_identifier.yaml deleted file mode 100644 index 4f488ea71171..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_signed_identifier.yaml +++ /dev/null @@ -1,177 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttablee481490"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '31' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Wed, 16 Sep 2020 21:52:05 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 16 Sep 2020 21:52:05 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://storagename.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://storagename.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablee481490"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Wed, 16 Sep 2020 21:52:04 GMT - location: https://storagename.table.core.windows.net/Tables('uttablee481490') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://pyacrstoragewrla36mtikyp.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "pke481490", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rke481490", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '575' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Wed, 16 Sep 2020 21:52:05 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 16 Sep 2020 21:52:05 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://storagename.table.core.windows.net/uttablee481490 - response: - body: - string: '{"odata.metadata":"https://storagename.table.core.windows.net/$metadata#uttablee481490/@Element","odata.etag":"W/\"datetime''2020-09-16T21%3A52%3A05.3317018Z''\"","PartitionKey":"pke481490","RowKey":"rke481490","Timestamp":"2020-09-16T21:52:05.3317018Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Wed, 16 Sep 2020 21:52:04 GMT - etag: W/"datetime'2020-09-16T21%3A52%3A05.3317018Z'" - location: https://storagename.table.core.windows.net/uttablee481490(PartitionKey='pke481490',RowKey='rke481490') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://pyacrstoragewrla36mtikyp.table.core.windows.net/uttablee481490 -- request: - body: ' - - testid2011-10-11T00:00:00Z2020-10-12T00:00:00Zr' - headers: - Accept: - - application/xml - Content-Length: - - '257' - Content-Type: - - application/xml - Date: - - Wed, 16 Sep 2020 21:52:05 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 16 Sep 2020 21:52:05 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.table.core.windows.net/uttablee481490?comp=acl - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 16 Sep 2020 21:52:05 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://pyacrstoragewrla36mtikyp.table.core.windows.net/uttablee481490?comp=acl -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Wed, 16 Sep 2020 21:52:05 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 16 Sep 2020 21:52:05 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.table.core.windows.net/uttablee481490()?sv=2019-02-02&si=testid&tn=uttablee481490&sig=2/5rE0DPvQ7R4mlJaSnVz71xRbGyUowx7nVdPoQLPVc%3D - response: - body: - string: '{"odata.metadata":"https://storagename.table.core.windows.net/$metadata#uttablee481490","value":[{"odata.etag":"W/\"datetime''2020-09-16T21%3A52%3A05.3317018Z''\"","PartitionKey":"pke481490","RowKey":"rke481490","Timestamp":"2020-09-16T21:52:05.3317018Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}]}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Wed, 16 Sep 2020 21:52:04 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: https://pyacrstoragewrla36mtikyp.table.core.windows.net/uttablee481490()?sv=2019-02-02&si=testid&tn=uttablee481490&sig=2/5rE0DPvQ7R4mlJaSnVz71xRbGyUowx7nVdPoQLPVc%3D -- request: - body: null - headers: - Accept: - - application/json - Date: - - Wed, 16 Sep 2020 21:52:05 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Wed, 16 Sep 2020 21:52:05 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.table.core.windows.net/Tables('uttablee481490') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Wed, 16 Sep 2020 21:52:05 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://pyacrstoragewrla36mtikyp.table.core.windows.net/Tables('uttablee481490') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_update.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_update.yaml deleted file mode 100644 index 25defacf2bd4..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_update.yaml +++ /dev/null @@ -1,187 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable43091017"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:55 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:55 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable43091017"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:56 GMT - location: https://fake_table_account.table.core.windows.net/Tables('uttable43091017') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "pk43091017", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk43091017", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:55 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:55 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttable43091017 - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable43091017/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A56.3548319Z''\"","PartitionKey":"pk43091017","RowKey":"rk43091017","Timestamp":"2020-12-18T17:10:56.3548319Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:56 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A56.3548319Z'" - location: https://fake_table_account.table.core.windows.net/uttable43091017(PartitionKey='pk43091017',RowKey='rk43091017') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/uttable43091017 -- request: - body: '{"PartitionKey": "pk43091017", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk43091017", "RowKey@odata.type": "Edm.String", "age": "abc", "age@odata.type": - "Edm.String", "sex": "female", "sex@odata.type": "Edm.String", "sign": "aquarius", - "sign@odata.type": "Edm.String", "birthday": "1991-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime"}' - headers: - Accept: - - application/json - Content-Length: - - '353' - Content-Type: - - application/json - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:56 GMT - If-Match: - - '*' - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:56 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://fake_table_account.table.core.windows.net/uttable43091017(PartitionKey='pk43091017',RowKey='rk43091017')?se=2020-12-18T18:10:56Z&sp=u&sv=2019-02-02&tn=uttable43091017&sig=zMmiBFNssev/G%2Bqjnz7N2a46sAswgcZVKOyiVdeWr0M%3D - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:56 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A56.8124473Z'" - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/uttable43091017(PartitionKey='pk43091017',RowKey='rk43091017')?se=2020-12-18T18:10:56Z&sp=u&sv=2019-02-02&tn=uttable43091017&sig=zMmiBFNssev/G%2Bqjnz7N2a46sAswgcZVKOyiVdeWr0M%3D -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:56 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:56 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttable43091017(PartitionKey='pk43091017',RowKey='rk43091017') - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable43091017/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A56.8124473Z''\"","PartitionKey":"pk43091017","RowKey":"rk43091017","Timestamp":"2020-12-18T17:10:56.8124473Z","age":"abc","birthday@odata.type":"Edm.DateTime","birthday":"1991-10-04T00:00:00Z","sex":"female","sign":"aquarius"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:56 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A56.8124473Z'" - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: https://seankaneprim.table.core.windows.net/uttable43091017(PartitionKey='pk43091017',RowKey='rk43091017') -- request: - body: null - headers: - Accept: - - application/json - Date: - - Fri, 18 Dec 2020 17:10:56 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:56 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttable43091017') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:56 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/Tables('uttable43091017') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_upper_case_table_name.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_upper_case_table_name.yaml deleted file mode 100644 index 6ba7e933b37a..000000000000 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_sas_upper_case_table_name.yaml +++ /dev/null @@ -1,144 +0,0 @@ -interactions: -- request: - body: '{"TableName": "uttable65261622"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '32' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:56 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:56 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/Tables - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable65261622"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:57 GMT - location: https://fake_table_account.table.core.windows.net/Tables('uttable65261622') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/Tables -- request: - body: '{"PartitionKey": "pk65261622", "PartitionKey@odata.type": "Edm.String", - "RowKey": "rk65261622", "RowKey@odata.type": "Edm.String", "age": 39, "sex": - "male", "sex@odata.type": "Edm.String", "married": true, "deceased": false, - "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", - "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type": - "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other": - 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid"}' - headers: - Accept: - - application/json;odata=minimalmetadata - Content-Length: - - '577' - Content-Type: - - application/json;odata=nometadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:57 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:57 GMT - x-ms-version: - - '2019-02-02' - method: POST - uri: https://fake_table_account.table.core.windows.net/uttable65261622 - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable65261622/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A57.6692006Z''\"","PartitionKey":"pk65261622","RowKey":"rk65261622","Timestamp":"2020-12-18T17:10:57.6692006Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:57 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A57.6692006Z'" - location: https://fake_table_account.table.core.windows.net/uttable65261622(PartitionKey='pk65261622',RowKey='rk65261622') - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: https://seankaneprim.table.core.windows.net/uttable65261622 -- request: - body: null - headers: - Accept: - - application/json;odata=minimalmetadata - DataServiceVersion: - - '3.0' - Date: - - Fri, 18 Dec 2020 17:10:57 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:57 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://fake_table_account.table.core.windows.net/uttable65261622()?$filter=PartitionKey%20eq%20'pk65261622'&st=2020-12-18T17:09:57Z&se=2020-12-18T18:10:57Z&sp=r&sv=2019-02-02&tn=UTTABLE65261622&sig=YA79zo0yw7dUiTHDedIMnXba7e6JibCa1zWGXAPKGnU%3D - response: - body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable65261622","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A57.6692006Z''\"","PartitionKey":"pk65261622","RowKey":"rk65261622","Timestamp":"2020-12-18T17:10:57.6692006Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}]}' - headers: - cache-control: no-cache - content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:57 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: https://seankaneprim.table.core.windows.net/uttable65261622()?$filter=PartitionKey%20eq%20'pk65261622'&st=2020-12-18T17:09:57Z&se=2020-12-18T18:10:57Z&sp=r&sv=2019-02-02&tn=UTTABLE65261622&sig=YA79zo0yw7dUiTHDedIMnXba7e6JibCa1zWGXAPKGnU%3D -- request: - body: null - headers: - Accept: - - application/json - Date: - - Fri, 18 Dec 2020 17:10:57 GMT - User-Agent: - - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Fri, 18 Dec 2020 17:10:57 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://fake_table_account.table.core.windows.net/Tables('uttable65261622') - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Fri, 18 Dec 2020 17:10:58 GMT - server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 - x-content-type-options: nosniff - x-ms-version: '2019-02-02' - status: - code: 204 - message: No Content - url: https://seankaneprim.table.core.windows.net/Tables('uttable65261622') -version: 1 diff --git a/sdk/tables/azure-data-tables/tests/test_table.py b/sdk/tables/azure-data-tables/tests/test_table.py index 4ed84978fa91..da3697e27903 100644 --- a/sdk/tables/azure-data-tables/tests/test_table.py +++ b/sdk/tables/azure-data-tables/tests/test_table.py @@ -26,8 +26,10 @@ Metrics, TableServiceClient, TableItem, - generate_account_sas + generate_account_sas, + ResourceTypes ) +from azure.core.credentials import AzureSasCredential from azure.core.pipeline import Pipeline from azure.core.pipeline.policies import ( HeadersPolicy, diff --git a/sdk/tables/azure-data-tables/tests/test_table_async.py b/sdk/tables/azure-data-tables/tests/test_table_async.py index 2e9223b40dcc..c04d70f85695 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_async.py +++ b/sdk/tables/azure-data-tables/tests/test_table_async.py @@ -7,6 +7,7 @@ from devtools_testutils import AzureTestCase +from azure.core.credentials import AzureSasCredential from azure.core.exceptions import ResourceNotFoundError, ResourceExistsError from azure.data.tables import ( AccessPolicy, diff --git a/sdk/tables/azure-data-tables/tests/test_table_cosmos.py b/sdk/tables/azure-data-tables/tests/test_table_cosmos.py index 50f929847ca7..c30c42ffeeca 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_cosmos.py +++ b/sdk/tables/azure-data-tables/tests/test_table_cosmos.py @@ -17,6 +17,7 @@ from devtools_testutils import AzureTestCase +from azure.core.credentials import AzureSasCredential from azure.core.exceptions import ( HttpResponseError, ResourceNotFoundError, @@ -302,8 +303,6 @@ def test_delete_table_with_non_existing_table_fail_not_exist(self, tables_cosmos if self.is_live: sleep(SLEEP_DELAY) - - @pytest.mark.skip("Cosmos does not support table access policy") @CosmosPreparer() def test_get_table_acl(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): diff --git a/sdk/tables/azure-data-tables/tests/test_table_cosmos_async.py b/sdk/tables/azure-data-tables/tests/test_table_cosmos_async.py index e0168e2b2ea7..21009a2cce40 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_cosmos_async.py +++ b/sdk/tables/azure-data-tables/tests/test_table_cosmos_async.py @@ -8,6 +8,7 @@ from devtools_testutils import AzureTestCase +from azure.core.credentials import AzureSasCredential from azure.core.exceptions import ResourceNotFoundError, ResourceExistsError, HttpResponseError from azure.data.tables import ( AccessPolicy, diff --git a/sdk/tables/azure-data-tables/tests/test_table_entity.py b/sdk/tables/azure-data-tables/tests/test_table_entity.py index 4553e18335ee..c26e17ff3f47 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_entity.py +++ b/sdk/tables/azure-data-tables/tests/test_table_entity.py @@ -1839,7 +1839,7 @@ def test_sas_upper_case_table_name(self, tables_storage_account_name, tables_pri ) table = service.get_table_client(self.table_name) entities = list(table.query_entities( - filter="PartitionKey eq '{}'".format(entity['PartitionKey']))) + filter="PartitionKey eq '{}'".format(entity.PartitionKey))) # Assert assert len(entities) == 1 @@ -1847,7 +1847,6 @@ def test_sas_upper_case_table_name(self, tables_storage_account_name, tables_pri finally: self._tear_down() - @pytest.mark.skip("Header authorization is malformed") @pytest.mark.live_test_only @TablesPreparer() def test_sas_signed_identifier(self, tables_storage_account_name, tables_primary_storage_account_key): @@ -1860,7 +1859,7 @@ def test_sas_signed_identifier(self, tables_storage_account_name, tables_primary access_policy = AccessPolicy() access_policy.start = datetime(2011, 10, 11) - access_policy.expiry = datetime(2020, 10, 12) + access_policy.expiry = datetime(2025, 10, 12) access_policy.permission = TableSasPermissions(read=True) identifiers = {'testid': access_policy} diff --git a/sdk/tables/azure-data-tables/tests/test_table_entity_async.py b/sdk/tables/azure-data-tables/tests/test_table_entity_async.py index 2f4c4b48522c..96da2e34d5c7 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_entity_async.py +++ b/sdk/tables/azure-data-tables/tests/test_table_entity_async.py @@ -1829,7 +1829,6 @@ async def test_sas_upper_case_table_name(self, tables_storage_account_name, tabl finally: await self._tear_down() - @pytest.mark.skip("Header authorization is malformed") @pytest.mark.live_test_only @TablesPreparer() async def test_sas_signed_identifier(self, tables_storage_account_name, tables_primary_storage_account_key): @@ -1842,7 +1841,7 @@ async def test_sas_signed_identifier(self, tables_storage_account_name, tables_p access_policy = AccessPolicy() access_policy.start = datetime(2011, 10, 11) - access_policy.expiry = datetime(2020, 10, 12) + access_policy.expiry = datetime(2025, 10, 12) access_policy.permission = TableSasPermissions(read=True) identifiers = {'testid': access_policy} diff --git a/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos.py b/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos.py index c642b233b4c0..2b706292b9ee 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos.py +++ b/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos.py @@ -1903,48 +1903,7 @@ def test_sas_upper_case_table_name(self, tables_cosmos_account_name, tables_prim finally: self._tear_down() self.sleep(SLEEP_DELAY) - - @pytest.mark.skip("Cosmos Tables does not yet support sas") - @pytest.mark.live_test_only - @CosmosPreparer() - def test_sas_signed_identifier(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): - # SAS URL is calculated from cosmos key, so this test runs live only - self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) - try: - # Arrange - entity, _ = self._insert_random_entity() - - access_policy = AccessPolicy() - access_policy.start = datetime(2011, 10, 11) - access_policy.expiry = datetime(2020, 10, 12) - access_policy.permission = TableSasPermissions(read=True) - identifiers = {'testid': access_policy} - - self.table.set_table_access_policy(identifiers) - - token = generate_table_sas( - tables_cosmos_account_name, - tables_primary_cosmos_account_key, - self.table_name, - policy_id='testid', - ) - - # Act - service = TableServiceClient( - self.account_url(tables_cosmos_account_name, "cosmos"), - credential=token, - ) - table = service.get_table_client(self.table_name) - entities = list(table.query_entities( - filter="PartitionKey eq '{}'".format(entity.PartitionKey))) - - # Assert - assert len(entities) == 1 - self._assert_default_entity(entities[0]) - finally: - self._tear_down() - self.sleep(SLEEP_DELAY) - + @CosmosPreparer() def test_datetime_milliseconds(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): # SAS URL is calculated from storage key, so this test runs live only @@ -1966,4 +1925,4 @@ def test_datetime_milliseconds(self, tables_cosmos_account_name, tables_primary_ finally: self._tear_down() - self.sleep(SLEEP_DELAY) \ No newline at end of file + self.sleep(SLEEP_DELAY) diff --git a/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos_async.py b/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos_async.py index 084e00ba3cfa..ede90746bc59 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos_async.py +++ b/sdk/tables/azure-data-tables/tests/test_table_entity_cosmos_async.py @@ -1986,51 +1986,6 @@ async def test_sas_upper_case_table_name(self, tables_cosmos_account_name, table if self.is_live: sleep(SLEEP_DELAY) - @pytest.mark.skip("Cosmos Tables does not yet support sas") - @pytest.mark.live_test_only - @CosmosPreparer() - async def test_sas_signed_identifier(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): - # SAS URL is calculated from storage key, so this test runs live only - url = self.account_url(tables_cosmos_account_name, "cosmos") - await self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) - try: - # Arrange - entity, _ = await self._insert_random_entity() - - access_policy = AccessPolicy() - access_policy.start = datetime(2011, 10, 11) - access_policy.expiry = datetime(2020, 10, 12) - access_policy.permission = TableSasPermissions(read=True) - identifiers = {'testid': access_policy} - - await self.table.set_table_access_policy(identifiers) - - token = generate_table_sas( - tables_cosmos_account_name, - tables_primary_cosmos_account_key, - self.table_name, - policy_id='testid', - ) - - # Act - service = TableServiceClient( - self.account_url(tables_cosmos_account_name, "cosmos"), - credential=token, - ) - table = service.get_table_client(table=self.table_name) - entities = [] - async for t in table.query_entities( - filter="PartitionKey eq '{}'".format(entity.PartitionKey)): - entities.append(t) - - # Assert - assert len(entities) == 1 - self._assert_default_entity(entities[0]) - finally: - await self._tear_down() - if self.is_live: - sleep(SLEEP_DELAY) - @CosmosPreparer() async def test_datetime_milliseconds(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): # SAS URL is calculated from storage key, so this test runs live only @@ -2052,4 +2007,4 @@ async def test_datetime_milliseconds(self, tables_cosmos_account_name, tables_pr finally: await self._tear_down() - self.sleep(SLEEP_DELAY) \ No newline at end of file + self.sleep(SLEEP_DELAY)