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 7f700dbd8332..6cfe9e8a25d3 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 @@ -16,8 +16,9 @@ TYPE_CHECKING, ) import logging -from uuid import uuid4 - +from uuid import uuid4, UUID +from datetime import datetime +import six try: from urllib.parse import parse_qs, quote @@ -25,7 +26,6 @@ from urlparse import parse_qs # type: ignore from urllib2 import quote # type: ignore -import six from azure.core.configuration import Configuration from azure.core.exceptions import ClientAuthenticationError, ResourceNotFoundError from azure.core.pipeline import Pipeline @@ -44,6 +44,7 @@ UserAgentPolicy, ) +from ._common_conversion import _to_utc_datetime from ._shared_access_signature import QueryStringConstants from ._constants import ( STORAGE_OAUTH_SCOPE, @@ -337,6 +338,34 @@ def _batch_send( # pylint: disable=inconsistent-return-statements ) return transaction_result + def _parameter_filter_substitution( # pylint: disable = R0201 + self, + parameters, # type: dict[str,str] + filter # type: str # pylint: disable = W0622 + ): + """Replace user defined parameter in filter + :param parameters: User defined parameters + :param filter: Filter for querying + """ + if parameters: + filter_strings = filter.split(' ') + for index, word in enumerate(filter_strings): + if word[0] == u'@': + val = parameters[word[1:]] + if val in [True, False]: + filter_strings[index] = str(val).lower() + elif isinstance(val, (float, six.integer_types)): + filter_strings[index] = str(val) + elif isinstance(val, datetime): + filter_strings[index] = "datetime'{}'".format(_to_utc_datetime(val)) + elif isinstance(val, UUID): + filter_strings[index] = "guid'{}'".format(str(val)) + else: + filter_strings[index] = "'{}'".format(val) + return ' '.join(filter_strings) + + return filter # pylint: disable = W0622 + class TransportWrapper(HttpTransport): """Wrapper class that ensures that an inner client created diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_table_client_base.py b/sdk/tables/azure-data-tables/azure/data/tables/_table_client_base.py index 2b0a54c0d9e9..fae58e0032a0 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_table_client_base.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_table_client_base.py @@ -82,23 +82,5 @@ def _validate_signed_identifiers(cls, signed_identifiers): """ if len(signed_identifiers) > 5: raise ValueError( - "Too many access policies provided. The server does not support setting " - "more than 5 access policies on a single resource." - ) - - def _parameter_filter_substitution( # pylint: disable = R0201 - self, - parameters, # type: dict[str,str] - filter, # type: str # pylint: disable = W0622 - ): - """Replace user defined parameter in filter - :param parameters: User defined parameters - :param filter: Filter for querying - """ - if parameters: - filter_start = filter.split("@")[0] - selected = filter.split("@")[1] - for key, value in parameters.items(): - if key == selected: - filter = filter_start.replace("@", value) # pylint: disable = W0622 - return filter # pylint: disable = W0622 + 'Too many access policies provided. The server does not support setting ' + 'more than 5 access policies on a single resource.') diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_table_service_client_base.py b/sdk/tables/azure-data-tables/azure/data/tables/_table_service_client_base.py index 161651a7e341..d0c6476ddcd2 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_table_service_client_base.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_table_service_client_base.py @@ -61,20 +61,3 @@ def _format_url(self, hostname): mode hostname. """ return "{}://{}{}".format(self.scheme, hostname, self._query_str) - - def _parameter_filter_substitution( # pylint: disable = R0201 - self, - parameters, # type: dict[str,str] - filter, # type: str # pylint: disable = W0622 - ): - """Replace user defined parameter in filter - :param parameters: User defined parameters - :param filter: Filter for querying - """ - if parameters: - filter_start = filter.split("@")[0] - selected = filter.split("@")[1] - for key, value in parameters.items(): - if key == selected: - filter = filter_start.replace("@", value) # pylint: disable = W0622 - return filter # pylint: disable = W0622 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_entities_each_page.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_entities_each_page.yaml index aafb4982f9af..2b2549ef4d0d 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_entities_each_page.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_entities_each_page.yaml @@ -15,11 +15,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:28 GMT + - Tue, 05 Jan 2021 22:29:37 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:28 GMT + - Tue, 05 Jan 2021 22:29:37 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:09:28 GMT + - Tue, 05 Jan 2021 22:29:37 GMT location: - https://fake_table_account.table.core.windows.net/Tables('uttabled3221357') server: @@ -64,27 +64,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:37 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:29 GMT + - Tue, 05 Jan 2021 22:29:37 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A29.7898885Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2020-12-18T17:09:29.7898885Z","value":0}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.3536609Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2021-01-05T22:29:38.3536609Z","value":0}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:28 GMT + - Tue, 05 Jan 2021 22:29:37 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A29.7898885Z'" + - W/"datetime'2021-01-05T22%3A29%3A38.3536609Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk',RowKey='10') server: @@ -115,27 +115,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 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:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A29.9910308Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2020-12-18T17:09:29.9910308Z","value":1}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.510772Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2021-01-05T22:29:38.510772Z","value":1}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:37 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A29.9910308Z'" + - W/"datetime'2021-01-05T22%3A29%3A38.510772Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk',RowKey='101') server: @@ -166,27 +166,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 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:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.1191223Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2020-12-18T17:09:30.1191223Z","value":2}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.6388631Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2021-01-05T22:29:38.6388631Z","value":2}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:37 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A30.1191223Z'" + - W/"datetime'2021-01-05T22%3A29%3A38.6388631Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk',RowKey='1012') server: @@ -217,27 +217,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 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:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.2662271Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2020-12-18T17:09:30.2662271Z","value":3}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.7699579Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2021-01-05T22:29:38.7699579Z","value":3}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A30.2662271Z'" + - W/"datetime'2021-01-05T22%3A29%3A38.7699579Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk',RowKey='10123') server: @@ -268,27 +268,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 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:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.4103286Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2020-12-18T17:09:30.4103286Z","value":4}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.9000495Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2021-01-05T22:29:38.9000495Z","value":4}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A30.4103286Z'" + - W/"datetime'2021-01-05T22%3A29%3A38.9000495Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk',RowKey='101234') server: @@ -319,27 +319,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:38 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:30 GMT + - Tue, 05 Jan 2021 22:29:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.5604353Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2020-12-18T17:09:30.5604353Z","value":5}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A39.0331439Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2021-01-05T22:29:39.0331439Z","value":5}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A30.5604353Z'" + - W/"datetime'2021-01-05T22%3A29%3A39.0331439Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk',RowKey='1012345') server: @@ -370,27 +370,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:38 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:30 GMT + - Tue, 05 Jan 2021 22:29:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.6935306Z''\"","PartitionKey":"pk6","RowKey":"10123456","Timestamp":"2020-12-18T17:09:30.6935306Z","value":6}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A39.1622346Z''\"","PartitionKey":"pk6","RowKey":"10123456","Timestamp":"2021-01-05T22:29:39.1622346Z","value":6}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A30.6935306Z'" + - W/"datetime'2021-01-05T22%3A29%3A39.1622346Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk6',RowKey='10123456') server: @@ -421,27 +421,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:38 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:30 GMT + - Tue, 05 Jan 2021 22:29:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.8796646Z''\"","PartitionKey":"pk67","RowKey":"101234567","Timestamp":"2020-12-18T17:09:30.8796646Z","value":7}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A39.2933295Z''\"","PartitionKey":"pk67","RowKey":"101234567","Timestamp":"2021-01-05T22:29:39.2933295Z","value":7}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:29 GMT + - Tue, 05 Jan 2021 22:29:38 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A30.8796646Z'" + - W/"datetime'2021-01-05T22%3A29%3A39.2933295Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk67',RowKey='101234567') server: @@ -472,27 +472,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:39 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:30 GMT + - Tue, 05 Jan 2021 22:29:39 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A31.1828819Z''\"","PartitionKey":"pk678","RowKey":"1012345678","Timestamp":"2020-12-18T17:09:31.1828819Z","value":8}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A39.4204196Z''\"","PartitionKey":"pk678","RowKey":"1012345678","Timestamp":"2021-01-05T22:29:39.4204196Z","value":8}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:38 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A31.1828819Z'" + - W/"datetime'2021-01-05T22%3A29%3A39.4204196Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk678',RowKey='1012345678') server: @@ -523,27 +523,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:39 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:30 GMT + - Tue, 05 Jan 2021 22:29:39 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttabled3221357 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A31.3760203Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","Timestamp":"2020-12-18T17:09:31.3760203Z","value":9}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A39.5595174Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","Timestamp":"2021-01-05T22:29:39.5595174Z","value":9}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:38 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A31.3760203Z'" + - W/"datetime'2021-01-05T22%3A29%3A39.5595174Z'" location: - https://fake_table_account.table.core.windows.net/uttabled3221357(PartitionKey='pk6789',RowKey='10123456789') server: @@ -569,25 +569,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:31 GMT + - Tue, 05 Jan 2021 22:29:39 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:31 GMT + - Tue, 05 Jan 2021 22:29:39 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_table_account.table.core.windows.net/uttabled3221357()?$top=2&$filter=PartitionKey%20eq%20%27pk%27 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A29.7898885Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2020-12-18T17:09:29.7898885Z","value":0},{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A29.9910308Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2020-12-18T17:09:29.9910308Z","value":1}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357","value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.3536609Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2021-01-05T22:29:38.3536609Z","value":0},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.510772Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2021-01-05T22:29:38.510772Z","value":1}]}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:38 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -615,25 +615,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:31 GMT + - Tue, 05 Jan 2021 22:29:39 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:31 GMT + - Tue, 05 Jan 2021 22:29:39 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_table_account.table.core.windows.net/uttabled3221357()?$top=2&$filter=PartitionKey%20eq%20%27pk%27&NextPartitionKey=1%214%21cGs-&NextRowKey=1%218%21MTAxMg-- response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.1191223Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2020-12-18T17:09:30.1191223Z","value":2},{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.2662271Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2020-12-18T17:09:30.2662271Z","value":3}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357","value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.6388631Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2021-01-05T22:29:38.6388631Z","value":2},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.7699579Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2021-01-05T22:29:38.7699579Z","value":3}]}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:39 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -661,25 +661,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:31 GMT + - Tue, 05 Jan 2021 22:29:39 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:31 GMT + - Tue, 05 Jan 2021 22:29:39 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_table_account.table.core.windows.net/uttabled3221357()?$top=2&$filter=PartitionKey%20eq%20%27pk%27&NextPartitionKey=1%214%21cGs-&NextRowKey=1%218%21MTAxMjM0 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.4103286Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2020-12-18T17:09:30.4103286Z","value":4},{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A30.5604353Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2020-12-18T17:09:30.5604353Z","value":5}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled3221357","value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A38.9000495Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2021-01-05T22:29:38.9000495Z","value":4},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A39.0331439Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2021-01-05T22:29:39.0331439Z","value":5}]}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Fri, 18 Dec 2020 17:09:30 GMT + - Tue, 05 Jan 2021 22:29:39 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -703,11 +703,11 @@ interactions: Content-Length: - '0' Date: - - Fri, 18 Dec 2020 17:09:31 GMT + - Tue, 05 Jan 2021 22:29:39 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:31 GMT + - Tue, 05 Jan 2021 22:29:39 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -721,7 +721,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 17:09:31 GMT + - Tue, 05 Jan 2021 22:29:39 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_query_entities_with_filter.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_entities_with_filter.yaml index 5cfbf415ba71..f2a23d913e67 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_entities_with_filter.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_entities_with_filter.yaml @@ -15,11 +15,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:34 GMT + - Mon, 04 Jan 2021 23:22:36 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:34 GMT + - Mon, 04 Jan 2021 23:22:36 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:09:35 GMT + - Mon, 04 Jan 2021 23:22:36 GMT location: - https://fake_table_account.table.core.windows.net/Tables('uttablefce8146b') server: @@ -69,27 +69,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:35 GMT + - Mon, 04 Jan 2021 23:22:37 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:35 GMT + - Mon, 04 Jan 2021 23:22:37 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttablefce8146b response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A35.9458508Z''\"","PartitionKey":"pkfce8146b","RowKey":"rkfce8146b","Timestamp":"2020-12-18T17:09:35.9458508Z","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"}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b/@Element","odata.etag":"W/\"datetime''2021-01-04T23%3A22%3A37.5343284Z''\"","PartitionKey":"pkfce8146b","RowKey":"rkfce8146b","Timestamp":"2021-01-04T23:22:37.5343284Z","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:35 GMT + - Mon, 04 Jan 2021 23:22:37 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A35.9458508Z'" + - W/"datetime'2021-01-04T23%3A22%3A37.5343284Z'" location: - https://fake_table_account.table.core.windows.net/uttablefce8146b(PartitionKey='pkfce8146b',RowKey='rkfce8146b') server: @@ -125,27 +125,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:35 GMT + - Mon, 04 Jan 2021 23:22:37 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:35 GMT + - Mon, 04 Jan 2021 23:22:37 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttablefce8146b response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A36.1459932Z''\"","PartitionKey":"foopkfce8146b","RowKey":"rkfce8146b","Timestamp":"2020-12-18T17:09:36.1459932Z","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"}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b/@Element","odata.etag":"W/\"datetime''2021-01-04T23%3A22%3A37.6704264Z''\"","PartitionKey":"foopkfce8146b","RowKey":"rkfce8146b","Timestamp":"2021-01-04T23:22:37.6704264Z","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:35 GMT + - Mon, 04 Jan 2021 23:22:37 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A36.1459932Z'" + - W/"datetime'2021-01-04T23%3A22%3A37.6704264Z'" location: - https://fake_table_account.table.core.windows.net/uttablefce8146b(PartitionKey='foopkfce8146b',RowKey='rkfce8146b') server: @@ -181,27 +181,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:35 GMT + - Mon, 04 Jan 2021 23:22:37 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:35 GMT + - Mon, 04 Jan 2021 23:22:37 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttablefce8146b response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A36.2950998Z''\"","PartitionKey":"barpkfce8146b","RowKey":"rkfce8146b","Timestamp":"2020-12-18T17:09:36.2950998Z","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"}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b/@Element","odata.etag":"W/\"datetime''2021-01-04T23%3A22%3A37.8085254Z''\"","PartitionKey":"barpkfce8146b","RowKey":"rkfce8146b","Timestamp":"2021-01-04T23:22:37.8085254Z","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:36 GMT + - Mon, 04 Jan 2021 23:22:37 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A36.2950998Z'" + - W/"datetime'2021-01-04T23%3A22%3A37.8085254Z'" location: - https://fake_table_account.table.core.windows.net/uttablefce8146b(PartitionKey='barpkfce8146b',RowKey='rkfce8146b') server: @@ -227,25 +227,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:35 GMT + - Mon, 04 Jan 2021 23:22: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:35 GMT + - Mon, 04 Jan 2021 23:22:46 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_table_account.table.core.windows.net/uttablefce8146b()?$top=1&$filter=PartitionKey%20eq%20%27pkfce8146b%27 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A35.9458508Z''\"","PartitionKey":"pkfce8146b","RowKey":"rkfce8146b","Timestamp":"2020-12-18T17:09:35.9458508Z","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"}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefce8146b","value":[{"odata.etag":"W/\"datetime''2021-01-04T23%3A22%3A37.5343284Z''\"","PartitionKey":"pkfce8146b","RowKey":"rkfce8146b","Timestamp":"2021-01-04T23:22:37.5343284Z","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:36 GMT + - Mon, 04 Jan 2021 23:22:45 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -269,11 +269,11 @@ interactions: Content-Length: - '0' Date: - - Fri, 18 Dec 2020 17:09:36 GMT + - Mon, 04 Jan 2021 23:23:26 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:36 GMT + - Mon, 04 Jan 2021 23:23:26 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -287,7 +287,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 17:09:36 GMT + - Mon, 04 Jan 2021 23:23:26 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_query_user_filter.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter.yaml index a22f256438ea..d0da060d5cb6 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter.yaml @@ -15,11 +15,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:42 GMT + - Wed, 06 Jan 2021 19:11:32 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:42 GMT + - Wed, 06 Jan 2021 19:11:32 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:09:42 GMT + - Wed, 06 Jan 2021 19:11:30 GMT location: - https://fake_table_account.table.core.windows.net/Tables('uttable546210aa') server: @@ -69,27 +69,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:09:43 GMT + - Wed, 06 Jan 2021 19:11:33 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:43 GMT + - Wed, 06 Jan 2021 19:11:33 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable546210aa response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable546210aa/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A43.740726Z''\"","PartitionKey":"pk546210aa","RowKey":"rk546210aa","Timestamp":"2020-12-18T17:09:43.740726Z","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"}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable546210aa/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A31.3278723Z''\"","PartitionKey":"pk546210aa","RowKey":"rk546210aa","Timestamp":"2021-01-06T19:11:31.3278723Z","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:42 GMT + - Wed, 06 Jan 2021 19:11:30 GMT etag: - - W/"datetime'2020-12-18T17%3A09%3A43.740726Z'" + - W/"datetime'2021-01-06T19%3A11%3A31.3278723Z'" location: - https://fake_table_account.table.core.windows.net/uttable546210aa(PartitionKey='pk546210aa',RowKey='rk546210aa') server: @@ -103,6 +103,105 @@ interactions: status: code: 201 message: Created +- request: + body: '{"PartitionKey": "pk546210aa1", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk546210aa1", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:11:33 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:33 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable546210aa + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable546210aa/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A31.4629692Z''\"","PartitionKey":"pk546210aa1","RowKey":"rk546210aa1","Timestamp":"2021-01-06T19:11:31.4629692Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:30 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A31.4629692Z'" + location: + - https://fake_table_account.table.core.windows.net/uttable546210aa(PartitionKey='pk546210aa1',RowKey='rk546210aa1') + 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: + - Wed, 06 Jan 2021 19:11:33 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:33 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable546210aa()?$filter=married%20eq%20true + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable546210aa","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A31.3278723Z''\"","PartitionKey":"pk546210aa","RowKey":"rk546210aa","Timestamp":"2021-01-06T19:11:31.3278723Z","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, 06 Jan 2021 19:11:30 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: @@ -115,11 +214,11 @@ interactions: Content-Length: - '0' Date: - - Fri, 18 Dec 2020 17:09:43 GMT + - Wed, 06 Jan 2021 19:11:33 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:43 GMT + - Wed, 06 Jan 2021 19:11:33 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -133,7 +232,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 17:09:43 GMT + - Wed, 06 Jan 2021 19:11:31 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_query_user_filter_datetimes.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_datetimes.yaml new file mode 100644 index 000000000000..04a341c49cb0 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_datetimes.yaml @@ -0,0 +1,245 @@ +interactions: +- request: + body: '{"TableName": "uttable114d14c9"}' + 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, 06 Jan 2021 19:11:33 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:33 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":"uttable114d14c9"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:32 GMT + location: + - https://fake_table_account.table.core.windows.net/Tables('uttable114d14c9') + 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": "pk114d14c9", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk114d14c9", "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, 06 Jan 2021 19:11:34 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:34 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable114d14c9 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable114d14c9/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A32.6136547Z''\"","PartitionKey":"pk114d14c9","RowKey":"rk114d14c9","Timestamp":"2021-01-06T19:11:32.6136547Z","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, 06 Jan 2021 19:11:32 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A32.6136547Z'" + location: + - https://fake_table_account.table.core.windows.net/uttable114d14c9(PartitionKey='pk114d14c9',RowKey='rk114d14c9') + 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": "pk114d14c91", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk114d14c91", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:11:34 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:34 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable114d14c9 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable114d14c9/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A32.7377442Z''\"","PartitionKey":"pk114d14c91","RowKey":"rk114d14c91","Timestamp":"2021-01-06T19:11:32.7377442Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:32 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A32.7377442Z'" + location: + - https://fake_table_account.table.core.windows.net/uttable114d14c9(PartitionKey='pk114d14c91',RowKey='rk114d14c91') + 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: + - Wed, 06 Jan 2021 19:11:34 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:34 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable114d14c9()?$filter=birthday%20eq%20datetime%271970-10-04T00%3A00%3A00Z%27 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable114d14c9","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A32.6136547Z''\"","PartitionKey":"pk114d14c9","RowKey":"rk114d14c9","Timestamp":"2021-01-06T19:11:32.6136547Z","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, 06 Jan 2021 19:11:32 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: + - Wed, 06 Jan 2021 19:11:34 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:34 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttable114d14c9') + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:11:32 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_query_user_filter_floats.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_floats.yaml new file mode 100644 index 000000000000..76120e3d6a85 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_floats.yaml @@ -0,0 +1,245 @@ +interactions: +- request: + body: '{"TableName": "uttabled45b1392"}' + 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, 06 Jan 2021 19:11:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:35 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":"uttabled45b1392"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:33 GMT + location: + - https://fake_table_account.table.core.windows.net/Tables('uttabled45b1392') + 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": "pkd45b1392", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkd45b1392", "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, 06 Jan 2021 19:11:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:35 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttabled45b1392 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled45b1392/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A33.6349527Z''\"","PartitionKey":"pkd45b1392","RowKey":"rkd45b1392","Timestamp":"2021-01-06T19:11:33.6349527Z","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, 06 Jan 2021 19:11:33 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A33.6349527Z'" + location: + - https://fake_table_account.table.core.windows.net/uttabled45b1392(PartitionKey='pkd45b1392',RowKey='rkd45b1392') + 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": "pkd45b13921", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkd45b13921", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:11:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:35 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttabled45b1392 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled45b1392/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A33.7620437Z''\"","PartitionKey":"pkd45b13921","RowKey":"rkd45b13921","Timestamp":"2021-01-06T19:11:33.7620437Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:33 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A33.7620437Z'" + location: + - https://fake_table_account.table.core.windows.net/uttabled45b1392(PartitionKey='pkd45b13921',RowKey='rkd45b13921') + 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: + - Wed, 06 Jan 2021 19:11:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:35 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttabled45b1392()?$filter=ratio%20lt%204.1 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttabled45b1392","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A33.6349527Z''\"","PartitionKey":"pkd45b1392","RowKey":"rkd45b1392","Timestamp":"2021-01-06T19:11:33.6349527Z","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, 06 Jan 2021 19:11:33 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: + - Wed, 06 Jan 2021 19:11:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:35 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttabled45b1392') + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:11:33 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_query_user_filter_guids.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_guids.yaml new file mode 100644 index 000000000000..02f5d0cc435b --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_guids.yaml @@ -0,0 +1,245 @@ +interactions: +- request: + body: '{"TableName": "uttablec0e51325"}' + 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, 06 Jan 2021 19:11:36 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:36 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":"uttablec0e51325"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:34 GMT + location: + - https://fake_table_account.table.core.windows.net/Tables('uttablec0e51325') + 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": "pkc0e51325", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkc0e51325", "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, 06 Jan 2021 19:11:36 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:36 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttablec0e51325 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablec0e51325/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A34.6587179Z''\"","PartitionKey":"pkc0e51325","RowKey":"rkc0e51325","Timestamp":"2021-01-06T19:11:34.6587179Z","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, 06 Jan 2021 19:11:34 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A34.6587179Z'" + location: + - https://fake_table_account.table.core.windows.net/uttablec0e51325(PartitionKey='pkc0e51325',RowKey='rkc0e51325') + 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": "pkc0e513251", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkc0e513251", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:11:36 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:36 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttablec0e51325 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablec0e51325/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A34.7838056Z''\"","PartitionKey":"pkc0e513251","RowKey":"rkc0e513251","Timestamp":"2021-01-06T19:11:34.7838056Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:34 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A34.7838056Z'" + location: + - https://fake_table_account.table.core.windows.net/uttablec0e51325(PartitionKey='pkc0e513251',RowKey='rkc0e513251') + 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: + - Wed, 06 Jan 2021 19:11:36 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:36 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttablec0e51325()?$filter=clsid%20eq%20guid%27c9da6455-213d-42c9-9a79-3e9149a57833%27 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablec0e51325","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A34.6587179Z''\"","PartitionKey":"pkc0e51325","RowKey":"rkc0e51325","Timestamp":"2021-01-06T19:11:34.6587179Z","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, 06 Jan 2021 19:11:34 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: + - Wed, 06 Jan 2021 19:11:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:37 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttablec0e51325') + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:11: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_query_user_filter_integers.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_integers.yaml new file mode 100644 index 000000000000..491d0db65b3d --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_integers.yaml @@ -0,0 +1,245 @@ +interactions: +- request: + body: '{"TableName": "uttablefcd0146a"}' + 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, 06 Jan 2021 19:11:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:37 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":"uttablefcd0146a"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:34 GMT + location: + - https://fake_table_account.table.core.windows.net/Tables('uttablefcd0146a') + 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": "pkfcd0146a", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkfcd0146a", "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, 06 Jan 2021 19:11:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:37 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttablefcd0146a + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefcd0146a/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A35.7008278Z''\"","PartitionKey":"pkfcd0146a","RowKey":"rkfcd0146a","Timestamp":"2021-01-06T19:11:35.7008278Z","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, 06 Jan 2021 19:11:34 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A35.7008278Z'" + location: + - https://fake_table_account.table.core.windows.net/uttablefcd0146a(PartitionKey='pkfcd0146a',RowKey='rkfcd0146a') + 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": "pkfcd0146a1", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkfcd0146a1", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:11:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:37 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttablefcd0146a + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefcd0146a/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A35.8539321Z''\"","PartitionKey":"pkfcd0146a1","RowKey":"rkfcd0146a1","Timestamp":"2021-01-06T19:11:35.8539321Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:35 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A35.8539321Z'" + location: + - https://fake_table_account.table.core.windows.net/uttablefcd0146a(PartitionKey='pkfcd0146a1',RowKey='rkfcd0146a1') + 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: + - Wed, 06 Jan 2021 19:11:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:37 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttablefcd0146a()?$filter=age%20lt%2040 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablefcd0146a","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A35.7008278Z''\"","PartitionKey":"pkfcd0146a","RowKey":"rkfcd0146a","Timestamp":"2021-01-06T19:11:35.7008278Z","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, 06 Jan 2021 19:11:35 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: + - Wed, 06 Jan 2021 19:11:38 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:38 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttablefcd0146a') + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:11:35 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_query_user_filter_multiple_params.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_multiple_params.yaml new file mode 100644 index 000000000000..c928ed430d59 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_query_user_filter_multiple_params.yaml @@ -0,0 +1,245 @@ +interactions: +- request: + body: '{"TableName": "uttable97e31758"}' + 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, 06 Jan 2021 19:11:38 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:38 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":"uttable97e31758"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:36 GMT + location: + - https://fake_table_account.table.core.windows.net/Tables('uttable97e31758') + 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": "pk97e31758", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk97e31758", "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, 06 Jan 2021 19:11:38 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:38 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable97e31758 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable97e31758/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A36.7592923Z''\"","PartitionKey":"pk97e31758","RowKey":"rk97e31758","Timestamp":"2021-01-06T19:11:36.7592923Z","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, 06 Jan 2021 19:11:36 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A36.7592923Z'" + location: + - https://fake_table_account.table.core.windows.net/uttable97e31758(PartitionKey='pk97e31758',RowKey='rk97e31758') + 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": "pk97e317581", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk97e317581", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:11:38 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:38 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable97e31758 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable97e31758/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A36.8893834Z''\"","PartitionKey":"pk97e317581","RowKey":"rk97e317581","Timestamp":"2021-01-06T19:11:36.8893834Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Wed, 06 Jan 2021 19:11:36 GMT + etag: + - W/"datetime'2021-01-06T19%3A11%3A36.8893834Z'" + location: + - https://fake_table_account.table.core.windows.net/uttable97e31758(PartitionKey='pk97e317581',RowKey='rk97e317581') + 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: + - Wed, 06 Jan 2021 19:11:38 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:38 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable97e31758()?$filter=married%20eq%20true%20and%20RowKey%20eq%20%27rk97e31758%27 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable97e31758","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A11%3A36.7592923Z''\"","PartitionKey":"pk97e31758","RowKey":"rk97e31758","Timestamp":"2021-01-06T19:11:36.7592923Z","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, 06 Jan 2021 19:11:36 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: + - Wed, 06 Jan 2021 19:11:39 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:11:39 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttable97e31758') + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:11:36 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_query_entities_each_page.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_entities_each_page.yaml index f20c77b49cf2..3bbcc39d4126 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_entities_each_page.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_entities_each_page.yaml @@ -11,11 +11,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:35 GMT + - Tue, 05 Jan 2021 22:29:39 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:35 GMT + - Tue, 05 Jan 2021 22:29:39 GMT x-ms-version: - '2019-02-02' method: POST @@ -26,7 +26,7 @@ interactions: headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:36 GMT + date: Tue, 05 Jan 2021 22:29:40 GMT location: https://fake_table_account.table.core.windows.net/Tables('uttable514415d4') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -49,23 +49,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:36 GMT + - Tue, 05 Jan 2021 22:29:40 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:36 GMT + - Tue, 05 Jan 2021 22:29:40 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.5479642Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2020-12-18T17:10:36.5479642Z","value":0}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A40.8128713Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2021-01-05T22:29:40.8128713Z","value":0}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:36 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A36.5479642Z'" + date: Tue, 05 Jan 2021 22:29:40 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A40.8128713Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk',RowKey='10') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -88,23 +88,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:36 GMT + - Tue, 05 Jan 2021 22:29:40 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:36 GMT + - Tue, 05 Jan 2021 22:29:40 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.6670507Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2020-12-18T17:10:36.6670507Z","value":1}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A40.9279522Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2021-01-05T22:29:40.9279522Z","value":1}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:36 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A36.6670507Z'" + date: Tue, 05 Jan 2021 22:29:40 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A40.9279522Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk',RowKey='101') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -127,23 +127,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:36 GMT + - Tue, 05 Jan 2021 22:29:40 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:36 GMT + - Tue, 05 Jan 2021 22:29:40 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.7881381Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2020-12-18T17:10:36.7881381Z","value":2}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.0510383Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2021-01-05T22:29:41.0510383Z","value":2}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:36 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A36.7881381Z'" + date: Tue, 05 Jan 2021 22:29:40 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.0510383Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk',RowKey='1012') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -166,23 +166,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:36 GMT + - Tue, 05 Jan 2021 22:29:40 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:36 GMT + - Tue, 05 Jan 2021 22:29:40 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.9392478Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2020-12-18T17:10:36.9392478Z","value":3}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.1771272Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2021-01-05T22:29:41.1771272Z","value":3}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:36 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A36.9392478Z'" + date: Tue, 05 Jan 2021 22:29:40 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.1771272Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk',RowKey='10123') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -205,23 +205,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:36 GMT + - Tue, 05 Jan 2021 22:29:40 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:36 GMT + - Tue, 05 Jan 2021 22:29:40 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.0813503Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2020-12-18T17:10:37.0813503Z","value":4}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.2952104Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2021-01-05T22:29:41.2952104Z","value":4}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A37.0813503Z'" + date: Tue, 05 Jan 2021 22:29:40 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.2952104Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk',RowKey='101234') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -244,23 +244,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:36 GMT + - Tue, 05 Jan 2021 22:29:41 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:36 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.2194507Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2020-12-18T17:10:37.2194507Z","value":5}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.4142951Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2021-01-05T22:29:41.4142951Z","value":5}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A37.2194507Z'" + date: Tue, 05 Jan 2021 22:29:41 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.4142951Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk',RowKey='1012345') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -283,23 +283,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:36 GMT + - Tue, 05 Jan 2021 22:29:41 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:36 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.3455416Z''\"","PartitionKey":"pk6","RowKey":"10123456","Timestamp":"2020-12-18T17:10:37.3455416Z","value":6}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.5343797Z''\"","PartitionKey":"pk6","RowKey":"10123456","Timestamp":"2021-01-05T22:29:41.5343797Z","value":6}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A37.3455416Z'" + date: Tue, 05 Jan 2021 22:29:41 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.5343797Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk6',RowKey='10123456') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -322,23 +322,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:37 GMT + - Tue, 05 Jan 2021 22:29:41 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:37 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.5096613Z''\"","PartitionKey":"pk67","RowKey":"101234567","Timestamp":"2020-12-18T17:10:37.5096613Z","value":7}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.6524634Z''\"","PartitionKey":"pk67","RowKey":"101234567","Timestamp":"2021-01-05T22:29:41.6524634Z","value":7}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A37.5096613Z'" + date: Tue, 05 Jan 2021 22:29:41 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.6524634Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk67',RowKey='101234567') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -361,23 +361,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:37 GMT + - Tue, 05 Jan 2021 22:29:41 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:37 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.6357517Z''\"","PartitionKey":"pk678","RowKey":"1012345678","Timestamp":"2020-12-18T17:10:37.6357517Z","value":8}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.779552Z''\"","PartitionKey":"pk678","RowKey":"1012345678","Timestamp":"2021-01-05T22:29:41.779552Z","value":8}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A37.6357517Z'" + date: Tue, 05 Jan 2021 22:29:41 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.779552Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk678',RowKey='1012345678') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -400,23 +400,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:37 GMT + - Tue, 05 Jan 2021 22:29:41 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:37 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_table_account.table.core.windows.net/uttable514415d4 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.7648455Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","Timestamp":"2020-12-18T17:10:37.7648455Z","value":9}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.898635Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","Timestamp":"2021-01-05T22:29:41.898635Z","value":9}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT - etag: W/"datetime'2020-12-18T17%3A10%3A37.7648455Z'" + date: Tue, 05 Jan 2021 22:29:41 GMT + etag: W/"datetime'2021-01-05T22%3A29%3A41.898635Z'" location: https://fake_table_account.table.core.windows.net/uttable514415d4(PartitionKey='pk6789',RowKey='10123456789') server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -434,22 +434,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:37 GMT + - Tue, 05 Jan 2021 22:29:41 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:37 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_table_account.table.core.windows.net/uttable514415d4()?$top=2&$filter=PartitionKey%20eq%20'pk' response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.5479642Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2020-12-18T17:10:36.5479642Z","value":0},{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.6670507Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2020-12-18T17:10:36.6670507Z","value":1}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4","value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A40.8128713Z''\"","PartitionKey":"pk","RowKey":"10","Timestamp":"2021-01-05T22:29:40.8128713Z","value":0},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A40.9279522Z''\"","PartitionKey":"pk","RowKey":"101","Timestamp":"2021-01-05T22:29:40.9279522Z","value":1}]}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT + date: Tue, 05 Jan 2021 22:29:41 GMT server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked x-content-type-options: nosniff @@ -468,22 +468,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:37 GMT + - Tue, 05 Jan 2021 22:29:41 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:37 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_table_account.table.core.windows.net/uttable514415d4()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=1!4!cGs-&NextRowKey=1!8!MTAxMg-- response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.7881381Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2020-12-18T17:10:36.7881381Z","value":2},{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A36.9392478Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2020-12-18T17:10:36.9392478Z","value":3}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4","value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.0510383Z''\"","PartitionKey":"pk","RowKey":"1012","Timestamp":"2021-01-05T22:29:41.0510383Z","value":2},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.1771272Z''\"","PartitionKey":"pk","RowKey":"10123","Timestamp":"2021-01-05T22:29:41.1771272Z","value":3}]}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:37 GMT + date: Tue, 05 Jan 2021 22:29:41 GMT server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked x-content-type-options: nosniff @@ -502,22 +502,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 17:10:37 GMT + - Tue, 05 Jan 2021 22:29:41 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:37 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_table_account.table.core.windows.net/uttable514415d4()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=1!4!cGs-&NextRowKey=1!8!MTAxMjM0 response: body: - string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4","value":[{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.0813503Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2020-12-18T17:10:37.0813503Z","value":4},{"odata.etag":"W/\"datetime''2020-12-18T17%3A10%3A37.2194507Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2020-12-18T17:10:37.2194507Z","value":5}]}' + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable514415d4","value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.2952104Z''\"","PartitionKey":"pk","RowKey":"101234","Timestamp":"2021-01-05T22:29:41.2952104Z","value":4},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A41.4142951Z''\"","PartitionKey":"pk","RowKey":"1012345","Timestamp":"2021-01-05T22:29:41.4142951Z","value":5}]}' headers: cache-control: no-cache content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 - date: Fri, 18 Dec 2020 17:10:38 GMT + date: Tue, 05 Jan 2021 22:29:41 GMT server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked x-content-type-options: nosniff @@ -532,11 +532,11 @@ interactions: Accept: - application/json Date: - - Fri, 18 Dec 2020 17:10:37 GMT + - Tue, 05 Jan 2021 22:29:41 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:37 GMT + - Tue, 05 Jan 2021 22:29:41 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -547,7 +547,7 @@ interactions: headers: cache-control: no-cache content-length: '0' - date: Fri, 18 Dec 2020 17:10:38 GMT + date: Tue, 05 Jan 2021 22:29:42 GMT server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: nosniff x-ms-version: '2019-02-02' diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter.yaml new file mode 100644 index 000000000000..60cdc2b01e37 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter.yaml @@ -0,0 +1,189 @@ +interactions: +- request: + body: '{"TableName": "uttablec10a1327"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:53 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14: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":"uttablec10a1327"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:50 GMT + location: https://fake_table_account.table.core.windows.net/Tables('uttablec10a1327') + 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": "pkc10a1327", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkc10a1327", "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: + - Wed, 06 Jan 2021 19:14:53 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:53 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttablec10a1327 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablec10a1327/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A51.8643491Z''\"","PartitionKey":"pkc10a1327","RowKey":"rkc10a1327","Timestamp":"2021-01-06T19:14:51.8643491Z","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, 06 Jan 2021 19:14:50 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A51.8643491Z'" + location: https://fake_table_account.table.core.windows.net/uttablec10a1327(PartitionKey='pkc10a1327',RowKey='rkc10a1327') + 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/uttablec10a1327 +- request: + body: '{"PartitionKey": "pkc10a13271", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkc10a13271", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:53 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:53 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttablec10a1327 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablec10a1327/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A51.9834348Z''\"","PartitionKey":"pkc10a13271","RowKey":"rkc10a13271","Timestamp":"2021-01-06T19:14:51.9834348Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:51 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A51.9834348Z'" + location: https://fake_table_account.table.core.windows.net/uttablec10a1327(PartitionKey='pkc10a13271',RowKey='rkc10a13271') + 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/uttablec10a1327 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:54 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:54 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttablec10a1327()?$filter=married%20eq%20true + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttablec10a1327","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A51.8643491Z''\"","PartitionKey":"pkc10a1327","RowKey":"rkc10a1327","Timestamp":"2021-01-06T19:14:51.8643491Z","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, 06 Jan 2021 19:14: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 + url: https://seankaneprim.table.core.windows.net/uttablec10a1327()?$filter=married%20eq%20true +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:14:54 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:54 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttablec10a1327') + response: + body: + string: '' + headers: + cache-control: no-cache + content-length: '0' + date: Wed, 06 Jan 2021 19:14: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('uttablec10a1327') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_datetimes.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_datetimes.yaml new file mode 100644 index 000000000000..b543bab0e86a --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_datetimes.yaml @@ -0,0 +1,189 @@ +interactions: +- request: + body: '{"TableName": "uttable96d71746"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:54 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14: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":"uttable96d71746"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:52 GMT + location: https://fake_table_account.table.core.windows.net/Tables('uttable96d71746') + 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": "pk96d71746", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk96d71746", "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: + - Wed, 06 Jan 2021 19:14:54 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:54 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable96d71746 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable96d71746/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A52.824101Z''\"","PartitionKey":"pk96d71746","RowKey":"rk96d71746","Timestamp":"2021-01-06T19:14:52.824101Z","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, 06 Jan 2021 19:14:52 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A52.824101Z'" + location: https://fake_table_account.table.core.windows.net/uttable96d71746(PartitionKey='pk96d71746',RowKey='rk96d71746') + 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/uttable96d71746 +- request: + body: '{"PartitionKey": "pk96d717461", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk96d717461", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:54 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:54 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable96d71746 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable96d71746/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A52.944189Z''\"","PartitionKey":"pk96d717461","RowKey":"rk96d717461","Timestamp":"2021-01-06T19:14:52.944189Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:52 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A52.944189Z'" + location: https://fake_table_account.table.core.windows.net/uttable96d71746(PartitionKey='pk96d717461',RowKey='rk96d717461') + 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/uttable96d71746 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:55 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:55 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable96d71746()?$filter=birthday%20eq%20datetime'1970-10-04T00:00:00Z' + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable96d71746","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A52.824101Z''\"","PartitionKey":"pk96d71746","RowKey":"rk96d71746","Timestamp":"2021-01-06T19:14:52.824101Z","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, 06 Jan 2021 19:14: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: 200 + message: OK + url: https://seankaneprim.table.core.windows.net/uttable96d71746()?$filter=birthday%20eq%20datetime'1970-10-04T00:00:00Z' +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:14:55 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:55 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttable96d71746') + response: + body: + string: '' + headers: + cache-control: no-cache + content-length: '0' + date: Wed, 06 Jan 2021 19:14: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('uttable96d71746') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_floats.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_floats.yaml new file mode 100644 index 000000000000..38a45c93bfbd --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_floats.yaml @@ -0,0 +1,189 @@ +interactions: +- request: + body: '{"TableName": "uttable527d160f"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:16:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:16:01 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":"uttable527d160f"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:15:59 GMT + location: https://fake_table_account.table.core.windows.net/Tables('uttable527d160f') + 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": "pk527d160f", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk527d160f", "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: + - Wed, 06 Jan 2021 19:16:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:16:01 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable527d160f + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable527d160f/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A15%3A59.7320595Z''\"","PartitionKey":"pk527d160f","RowKey":"rk527d160f","Timestamp":"2021-01-06T19:15:59.7320595Z","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, 06 Jan 2021 19:15:59 GMT + etag: W/"datetime'2021-01-06T19%3A15%3A59.7320595Z'" + location: https://fake_table_account.table.core.windows.net/uttable527d160f(PartitionKey='pk527d160f',RowKey='rk527d160f') + 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/uttable527d160f +- request: + body: '{"PartitionKey": "pk527d160f1", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk527d160f1", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:16:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:16:01 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable527d160f + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable527d160f/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A15%3A59.8551474Z''\"","PartitionKey":"pk527d160f1","RowKey":"rk527d160f1","Timestamp":"2021-01-06T19:15:59.8551474Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:15:59 GMT + etag: W/"datetime'2021-01-06T19%3A15%3A59.8551474Z'" + location: https://fake_table_account.table.core.windows.net/uttable527d160f(PartitionKey='pk527d160f1',RowKey='rk527d160f1') + 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/uttable527d160f +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:16:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:16:01 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable527d160f()?$filter=ratio%20lt%204.1 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable527d160f","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A15%3A59.7320595Z''\"","PartitionKey":"pk527d160f","RowKey":"rk527d160f","Timestamp":"2021-01-06T19:15:59.7320595Z","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, 06 Jan 2021 19:15:59 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/uttable527d160f()?$filter=ratio%20lt%204.1 +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:16:02 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:16:02 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttable527d160f') + response: + body: + string: '' + headers: + cache-control: no-cache + content-length: '0' + date: Wed, 06 Jan 2021 19:15:59 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('uttable527d160f') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_guids.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_guids.yaml new file mode 100644 index 000000000000..2b2ecbc67049 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_guids.yaml @@ -0,0 +1,189 @@ +interactions: +- request: + body: '{"TableName": "uttable3c8a15a2"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:56 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14: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":"uttable3c8a15a2"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:54 GMT + location: https://fake_table_account.table.core.windows.net/Tables('uttable3c8a15a2') + 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": "pk3c8a15a2", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk3c8a15a2", "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: + - Wed, 06 Jan 2021 19:14:56 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:56 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable3c8a15a2 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable3c8a15a2/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A54.979782Z''\"","PartitionKey":"pk3c8a15a2","RowKey":"rk3c8a15a2","Timestamp":"2021-01-06T19:14:54.979782Z","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, 06 Jan 2021 19:14:54 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A54.979782Z'" + location: https://fake_table_account.table.core.windows.net/uttable3c8a15a2(PartitionKey='pk3c8a15a2',RowKey='rk3c8a15a2') + 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/uttable3c8a15a2 +- request: + body: '{"PartitionKey": "pk3c8a15a21", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk3c8a15a21", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:57 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:57 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable3c8a15a2 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable3c8a15a2/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A55.0978672Z''\"","PartitionKey":"pk3c8a15a21","RowKey":"rk3c8a15a21","Timestamp":"2021-01-06T19:14:55.0978672Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:54 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A55.0978672Z'" + location: https://fake_table_account.table.core.windows.net/uttable3c8a15a2(PartitionKey='pk3c8a15a21',RowKey='rk3c8a15a21') + 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/uttable3c8a15a2 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:57 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:57 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable3c8a15a2()?$filter=clsid%20eq%20guid'c9da6455-213d-42c9-9a79-3e9149a57833' + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable3c8a15a2","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A54.979782Z''\"","PartitionKey":"pk3c8a15a2","RowKey":"rk3c8a15a2","Timestamp":"2021-01-06T19:14:54.979782Z","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, 06 Jan 2021 19:14: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/uttable3c8a15a2()?$filter=clsid%20eq%20guid'c9da6455-213d-42c9-9a79-3e9149a57833' +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:14:57 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:57 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttable3c8a15a2') + response: + body: + string: '' + headers: + cache-control: no-cache + content-length: '0' + date: Wed, 06 Jan 2021 19:14: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('uttable3c8a15a2') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_integers.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_integers.yaml new file mode 100644 index 000000000000..87b39d0a5ba2 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_integers.yaml @@ -0,0 +1,189 @@ +interactions: +- request: + body: '{"TableName": "uttable7fec16e7"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:57 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:57 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":"uttable7fec16e7"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:55 GMT + location: https://fake_table_account.table.core.windows.net/Tables('uttable7fec16e7') + 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": "pk7fec16e7", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk7fec16e7", "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: + - Wed, 06 Jan 2021 19:14:57 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:57 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable7fec16e7 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable7fec16e7/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A55.9324951Z''\"","PartitionKey":"pk7fec16e7","RowKey":"rk7fec16e7","Timestamp":"2021-01-06T19:14:55.9324951Z","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, 06 Jan 2021 19:14:55 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A55.9324951Z'" + location: https://fake_table_account.table.core.windows.net/uttable7fec16e7(PartitionKey='pk7fec16e7',RowKey='rk7fec16e7') + 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/uttable7fec16e7 +- request: + body: '{"PartitionKey": "pk7fec16e71", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk7fec16e71", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:58 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:58 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable7fec16e7 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable7fec16e7/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A56.058586Z''\"","PartitionKey":"pk7fec16e71","RowKey":"rk7fec16e71","Timestamp":"2021-01-06T19:14:56.058586Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:55 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A56.058586Z'" + location: https://fake_table_account.table.core.windows.net/uttable7fec16e7(PartitionKey='pk7fec16e71',RowKey='rk7fec16e71') + 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/uttable7fec16e7 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:58 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:58 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable7fec16e7()?$filter=age%20lt%2040 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable7fec16e7","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A55.9324951Z''\"","PartitionKey":"pk7fec16e7","RowKey":"rk7fec16e7","Timestamp":"2021-01-06T19:14:55.9324951Z","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, 06 Jan 2021 19:14: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/uttable7fec16e7()?$filter=age%20lt%2040 +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:14:58 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:58 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttable7fec16e7') + response: + body: + string: '' + headers: + cache-control: no-cache + content-length: '0' + date: Wed, 06 Jan 2021 19:14: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('uttable7fec16e7') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_multiple_params.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_multiple_params.yaml new file mode 100644 index 000000000000..1789f4238061 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_async.test_query_user_filter_multiple_params.yaml @@ -0,0 +1,189 @@ +interactions: +- request: + body: '{"TableName": "uttable2c6a19d5"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:58 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:58 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":"uttable2c6a19d5"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:56 GMT + location: https://fake_table_account.table.core.windows.net/Tables('uttable2c6a19d5') + 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": "pk2c6a19d5", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk2c6a19d5", "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: + - Wed, 06 Jan 2021 19:14:58 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:58 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable2c6a19d5 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable2c6a19d5/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A56.9094398Z''\"","PartitionKey":"pk2c6a19d5","RowKey":"rk2c6a19d5","Timestamp":"2021-01-06T19:14:56.9094398Z","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, 06 Jan 2021 19:14:56 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A56.9094398Z'" + location: https://fake_table_account.table.core.windows.net/uttable2c6a19d5(PartitionKey='pk2c6a19d5',RowKey='rk2c6a19d5') + 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/uttable2c6a19d5 +- request: + body: '{"PartitionKey": "pk2c6a19d51", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk2c6a19d51", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:59 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:59 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_table_account.table.core.windows.net/uttable2c6a19d5 + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable2c6a19d5/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A57.035531Z''\"","PartitionKey":"pk2c6a19d51","RowKey":"rk2c6a19d51","Timestamp":"2021-01-06T19:14:57.035531Z","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833"}' + headers: + cache-control: no-cache + content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: Wed, 06 Jan 2021 19:14:56 GMT + etag: W/"datetime'2021-01-06T19%3A14%3A57.035531Z'" + location: https://fake_table_account.table.core.windows.net/uttable2c6a19d5(PartitionKey='pk2c6a19d51',RowKey='rk2c6a19d51') + 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/uttable2c6a19d5 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:14:59 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:59 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_table_account.table.core.windows.net/uttable2c6a19d5()?$filter=married%20eq%20true%20and%20RowKey%20eq%20'rk2c6a19d5' + response: + body: + string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable2c6a19d5","value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A14%3A56.9094398Z''\"","PartitionKey":"pk2c6a19d5","RowKey":"rk2c6a19d5","Timestamp":"2021-01-06T19:14:56.9094398Z","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, 06 Jan 2021 19:14: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/uttable2c6a19d5()?$filter=married%20eq%20true%20and%20RowKey%20eq%20'rk2c6a19d5' +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:14:59 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:14:59 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_table_account.table.core.windows.net/Tables('uttable2c6a19d5') + response: + body: + string: '' + headers: + cache-control: no-cache + content-length: '0' + date: Wed, 06 Jan 2021 19:14:57 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('uttable2c6a19d5') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_entities_each_page.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_entities_each_page.yaml index 4083ed421398..70cf556522e4 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_entities_each_page.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_entities_each_page.yaml @@ -15,11 +15,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:39 GMT + - Tue, 05 Jan 2021 22:29:42 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 16:25:39 GMT + - Tue, 05 Jan 2021 22:29:42 GMT x-ms-version: - '2019-02-02' method: POST @@ -31,9 +31,9 @@ interactions: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A40.7163400Z'" + - W/"datetime'2021-01-05T22%3A29%3A43.1781384Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable6921164a') server: @@ -60,25 +60,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:40 GMT + - Tue, 05 Jan 2021 22:29:43 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 16:25:40 GMT + - Tue, 05 Jan 2021 22:29:43 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.3245960Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2020-12-18T16:25:41.3245960Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A43.8050312Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2021-01-05T22:29:43.8050312Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A41.3245960Z'" + - W/"datetime'2021-01-05T22%3A29%3A43.8050312Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk',RowKey='10') server: @@ -105,25 +105,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.4556680Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2020-12-18T16:25:41.4556680Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A43.9167496Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2021-01-05T22:29:43.9167496Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A41.4556680Z'" + - W/"datetime'2021-01-05T22%3A29%3A43.9167496Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk',RowKey='101') server: @@ -150,25 +150,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.5720968Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2020-12-18T16:25:41.5720968Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.0260104Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2021-01-05T22:29:44.0260104Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A41.5720968Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.0260104Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk',RowKey='1012') server: @@ -195,25 +195,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.7014280Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2020-12-18T16:25:41.7014280Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.1584136Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2021-01-05T22:29:44.1584136Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A41.7014280Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.1584136Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk',RowKey='10123') server: @@ -240,25 +240,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.8272776Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2020-12-18T16:25:41.8272776Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.2711560Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2021-01-05T22:29:44.2711560Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A41.8272776Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.2711560Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk',RowKey='101234') server: @@ -285,25 +285,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.9566088Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2020-12-18T16:25:41.9566088Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.3866632Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2021-01-05T22:29:44.3866632Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A41.9566088Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.3866632Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk',RowKey='1012345') server: @@ -330,25 +330,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:44 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A42.0881928Z''\"","PartitionKey":"pk6","RowKey":"10123456","value":6,"Timestamp":"2020-12-18T16:25:42.0881928Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.5129224Z''\"","PartitionKey":"pk6","RowKey":"10123456","value":6,"Timestamp":"2021-01-05T22:29:44.5129224Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A42.0881928Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.5129224Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk6',RowKey='10123456') server: @@ -375,25 +375,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:44 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A42.2029832Z''\"","PartitionKey":"pk67","RowKey":"101234567","value":7,"Timestamp":"2020-12-18T16:25:42.2029832Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.6275080Z''\"","PartitionKey":"pk67","RowKey":"101234567","value":7,"Timestamp":"2021-01-05T22:29:44.6275080Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:43 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A42.2029832Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.6275080Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk67',RowKey='101234567') server: @@ -420,25 +420,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:41 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:41 GMT + - Tue, 05 Jan 2021 22:29:44 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A42.3162376Z''\"","PartitionKey":"pk678","RowKey":"1012345678","value":8,"Timestamp":"2020-12-18T16:25:42.3162376Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.7916552Z''\"","PartitionKey":"pk678","RowKey":"1012345678","value":8,"Timestamp":"2021-01-05T22:29:44.7916552Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A42.3162376Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.7916552Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk678',RowKey='1012345678') server: @@ -465,25 +465,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A42.4230408Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","value":9,"Timestamp":"2020-12-18T16:25:42.4230408Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a/$metadata#uttable6921164a/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.9071624Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","value":9,"Timestamp":"2021-01-05T22:29:44.9071624Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT etag: - - W/"datetime'2020-12-18T16%3A25%3A42.4230408Z'" + - W/"datetime'2021-01-05T22%3A29%3A44.9071624Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a(PartitionKey='pk6789',RowKey='10123456789') server: @@ -505,29 +505,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a()?$top=2&$filter=PartitionKey%20eq%20%27pk%27 response: body: - string: '{"value":[{"odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.3245960Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2020-12-18T16:25:41.3245960Z"},{"odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.4556680Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2020-12-18T16:25:41.4556680Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable6921164a"}' + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A43.8050312Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2021-01-05T22:29:43.8050312Z"},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A43.9167496Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2021-01-05T22:29:43.9167496Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable6921164a"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-continuation-nextpartitionkey: - - '{"token":"+RID:~VGAIANJIHAsCAAAAAAAAAA==#RT:1#TRC:2#ISV:2#IEO:65567#QCF:1#FPC:AQIAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}' + - '{"token":"+RID:~VGAIAJ9x7-ACAAAAAAAAAA==#RT:1#TRC:2#ISV:2#IEO:65567#QCF:1#FPC:AQIAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}' x-ms-continuation-nextrowkey: - NA status: @@ -545,29 +545,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT x-ms-version: - '2019-02-02' method: GET - uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a()?$top=2&$filter=PartitionKey%20eq%20%27pk%27&NextPartitionKey=%7B%22token%22%3A%22%2BRID%3A~VGAIANJIHAsCAAAAAAAAAA%3D%3D%23RT%3A1%23TRC%3A2%23ISV%3A2%23IEO%3A65567%23QCF%3A1%23FPC%3AAQIAAAAAAAAABgAAAAAAAAA%3D%22%2C%22range%22%3A%7B%22min%22%3A%22%22%2C%22max%22%3A%22FF%22%7D%7D&NextRowKey=NA + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a()?$top=2&$filter=PartitionKey%20eq%20%27pk%27&NextPartitionKey=%7B%22token%22%3A%22%2BRID%3A~VGAIAJ9x7-ACAAAAAAAAAA%3D%3D%23RT%3A1%23TRC%3A2%23ISV%3A2%23IEO%3A65567%23QCF%3A1%23FPC%3AAQIAAAAAAAAABgAAAAAAAAA%3D%22%2C%22range%22%3A%7B%22min%22%3A%22%22%2C%22max%22%3A%22FF%22%7D%7D&NextRowKey=NA response: body: - string: '{"value":[{"odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.5720968Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2020-12-18T16:25:41.5720968Z"},{"odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.7014280Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2020-12-18T16:25:41.7014280Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable6921164a"}' + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.0260104Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2021-01-05T22:29:44.0260104Z"},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.1584136Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2021-01-05T22:29:44.1584136Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable6921164a"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-continuation-nextpartitionkey: - - '[{"token":"+RID:~VGAIANJIHAsEAAAAAAAAAA==#RT:2#TRC:4#ISV:2#IEO:65567#QCF:1#FPC:AQQAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}]' + - '[{"token":"+RID:~VGAIAJ9x7-AEAAAAAAAAAA==#RT:2#TRC:4#ISV:2#IEO:65567#QCF:1#FPC:AQQAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}]' x-ms-continuation-nextrowkey: - NA status: @@ -585,23 +585,23 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT x-ms-version: - '2019-02-02' method: GET - uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a()?$top=2&$filter=PartitionKey%20eq%20%27pk%27&NextPartitionKey=%5B%7B%22token%22%3A%22%2BRID%3A~VGAIANJIHAsEAAAAAAAAAA%3D%3D%23RT%3A2%23TRC%3A4%23ISV%3A2%23IEO%3A65567%23QCF%3A1%23FPC%3AAQQAAAAAAAAABgAAAAAAAAA%3D%22%2C%22range%22%3A%7B%22min%22%3A%22%22%2C%22max%22%3A%22FF%22%7D%7D%5D&NextRowKey=NA + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6921164a()?$top=2&$filter=PartitionKey%20eq%20%27pk%27&NextPartitionKey=%5B%7B%22token%22%3A%22%2BRID%3A~VGAIAJ9x7-AEAAAAAAAAAA%3D%3D%23RT%3A2%23TRC%3A4%23ISV%3A2%23IEO%3A65567%23QCF%3A1%23FPC%3AAQQAAAAAAAAABgAAAAAAAAA%3D%22%2C%22range%22%3A%7B%22min%22%3A%22%22%2C%22max%22%3A%22FF%22%7D%7D%5D&NextRowKey=NA response: body: - string: '{"value":[{"odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.8272776Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2020-12-18T16:25:41.8272776Z"},{"odata.etag":"W/\"datetime''2020-12-18T16%3A25%3A41.9566088Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2020-12-18T16:25:41.9566088Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable6921164a"}' + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.2711560Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2021-01-05T22:29:44.2711560Z"},{"odata.etag":"W/\"datetime''2021-01-05T22%3A29%3A44.3866632Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2021-01-05T22:29:44.3866632Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable6921164a"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -621,11 +621,11 @@ interactions: Content-Length: - '0' Date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:45 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -637,7 +637,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:44 GMT server: - Microsoft-HTTPAPI/2.0 status: @@ -655,11 +655,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:25:42 GMT + - Tue, 05 Jan 2021 22:29: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 16:25:42 GMT + - Tue, 05 Jan 2021 22:29:45 GMT x-ms-version: - '2019-02-02' method: GET @@ -671,7 +671,7 @@ interactions: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:25:43 GMT + - Tue, 05 Jan 2021 22:29:45 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter.yaml index 5cfedfdb59b3..feccbc76c8fd 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter.yaml @@ -15,11 +15,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:29:30 GMT + - Wed, 06 Jan 2021 19:17:29 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 16:29:30 GMT + - Wed, 06 Jan 2021 19:17:29 GMT x-ms-version: - '2019-02-02' method: POST @@ -31,9 +31,9 @@ interactions: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:28 GMT etag: - - W/"datetime'2020-12-18T16%3A29%3A31.6612104Z'" + - W/"datetime'2021-01-06T19%3A17%3A28.5399560Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttabled5ad139d') server: @@ -65,25 +65,25 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:29:31 GMT + - Wed, 06 Jan 2021 19:17:31 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 16:29:31 GMT + - Wed, 06 Jan 2021 19:17:31 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttabled5ad139d response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttabled5ad139d/$metadata#uttabled5ad139d/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A29%3A32.3767816Z''\"","PartitionKey":"pkd5ad139d","RowKey":"rkd5ad139d","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2020-12-18T16:29:32.3767816Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttabled5ad139d/$metadata#uttabled5ad139d/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A17%3A29.2145672Z''\"","PartitionKey":"pkd5ad139d","RowKey":"rkd5ad139d","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:17:29.2145672Z"}' headers: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:28 GMT etag: - - W/"datetime'2020-12-18T16%3A29%3A32.3767816Z'" + - W/"datetime'2021-01-06T19%3A17%3A29.2145672Z'" location: - https://fake_cosmos_account.table.cosmos.azure.com/uttabled5ad139d(PartitionKey='pkd5ad139d',RowKey='rkd5ad139d') server: @@ -93,6 +93,42 @@ interactions: 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: + - Wed, 06 Jan 2021 19:17:31 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:17:31 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttabled5ad139d()?$filter=married%20eq%20true + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A17%3A29.2145672Z''\"","PartitionKey":"pkd5ad139d","RowKey":"rkd5ad139d","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:17:29.2145672Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttabled5ad139d"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:17:28 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok - request: body: null headers: @@ -105,11 +141,11 @@ interactions: Content-Length: - '0' Date: - - Fri, 18 Dec 2020 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:31 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 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:31 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -121,7 +157,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Dec 2020 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:28 GMT server: - Microsoft-HTTPAPI/2.0 status: @@ -139,11 +175,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:31 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 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:31 GMT x-ms-version: - '2019-02-02' method: GET @@ -155,7 +191,7 @@ interactions: content-type: - application/json;odata=minimalmetadata date: - - Fri, 18 Dec 2020 16:29:32 GMT + - Wed, 06 Jan 2021 19:17:28 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_datetimes.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_datetimes.yaml new file mode 100644 index 000000000000..51736cb80551 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_datetimes.yaml @@ -0,0 +1,253 @@ +interactions: +- request: + body: '{"TableName": "uttableb01617bc"}' + 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, 06 Jan 2021 19:18:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:01 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttableb01617bc","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:00 GMT + etag: + - W/"datetime'2021-01-06T19%3A18%3A00.7086088Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttableb01617bc') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Ok +- request: + body: '{"PartitionKey": "pkb01617bc", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkb01617bc", "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, 06 Jan 2021 19:18:03 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:03 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttableb01617bc + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttableb01617bc/$metadata#uttableb01617bc/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A18%3A01.2901384Z''\"","PartitionKey":"pkb01617bc","RowKey":"rkb01617bc","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:18:01.2901384Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:00 GMT + etag: + - W/"datetime'2021-01-06T19%3A18%3A01.2901384Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttableb01617bc(PartitionKey='pkb01617bc',RowKey='rkb01617bc') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: '{"PartitionKey": "pkb01617bc1", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkb01617bc1", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:18:03 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:03 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttableb01617bc + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttableb01617bc/$metadata#uttableb01617bc/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A18%3A01.4064648Z''\"","PartitionKey":"pkb01617bc1","RowKey":"rkb01617bc1","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:18:01.4064648Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:00 GMT + etag: + - W/"datetime'2021-01-06T19%3A18%3A01.4064648Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttableb01617bc(PartitionKey='pkb01617bc1',RowKey='rkb01617bc1') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + 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: + - Wed, 06 Jan 2021 19:18:03 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:03 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttableb01617bc()?$filter=birthday%20eq%20datetime%271970-10-04T00%3A00%3A00Z%27 + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A18%3A01.2901384Z''\"","PartitionKey":"pkb01617bc","RowKey":"rkb01617bc","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:18:01.2901384Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttableb01617bc"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:00 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Wed, 06 Jan 2021 19:18:03 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:03 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttableb01617bc') + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:18:00 GMT + server: + - Microsoft-HTTPAPI/2.0 + 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, 06 Jan 2021 19:18:03 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:03 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"value":[],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:00 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_floats.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_floats.yaml new file mode 100644 index 000000000000..9d7e7249a77b --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_floats.yaml @@ -0,0 +1,253 @@ +interactions: +- request: + body: '{"TableName": "uttable6a5a1685"}' + 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, 06 Jan 2021 19:18:34 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:34 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttable6a5a1685","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:33 GMT + etag: + - W/"datetime'2021-01-06T19%3A18%3A33.0864648Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable6a5a1685') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Ok +- request: + body: '{"PartitionKey": "pk6a5a1685", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk6a5a1685", "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, 06 Jan 2021 19:18:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:35 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6a5a1685 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6a5a1685/$metadata#uttable6a5a1685/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A18%3A33.6465928Z''\"","PartitionKey":"pk6a5a1685","RowKey":"rk6a5a1685","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:18:33.6465928Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:33 GMT + etag: + - W/"datetime'2021-01-06T19%3A18%3A33.6465928Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttable6a5a1685(PartitionKey='pk6a5a1685',RowKey='rk6a5a1685') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: '{"PartitionKey": "pk6a5a16851", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk6a5a16851", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:18:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:35 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6a5a1685 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable6a5a1685/$metadata#uttable6a5a1685/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A18%3A33.7593352Z''\"","PartitionKey":"pk6a5a16851","RowKey":"rk6a5a16851","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:18:33.7593352Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:33 GMT + etag: + - W/"datetime'2021-01-06T19%3A18%3A33.7593352Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttable6a5a1685(PartitionKey='pk6a5a16851',RowKey='rk6a5a16851') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + 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: + - Wed, 06 Jan 2021 19:18:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:35 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable6a5a1685()?$filter=ratio%20lt%204.1 + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A18%3A33.6465928Z''\"","PartitionKey":"pk6a5a1685","RowKey":"rk6a5a1685","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:18:33.6465928Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable6a5a1685"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:33 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Wed, 06 Jan 2021 19:18:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:35 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable6a5a1685') + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:18:33 GMT + server: + - Microsoft-HTTPAPI/2.0 + 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, 06 Jan 2021 19:18:36 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:18:36 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"value":[],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:18:33 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_guids.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_guids.yaml new file mode 100644 index 000000000000..e759bc88537e --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_guids.yaml @@ -0,0 +1,253 @@ +interactions: +- request: + body: '{"TableName": "uttable53f11618"}' + 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, 06 Jan 2021 19:19:06 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:06 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttable53f11618","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:05 GMT + etag: + - W/"datetime'2021-01-06T19%3A19%3A05.1673608Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable53f11618') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Ok +- request: + body: '{"PartitionKey": "pk53f11618", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk53f11618", "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, 06 Jan 2021 19:19:07 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:07 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable53f11618 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable53f11618/$metadata#uttable53f11618/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A19%3A05.7163272Z''\"","PartitionKey":"pk53f11618","RowKey":"rk53f11618","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:19:05.7163272Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:05 GMT + etag: + - W/"datetime'2021-01-06T19%3A19%3A05.7163272Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttable53f11618(PartitionKey='pk53f11618',RowKey='rk53f11618') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: '{"PartitionKey": "pk53f116181", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk53f116181", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:19:07 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:07 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable53f11618 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable53f11618/$metadata#uttable53f11618/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A19%3A05.8298888Z''\"","PartitionKey":"pk53f116181","RowKey":"rk53f116181","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:19:05.8298888Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:05 GMT + etag: + - W/"datetime'2021-01-06T19%3A19%3A05.8298888Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttable53f11618(PartitionKey='pk53f116181',RowKey='rk53f116181') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + 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: + - Wed, 06 Jan 2021 19:19:07 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:07 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable53f11618()?$filter=clsid%20eq%20guid%27c9da6455-213d-42c9-9a79-3e9149a57833%27 + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A19%3A05.7163272Z''\"","PartitionKey":"pk53f11618","RowKey":"rk53f11618","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:19:05.7163272Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable53f11618"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:05 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Wed, 06 Jan 2021 19:19:08 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:08 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable53f11618') + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:19:06 GMT + server: + - Microsoft-HTTPAPI/2.0 + 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, 06 Jan 2021 19:19:08 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:08 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"value":[],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:06 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_integers.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_integers.yaml new file mode 100644 index 000000000000..63359a0cf748 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_integers.yaml @@ -0,0 +1,253 @@ +interactions: +- request: + body: '{"TableName": "uttable98b5175d"}' + 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, 06 Jan 2021 19:19:38 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:38 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttable98b5175d","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:37 GMT + etag: + - W/"datetime'2021-01-06T19%3A19%3A37.3799432Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable98b5175d') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Ok +- request: + body: '{"PartitionKey": "pk98b5175d", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk98b5175d", "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, 06 Jan 2021 19:19:39 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:39 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable98b5175d + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable98b5175d/$metadata#uttable98b5175d/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A19%3A37.9373064Z''\"","PartitionKey":"pk98b5175d","RowKey":"rk98b5175d","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:19:37.9373064Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:37 GMT + etag: + - W/"datetime'2021-01-06T19%3A19%3A37.9373064Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttable98b5175d(PartitionKey='pk98b5175d',RowKey='rk98b5175d') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: '{"PartitionKey": "pk98b5175d1", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk98b5175d1", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:19:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:40 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable98b5175d + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable98b5175d/$metadata#uttable98b5175d/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A19%3A38.0553736Z''\"","PartitionKey":"pk98b5175d1","RowKey":"rk98b5175d1","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:19:38.0553736Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:38 GMT + etag: + - W/"datetime'2021-01-06T19%3A19%3A38.0553736Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttable98b5175d(PartitionKey='pk98b5175d1',RowKey='rk98b5175d1') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + 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: + - Wed, 06 Jan 2021 19:19:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:40 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable98b5175d()?$filter=age%20lt%2040 + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A19%3A37.9373064Z''\"","PartitionKey":"pk98b5175d","RowKey":"rk98b5175d","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:19:37.9373064Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable98b5175d"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:38 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Wed, 06 Jan 2021 19:19:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:40 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable98b5175d') + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:19:38 GMT + server: + - Microsoft-HTTPAPI/2.0 + 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, 06 Jan 2021 19:19:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:19:40 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"value":[],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:19:38 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_multiple_params.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_multiple_params.yaml new file mode 100644 index 000000000000..9c82102bf4cc --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos.test_query_user_filter_multiple_params.yaml @@ -0,0 +1,202 @@ +interactions: +- request: + body: '{"TableName": "uttable486d1a4b"}' + 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, 06 Jan 2021 19:20:10 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:20:10 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttable486d1a4b","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:20:09 GMT + etag: + - W/"datetime'2021-01-06T19%3A20%3A09.4402568Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable486d1a4b') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 201 + message: Ok +- request: + body: '{"PartitionKey": "pk486d1a4b", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk486d1a4b", "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, 06 Jan 2021 19:20:11 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:20:11 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable486d1a4b + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable486d1a4b/$metadata#uttable486d1a4b/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A20%3A10.0342792Z''\"","PartitionKey":"pk486d1a4b","RowKey":"rk486d1a4b","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:20:10.0342792Z"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:20:09 GMT + etag: + - W/"datetime'2021-01-06T19%3A20%3A10.0342792Z'" + location: + - https://fake_cosmos_account.table.cosmos.azure.com/uttable486d1a4b(PartitionKey='pk486d1a4b',RowKey='rk486d1a4b') + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + 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: + - Wed, 06 Jan 2021 19:20:12 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:20:12 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable486d1a4b()?$filter=married%20eq%20true%20and%20RowKey%20eq%20%27rk486d1a4b%27 + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A20%3A10.0342792Z''\"","PartitionKey":"pk486d1a4b","RowKey":"rk486d1a4b","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:20:10.0342792Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable486d1a4b"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:20:09 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Wed, 06 Jan 2021 19:20:12 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:20:12 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable486d1a4b') + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 06 Jan 2021 19:20:09 GMT + server: + - Microsoft-HTTPAPI/2.0 + 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, 06 Jan 2021 19:20:12 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:20:12 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"value":[],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables"}' + headers: + content-type: + - application/json;odata=minimalmetadata + date: + - Wed, 06 Jan 2021 19:20:09 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: Ok +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_entities_each_page.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_entities_each_page.yaml index 305a515d9d0c..62072a26f035 100644 --- a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_entities_each_page.yaml +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_entities_each_page.yaml @@ -11,11 +11,11 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:35 GMT + - Tue, 05 Jan 2021 22:30:15 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 16:47:35 GMT + - Tue, 05 Jan 2021 22:30:15 GMT x-ms-version: - '2019-02-02' method: POST @@ -25,8 +25,8 @@ interactions: string: '{"TableName":"uttablef8e618c7","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:36 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A36.3299336Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A16.6543368Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttablef8e618c7') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -47,22 +47,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:36 GMT + - Tue, 05 Jan 2021 22:30:16 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 16:47:36 GMT + - Tue, 05 Jan 2021 22:30:16 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.1100168Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2020-12-18T16:47:37.1100168Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.2048392Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2021-01-05T22:30:17.2048392Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:36 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.1100168Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.2048392Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk',RowKey='10') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -83,22 +83,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:36 GMT + - Tue, 05 Jan 2021 22:30:16 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 16:47:36 GMT + - Tue, 05 Jan 2021 22:30:16 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.2218376Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2020-12-18T16:47:37.2218376Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.3090824Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2021-01-05T22:30:17.3090824Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.2218376Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.3090824Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk',RowKey='101') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -119,22 +119,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:36 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:36 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.3322248Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2020-12-18T16:47:37.3322248Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.4141448Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2021-01-05T22:30:17.4141448Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.3322248Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.4141448Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk',RowKey='1012') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -155,22 +155,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.4401544Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2020-12-18T16:47:37.4401544Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.5187976Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2021-01-05T22:30:17.5187976Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.4401544Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.5187976Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk',RowKey='10123') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -191,22 +191,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.5480840Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2020-12-18T16:47:37.5480840Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.6263176Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2021-01-05T22:30:17.6263176Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.5480840Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.6263176Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk',RowKey='101234') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -227,22 +227,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.6522248Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2020-12-18T16:47:37.6522248Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.7336328Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2021-01-05T22:30:17.7336328Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.6522248Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.7336328Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk',RowKey='1012345') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -263,22 +263,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.8145288Z''\"","PartitionKey":"pk6","RowKey":"10123456","value":6,"Timestamp":"2020-12-18T16:47:37.8145288Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.8467848Z''\"","PartitionKey":"pk6","RowKey":"10123456","value":6,"Timestamp":"2021-01-05T22:30:17.8467848Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.8145288Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.8467848Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk6',RowKey='10123456') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -299,22 +299,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.9447816Z''\"","PartitionKey":"pk67","RowKey":"101234567","value":7,"Timestamp":"2020-12-18T16:47:37.9447816Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.9511304Z''\"","PartitionKey":"pk67","RowKey":"101234567","value":7,"Timestamp":"2021-01-05T22:30:17.9511304Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A37.9447816Z'" + date: Tue, 05 Jan 2021 22:30:17 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A17.9511304Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk67',RowKey='101234567') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -335,22 +335,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A38.1148680Z''\"","PartitionKey":"pk678","RowKey":"1012345678","value":8,"Timestamp":"2020-12-18T16:47:38.1148680Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A18.0668424Z''\"","PartitionKey":"pk678","RowKey":"1012345678","value":8,"Timestamp":"2021-01-05T22:30:18.0668424Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:37 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A38.1148680Z'" + date: Tue, 05 Jan 2021 22:30:18 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A18.0668424Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk678',RowKey='1012345678') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -371,22 +371,22 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:37 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: POST uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7 response: body: - string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A38.3086088Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","value":9,"Timestamp":"2020-12-18T16:47:38.3086088Z"}' + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7/$metadata#uttablef8e618c7/@Element","odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A18.1833736Z''\"","PartitionKey":"pk6789","RowKey":"10123456789","value":9,"Timestamp":"2021-01-05T22:30:18.1833736Z"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:38 GMT - etag: W/"datetime'2020-12-18T16%3A47%3A38.3086088Z'" + date: Tue, 05 Jan 2021 22:30:18 GMT + etag: W/"datetime'2021-01-05T22%3A30%3A18.1833736Z'" location: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7(PartitionKey='pk6789',RowKey='10123456789') server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked @@ -402,24 +402,24 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:17 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 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:17 GMT x-ms-version: - '2019-02-02' method: GET uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk' response: body: - string: '{"value":[{"odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.1100168Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2020-12-18T16:47:37.1100168Z"},{"odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.2218376Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2020-12-18T16:47:37.2218376Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablef8e618c7"}' + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.2048392Z''\"","PartitionKey":"pk","RowKey":"10","value":0,"Timestamp":"2021-01-05T22:30:17.2048392Z"},{"odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.3090824Z''\"","PartitionKey":"pk","RowKey":"101","value":1,"Timestamp":"2021-01-05T22:30:17.3090824Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablef8e618c7"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:38 GMT + date: Tue, 05 Jan 2021 22:30:18 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked - x-ms-continuation-nextpartitionkey: '{"token":"+RID:~VGAIAIAuoicCAAAAAAAAAA==#RT:1#TRC:2#ISV:2#IEO:65567#QCF:1#FPC:AQIAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}' + x-ms-continuation-nextpartitionkey: '{"token":"+RID:~VGAIAJEO--ICAAAAAAAAAA==#RT:1#TRC:2#ISV:2#IEO:65567#QCF:1#FPC:AQIAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}' x-ms-continuation-nextrowkey: NA status: code: 200 @@ -433,29 +433,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:18 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 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:18 GMT x-ms-version: - '2019-02-02' method: GET - uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%7B%22token%22:%22%2BRID:~VGAIAIAuoicCAAAAAAAAAA%3D%3D%23RT:1%23TRC:2%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQIAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D&NextRowKey=NA + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%7B%22token%22:%22%2BRID:~VGAIAJEO--ICAAAAAAAAAA%3D%3D%23RT:1%23TRC:2%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQIAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D&NextRowKey=NA response: body: - string: '{"value":[{"odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.3322248Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2020-12-18T16:47:37.3322248Z"},{"odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.4401544Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2020-12-18T16:47:37.4401544Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablef8e618c7"}' + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.4141448Z''\"","PartitionKey":"pk","RowKey":"1012","value":2,"Timestamp":"2021-01-05T22:30:17.4141448Z"},{"odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.5187976Z''\"","PartitionKey":"pk","RowKey":"10123","value":3,"Timestamp":"2021-01-05T22:30:17.5187976Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablef8e618c7"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:38 GMT + date: Tue, 05 Jan 2021 22:30:18 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked - x-ms-continuation-nextpartitionkey: '[{"token":"+RID:~VGAIAIAuoicEAAAAAAAAAA==#RT:2#TRC:4#ISV:2#IEO:65567#QCF:1#FPC:AQQAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}]' + x-ms-continuation-nextpartitionkey: '[{"token":"+RID:~VGAIAJEO--IEAAAAAAAAAA==#RT:2#TRC:4#ISV:2#IEO:65567#QCF:1#FPC:AQQAAAAAAAAABgAAAAAAAAA=","range":{"min":"","max":"FF"}}]' x-ms-continuation-nextrowkey: NA status: code: 200 message: Ok - url: https://seankaneprim.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%7B%22token%22:%22%2BRID:~VGAIAIAuoicCAAAAAAAAAA%3D%3D%23RT:1%23TRC:2%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQIAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D&NextRowKey=NA + url: https://seankaneprim.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%7B%22token%22:%22%2BRID:~VGAIAJEO--ICAAAAAAAAAA%3D%3D%23RT:1%23TRC:2%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQIAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D&NextRowKey=NA - request: body: null headers: @@ -464,38 +464,38 @@ interactions: DataServiceVersion: - '3.0' Date: - - Fri, 18 Dec 2020 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:18 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 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:18 GMT x-ms-version: - '2019-02-02' method: GET - uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%5B%7B%22token%22:%22%2BRID:~VGAIAIAuoicEAAAAAAAAAA%3D%3D%23RT:2%23TRC:4%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQQAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D%5D&NextRowKey=NA + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%5B%7B%22token%22:%22%2BRID:~VGAIAJEO--IEAAAAAAAAAA%3D%3D%23RT:2%23TRC:4%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQQAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D%5D&NextRowKey=NA response: body: - string: '{"value":[{"odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.5480840Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2020-12-18T16:47:37.5480840Z"},{"odata.etag":"W/\"datetime''2020-12-18T16%3A47%3A37.6522248Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2020-12-18T16:47:37.6522248Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablef8e618c7"}' + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.6263176Z''\"","PartitionKey":"pk","RowKey":"101234","value":4,"Timestamp":"2021-01-05T22:30:17.6263176Z"},{"odata.etag":"W/\"datetime''2021-01-05T22%3A30%3A17.7336328Z''\"","PartitionKey":"pk","RowKey":"1012345","value":5,"Timestamp":"2021-01-05T22:30:17.7336328Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablef8e618c7"}' headers: content-type: application/json;odata=minimalmetadata - date: Fri, 18 Dec 2020 16:47:38 GMT + date: Tue, 05 Jan 2021 22:30:18 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: Ok - url: https://seankaneprim.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%5B%7B%22token%22:%22%2BRID:~VGAIAIAuoicEAAAAAAAAAA%3D%3D%23RT:2%23TRC:4%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQQAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D%5D&NextRowKey=NA + url: https://seankaneprim.table.cosmos.azure.com/uttablef8e618c7()?$top=2&$filter=PartitionKey%20eq%20'pk'&NextPartitionKey=%5B%7B%22token%22:%22%2BRID:~VGAIAJEO--IEAAAAAAAAAA%3D%3D%23RT:2%23TRC:4%23ISV:2%23IEO:65567%23QCF:1%23FPC:AQQAAAAAAAAABgAAAAAAAAA%3D%22,%22range%22:%7B%22min%22:%22%22,%22max%22:%22FF%22%7D%7D%5D&NextRowKey=NA - request: body: null headers: Accept: - application/json Date: - - Fri, 18 Dec 2020 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:18 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 16:47:38 GMT + - Tue, 05 Jan 2021 22:30:18 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -505,7 +505,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 18 Dec 2020 16:47:38 GMT + date: Tue, 05 Jan 2021 22:30:18 GMT server: Microsoft-HTTPAPI/2.0 status: code: 204 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter.yaml new file mode 100644 index 000000000000..0639d090576e --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter.yaml @@ -0,0 +1,175 @@ +interactions: +- request: + body: '{"TableName": "uttable5416161a"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:22:00 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:00 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttable5416161a","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:21:58 GMT + etag: W/"datetime'2021-01-06T19%3A21%3A58.6977800Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable5416161a') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/Tables +- request: + body: '{"PartitionKey": "pk5416161a", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk5416161a", "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: + - Wed, 06 Jan 2021 19:22:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:01 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable5416161a + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable5416161a/$metadata#uttable5416161a/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A21%3A59.2413192Z''\"","PartitionKey":"pk5416161a","RowKey":"rk5416161a","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:21:59.2413192Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:21:58 GMT + etag: W/"datetime'2021-01-06T19%3A21%3A59.2413192Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttable5416161a(PartitionKey='pk5416161a',RowKey='rk5416161a') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttable5416161a +- request: + body: '{"PartitionKey": "pk5416161a1", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk5416161a1", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:22:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:01 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable5416161a + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable5416161a/$metadata#uttable5416161a/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A21%3A59.3548808Z''\"","PartitionKey":"pk5416161a1","RowKey":"rk5416161a1","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:21:59.3548808Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:21:58 GMT + etag: W/"datetime'2021-01-06T19%3A21%3A59.3548808Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttable5416161a(PartitionKey='pk5416161a1',RowKey='rk5416161a1') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttable5416161a +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:22:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:01 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable5416161a()?$filter=married%20eq%20true + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A21%3A59.2413192Z''\"","PartitionKey":"pk5416161a","RowKey":"rk5416161a","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:21:59.2413192Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable5416161a"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:21:58 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/uttable5416161a()?$filter=married%20eq%20true +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:22:01 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:01 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable5416161a') + response: + body: + string: '' + headers: + content-length: '0' + date: Wed, 06 Jan 2021 19:21:59 GMT + server: Microsoft-HTTPAPI/2.0 + status: + code: 204 + message: No Content + url: https://seankaneprim.table.cosmos.azure.com/Tables('uttable5416161a') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_datetimes.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_datetimes.yaml new file mode 100644 index 000000000000..6b01aeaa44a9 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_datetimes.yaml @@ -0,0 +1,175 @@ +interactions: +- request: + body: '{"TableName": "uttable47611a39"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:22:32 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:32 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttable47611a39","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:22:30 GMT + etag: W/"datetime'2021-01-06T19%3A22%3A30.4645128Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable47611a39') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/Tables +- request: + body: '{"PartitionKey": "pk47611a39", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk47611a39", "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: + - Wed, 06 Jan 2021 19:22:33 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:33 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable47611a39 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable47611a39/$metadata#uttable47611a39/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A22%3A31.0592520Z''\"","PartitionKey":"pk47611a39","RowKey":"rk47611a39","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:22:31.0592520Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:22:30 GMT + etag: W/"datetime'2021-01-06T19%3A22%3A31.0592520Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttable47611a39(PartitionKey='pk47611a39',RowKey='rk47611a39') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttable47611a39 +- request: + body: '{"PartitionKey": "pk47611a391", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk47611a391", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:22:33 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:33 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable47611a39 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable47611a39/$metadata#uttable47611a39/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A22%3A31.1686152Z''\"","PartitionKey":"pk47611a391","RowKey":"rk47611a391","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:22:31.1686152Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:22:30 GMT + etag: W/"datetime'2021-01-06T19%3A22%3A31.1686152Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttable47611a39(PartitionKey='pk47611a391',RowKey='rk47611a391') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttable47611a39 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:22:33 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:33 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable47611a39()?$filter=birthday%20eq%20datetime'1970-10-04T00:00:00Z' + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A22%3A31.0592520Z''\"","PartitionKey":"pk47611a39","RowKey":"rk47611a39","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:22:31.0592520Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable47611a39"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:22:31 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/uttable47611a39()?$filter=birthday%20eq%20datetime'1970-10-04T00:00:00Z' +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:22:33 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:22:33 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable47611a39') + response: + body: + string: '' + headers: + content-length: '0' + date: Wed, 06 Jan 2021 19:22:31 GMT + server: Microsoft-HTTPAPI/2.0 + status: + code: 204 + message: No Content + url: https://seankaneprim.table.cosmos.azure.com/Tables('uttable47611a39') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_floats.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_floats.yaml new file mode 100644 index 000000000000..e9a420c2d036 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_floats.yaml @@ -0,0 +1,175 @@ +interactions: +- request: + body: '{"TableName": "uttablefa1f1902"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:23:03 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:03 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttablefa1f1902","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:02 GMT + etag: W/"datetime'2021-01-06T19%3A23%3A02.6030600Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttablefa1f1902') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/Tables +- request: + body: '{"PartitionKey": "pkfa1f1902", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkfa1f1902", "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: + - Wed, 06 Jan 2021 19:23:05 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:05 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablefa1f1902 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablefa1f1902/$metadata#uttablefa1f1902/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A23%3A03.1762952Z''\"","PartitionKey":"pkfa1f1902","RowKey":"rkfa1f1902","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:23:03.1762952Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:03 GMT + etag: W/"datetime'2021-01-06T19%3A23%3A03.1762952Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttablefa1f1902(PartitionKey='pkfa1f1902',RowKey='rkfa1f1902') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttablefa1f1902 +- request: + body: '{"PartitionKey": "pkfa1f19021", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkfa1f19021", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:23:05 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:05 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablefa1f1902 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablefa1f1902/$metadata#uttablefa1f1902/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A23%3A03.2840200Z''\"","PartitionKey":"pkfa1f19021","RowKey":"rkfa1f19021","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:23:03.2840200Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:03 GMT + etag: W/"datetime'2021-01-06T19%3A23%3A03.2840200Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttablefa1f1902(PartitionKey='pkfa1f19021',RowKey='rkfa1f19021') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttablefa1f1902 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:23:05 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:05 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablefa1f1902()?$filter=ratio%20lt%204.1 + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A23%3A03.1762952Z''\"","PartitionKey":"pkfa1f1902","RowKey":"rkfa1f1902","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:23:03.1762952Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablefa1f1902"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:03 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/uttablefa1f1902()?$filter=ratio%20lt%204.1 +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:23:05 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:05 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttablefa1f1902') + response: + body: + string: '' + headers: + content-length: '0' + date: Wed, 06 Jan 2021 19:23:03 GMT + server: Microsoft-HTTPAPI/2.0 + status: + code: 204 + message: No Content + url: https://seankaneprim.table.cosmos.azure.com/Tables('uttablefa1f1902') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_guids.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_guids.yaml new file mode 100644 index 000000000000..de4ee144c592 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_guids.yaml @@ -0,0 +1,175 @@ +interactions: +- request: + body: '{"TableName": "uttablee1391895"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:23:35 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:35 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttablee1391895","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:34 GMT + etag: W/"datetime'2021-01-06T19%3A23%3A34.4184328Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttablee1391895') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/Tables +- request: + body: '{"PartitionKey": "pke1391895", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rke1391895", "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: + - Wed, 06 Jan 2021 19:23:36 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:36 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablee1391895 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablee1391895/$metadata#uttablee1391895/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A23%3A35.0048776Z''\"","PartitionKey":"pke1391895","RowKey":"rke1391895","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:23:35.0048776Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:34 GMT + etag: W/"datetime'2021-01-06T19%3A23%3A35.0048776Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttablee1391895(PartitionKey='pke1391895',RowKey='rke1391895') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttablee1391895 +- request: + body: '{"PartitionKey": "pke13918951", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rke13918951", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:23:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:37 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablee1391895 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttablee1391895/$metadata#uttablee1391895/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A23%3A35.1156744Z''\"","PartitionKey":"pke13918951","RowKey":"rke13918951","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:23:35.1156744Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:34 GMT + etag: W/"datetime'2021-01-06T19%3A23%3A35.1156744Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttablee1391895(PartitionKey='pke13918951',RowKey='rke13918951') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttablee1391895 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:23:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:37 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttablee1391895()?$filter=clsid%20eq%20guid'c9da6455-213d-42c9-9a79-3e9149a57833' + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A23%3A35.0048776Z''\"","PartitionKey":"pke1391895","RowKey":"rke1391895","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:23:35.0048776Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttablee1391895"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:23:34 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/uttablee1391895()?$filter=clsid%20eq%20guid'c9da6455-213d-42c9-9a79-3e9149a57833' +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:23:37 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:23:37 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttablee1391895') + response: + body: + string: '' + headers: + content-length: '0' + date: Wed, 06 Jan 2021 19:23:34 GMT + server: Microsoft-HTTPAPI/2.0 + status: + code: 204 + message: No Content + url: https://seankaneprim.table.cosmos.azure.com/Tables('uttablee1391895') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_integers.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_integers.yaml new file mode 100644 index 000000000000..d30e348ff707 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_integers.yaml @@ -0,0 +1,175 @@ +interactions: +- request: + body: '{"TableName": "uttable2d8319da"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:24:07 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:07 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttable2d8319da","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:06 GMT + etag: W/"datetime'2021-01-06T19%3A24%3A06.3684616Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable2d8319da') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/Tables +- request: + body: '{"PartitionKey": "pk2d8319da", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk2d8319da", "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: + - Wed, 06 Jan 2021 19:24:08 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:08 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable2d8319da + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable2d8319da/$metadata#uttable2d8319da/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A24%3A06.9141512Z''\"","PartitionKey":"pk2d8319da","RowKey":"rk2d8319da","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:24:06.9141512Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:06 GMT + etag: W/"datetime'2021-01-06T19%3A24%3A06.9141512Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttable2d8319da(PartitionKey='pk2d8319da',RowKey='rk2d8319da') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttable2d8319da +- request: + body: '{"PartitionKey": "pk2d8319da1", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rk2d8319da1", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:24:09 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:09 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable2d8319da + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttable2d8319da/$metadata#uttable2d8319da/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A24%3A07.0235144Z''\"","PartitionKey":"pk2d8319da1","RowKey":"rk2d8319da1","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:24:07.0235144Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:06 GMT + etag: W/"datetime'2021-01-06T19%3A24%3A07.0235144Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttable2d8319da(PartitionKey='pk2d8319da1',RowKey='rk2d8319da1') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttable2d8319da +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:24:09 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:09 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttable2d8319da()?$filter=age%20lt%2040 + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A24%3A06.9141512Z''\"","PartitionKey":"pk2d8319da","RowKey":"rk2d8319da","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:24:06.9141512Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttable2d8319da"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:06 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/uttable2d8319da()?$filter=age%20lt%2040 +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:24:09 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:09 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttable2d8319da') + response: + body: + string: '' + headers: + content-length: '0' + date: Wed, 06 Jan 2021 19:24:06 GMT + server: Microsoft-HTTPAPI/2.0 + status: + code: 204 + message: No Content + url: https://seankaneprim.table.cosmos.azure.com/Tables('uttable2d8319da') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_multiple_params.yaml b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_multiple_params.yaml new file mode 100644 index 000000000000..555cedf36773 --- /dev/null +++ b/sdk/tables/azure-data-tables/tests/recordings/test_table_entity_cosmos_async.test_query_user_filter_multiple_params.yaml @@ -0,0 +1,175 @@ +interactions: +- request: + body: '{"TableName": "uttableee971cc8"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '32' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:24:39 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:39 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables + response: + body: + string: '{"TableName":"uttableee971cc8","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:37 GMT + etag: W/"datetime'2021-01-06T19%3A24%3A38.1049864Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttableee971cc8') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/Tables +- request: + body: '{"PartitionKey": "pkee971cc8", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkee971cc8", "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: + - Wed, 06 Jan 2021 19:24:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:40 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttableee971cc8 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttableee971cc8/$metadata#uttableee971cc8/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A24%3A38.6636808Z''\"","PartitionKey":"pkee971cc8","RowKey":"rkee971cc8","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:24:38.6636808Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:38 GMT + etag: W/"datetime'2021-01-06T19%3A24%3A38.6636808Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttableee971cc8(PartitionKey='pkee971cc8',RowKey='rkee971cc8') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttableee971cc8 +- request: + body: '{"PartitionKey": "pkee971cc81", "PartitionKey@odata.type": "Edm.String", + "RowKey": "rkee971cc81", "RowKey@odata.type": "Edm.String", "age": 49, "sex": + "female", "sex@odata.type": "Edm.String", "married": false, "deceased": true, + "ratio": 5.2, "evenratio": 6.0, "large": 39999011, "Birthday": "1993-04-01T00:00:00Z", + "Birthday@odata.type": "Edm.DateTime", "birthday": "1990-04-01T00:00:00Z", "birthday@odata.type": + "Edm.DateTime", "binary": "YmluYXJ5LWJpbmFyeQ==", "binary@odata.type": "Edm.Binary", + "other": 40, "clsid": "c8da6455-213e-42d9-9b79-3f9149a57833", "clsid@odata.type": + "Edm.Guid"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Content-Length: + - '592' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:24:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:40 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttableee971cc8 + response: + body: + string: '{"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/uttableee971cc8/$metadata#uttableee971cc8/@Element","odata.etag":"W/\"datetime''2021-01-06T19%3A24%3A38.7881992Z''\"","PartitionKey":"pkee971cc81","RowKey":"rkee971cc81","age":49,"sex":"female","married":false,"deceased":true,"ratio":5.2,"evenratio":6.0,"large":39999011,"Birthday@odata.type":"Edm.DateTime","Birthday":"1993-04-01T00:00:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1990-04-01T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5LWJpbmFyeQ==","other":40,"clsid@odata.type":"Edm.Guid","clsid":"c8da6455-213e-42d9-9b79-3f9149a57833","Timestamp":"2021-01-06T19:24:38.7881992Z"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:38 GMT + etag: W/"datetime'2021-01-06T19%3A24%3A38.7881992Z'" + location: https://fake_cosmos_account.table.cosmos.azure.com/uttableee971cc8(PartitionKey='pkee971cc81',RowKey='rkee971cc81') + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://seankaneprim.table.cosmos.azure.com/uttableee971cc8 +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + DataServiceVersion: + - '3.0' + Date: + - Wed, 06 Jan 2021 19:24:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:40 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://fake_cosmos_account.table.cosmos.azure.com/uttableee971cc8()?$filter=married%20eq%20true%20and%20RowKey%20eq%20'rkee971cc8' + response: + body: + string: '{"value":[{"odata.etag":"W/\"datetime''2021-01-06T19%3A24%3A38.6636808Z''\"","PartitionKey":"pkee971cc8","RowKey":"rkee971cc8","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:00.0000000Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00.0000000Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","Timestamp":"2021-01-06T19:24:38.6636808Z"}],"odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#uttableee971cc8"}' + headers: + content-type: application/json;odata=minimalmetadata + date: Wed, 06 Jan 2021 19:24:38 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: Ok + url: https://seankaneprim.table.cosmos.azure.com/uttableee971cc8()?$filter=married%20eq%20true%20and%20RowKey%20eq%20'rkee971cc8' +- request: + body: null + headers: + Accept: + - application/json + Date: + - Wed, 06 Jan 2021 19:24:40 GMT + User-Agent: + - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 06 Jan 2021 19:24:40 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('uttableee971cc8') + response: + body: + string: '' + headers: + content-length: '0' + date: Wed, 06 Jan 2021 19:24:38 GMT + server: Microsoft-HTTPAPI/2.0 + status: + code: 204 + message: No Content + url: https://seankaneprim.table.cosmos.azure.com/Tables('uttableee971cc8') +version: 1 diff --git a/sdk/tables/azure-data-tables/tests/test_table_client_async.py b/sdk/tables/azure-data-tables/tests/test_table_client_async.py index 80f50f165bf5..5317a776b6d0 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_client_async.py +++ b/sdk/tables/azure-data-tables/tests/test_table_client_async.py @@ -11,6 +11,7 @@ from _shared.testcase import TableTestCase from preparers import TablesPreparer +from devtools_testutils import AzureTestCase # ------------------------------------------------------------------------------ SERVICES = { TableServiceClient: 'table', @@ -436,6 +437,7 @@ async def test_create_table_client_with_complete_url_async(self, tables_storage_ assert service.table_name == 'bar' assert service.account_name == tables_storage_account_name + @AzureTestCase.await_prepared_test async def test_create_table_client_with_invalid_name_async(self): # Arrange table_url = "https://{}.table.core.windows.net:443/foo".format("storage_account_name") @@ -447,6 +449,7 @@ async def test_create_table_client_with_invalid_name_async(self): assert "Table names must be alphanumeric, cannot begin with a number, and must be between 3-63 characters long."in str(excinfo) + @AzureTestCase.await_prepared_test async def test_error_with_malformed_conn_str_async(self): # Arrange diff --git a/sdk/tables/azure-data-tables/tests/test_table_client_cosmos_async.py b/sdk/tables/azure-data-tables/tests/test_table_client_cosmos_async.py index 75321020ecdb..22bc3335a179 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_client_cosmos_async.py +++ b/sdk/tables/azure-data-tables/tests/test_table_client_cosmos_async.py @@ -15,6 +15,7 @@ SLEEP_DELAY ) from preparers import CosmosPreparer +from devtools_testutils import AzureTestCase # ------------------------------------------------------------------------------ @@ -474,6 +475,7 @@ async def test_create_table_client_with_complete_url_async(self, tables_cosmos_a assert service.table_name == 'bar' assert service.account_name == tables_cosmos_account_name + @AzureTestCase.await_prepared_test async def test_create_table_client_with_invalid_name_async(self): # Arrange table_url = "https://{}.table.cosmos.azure.com:443/foo".format("cosmos_account_name") @@ -485,6 +487,7 @@ async def test_create_table_client_with_invalid_name_async(self): assert "Table names must be alphanumeric, cannot begin with a number, and must be between 3-63 characters long.""" in str(excinfo) + @AzureTestCase.await_prepared_test async def test_error_with_malformed_conn_str_async(self): # Arrange 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 db530e6b4084..76b737eff18a 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_entity.py +++ b/sdk/tables/azure-data-tables/tests/test_table_entity.py @@ -110,6 +110,32 @@ def _create_pk_rk(self, pk, rk): rk = rk if rk is not None else self.get_resource_name('rk') return pk, rk + def _insert_two_opposite_entities(self, pk=None, rk=None): + entity1 = self._create_random_entity_dict() + resp = self.table.create_entity(entity1) + + partition, row = self._create_pk_rk(pk, rk) + properties = { + 'PartitionKey': partition + u'1', + 'RowKey': row + u'1', + 'age': 49, + 'sex': u'female', + 'married': False, + 'deceased': True, + 'optional': None, + 'ratio': 5.2, + 'evenratio': 6.0, + 'large': 39999011, + 'Birthday': datetime(1993, 4, 1, tzinfo=tzutc()), + 'birthday': datetime(1990, 4, 1, tzinfo=tzutc()), + 'binary': b'binary-binary', + 'other': EntityProperty(value=40, type=EdmType.INT32), + 'clsid': uuid.UUID('c8da6455-213e-42d9-9b79-3f9149a57833') + } + entity = TableEntity(**properties) + self.table.create_entity(entity) + return entity1, resp + def _create_random_entity_dict(self, pk=None, rk=None): """ Creates a dictionary-based entity with fixed values, using all @@ -317,36 +343,137 @@ def test_query_user_filter(self, tables_storage_account_name, tables_primary_sto # Arrange self._set_up(tables_storage_account_name, tables_primary_storage_account_key) try: - entity = self._insert_random_entity() + entity, _ = self._insert_two_opposite_entities() # Act - # resp = self.table.create_item(entity) - resp = self.table.query_entities(filter="married eq @my_param", parameters={'my_param': 'True'}) + entities = self.table.query_entities( + filter="married eq @my_param", + parameters={'my_param': entity['married']} + ) - # Assert --- Does this mean insert returns nothing? - assert resp is not None + assert entities is not None + length = 0 + for e in entities: + self._assert_default_entity(e) + length += 1 + + assert length == 1 finally: self._tear_down() - @pytest.mark.skip("https://github.com/Azure/azure-sdk-for-python/issues/15554") @TablesPreparer() def test_query_user_filter_multiple_params(self, tables_storage_account_name, tables_primary_storage_account_key): # Arrange self._set_up(tables_storage_account_name, tables_primary_storage_account_key) try: - entity, _ = self._insert_random_entity() + entity, _ = self._insert_two_opposite_entities() # Act parameters = { - 'my_param': 'True', + 'my_param': True, 'rk': entity['RowKey'] } entities = self.table.query_entities(filter="married eq @my_param and RowKey eq @rk", parameters=parameters) - # Assert --- Does this mean insert returns nothing? + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + + @TablesPreparer() + def test_query_user_filter_integers(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': 40, + } + entities = self.table.query_entities(filter="age lt @my_param", parameters=parameters) + + length = 0 assert entities is not None for entity in entities: self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + + @TablesPreparer() + def test_query_user_filter_floats(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['ratio'] + 1, + } + entities = self.table.query_entities(filter="ratio lt @my_param", parameters=parameters) + + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + + @TablesPreparer() + def test_query_user_filter_datetimes(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['birthday'], + } + entities = self.table.query_entities(filter="birthday eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + + @TablesPreparer() + def test_query_user_filter_guids(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['clsid'] + } + entities = self.table.query_entities(filter="clsid eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 finally: self._tear_down() @@ -382,7 +509,6 @@ def test_insert_entity_dictionary(self, tables_storage_account_name, tables_prim entity = self._create_random_entity_dict() # Act - # resp = self.table.create_item(entity) resp = self.table.create_entity(entity=entity) # Assert @@ -550,7 +676,6 @@ def test_insert_entity_missing_pk(self, tables_storage_account_name, tables_prim # Act with pytest.raises(ValueError): - # resp = self.table.create_item(entity) resp = self.table.create_entity(entity=entity) # Assert finally: @@ -1325,7 +1450,10 @@ def test_query_entities_each_page(self, tables_storage_account_name, tables_prim base_entity['PartitionKey'] += str(i) base_entity['RowKey'] += str(i) base_entity['value'] = i - self.table.create_entity(base_entity) + try: + self.table.create_entity(base_entity) + except ResourceExistsError: + pass query_filter = u"PartitionKey eq 'pk'" 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 7b2d55024ac9..726c74c32cff 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 @@ -57,6 +57,7 @@ async def _tear_down(self): await self.ts.delete_table(table_name) except: pass + await self.ts.close() # --Helpers----------------------------------------------------------------- async def _create_query_table(self, entity_count): @@ -90,6 +91,41 @@ def _create_random_base_entity_dict(self): 'RowKey': row, } + def _create_pk_rk(self, pk, rk): + try: + pk = pk if pk is not None else self.get_resource_name('pk').decode('utf-8') + rk = rk if rk is not None else self.get_resource_name('rk').decode('utf-8') + except AttributeError: + pk = pk if pk is not None else self.get_resource_name('pk') + rk = rk if rk is not None else self.get_resource_name('rk') + return pk, rk + + async def _insert_two_opposite_entities(self, pk=None, rk=None): + entity1 = self._create_random_entity_dict() + resp = await self.table.create_entity(entity1) + + partition, row = self._create_pk_rk(pk, rk) + properties = { + 'PartitionKey': partition + u'1', + 'RowKey': row + u'1', + 'age': 49, + 'sex': u'female', + 'married': False, + 'deceased': True, + 'optional': None, + 'ratio': 5.2, + 'evenratio': 6.0, + 'large': 39999011, + 'Birthday': datetime(1993, 4, 1, tzinfo=tzutc()), + 'birthday': datetime(1990, 4, 1, tzinfo=tzutc()), + 'binary': b'binary-binary', + 'other': EntityProperty(value=40, type=EdmType.INT32), + 'clsid': uuid.UUID('c8da6455-213e-42d9-9b79-3f9149a57833') + } + entity = TableEntity(**properties) + await self.table.create_entity(entity) + return entity1, resp + def _create_random_entity_dict(self, pk=None, rk=None): """ Creates a dictionary-based entity with fixed values, using all @@ -1214,7 +1250,10 @@ async def test_query_entities_each_page(self, tables_storage_account_name, table base_entity['PartitionKey'] += str(i) base_entity['RowKey'] += str(i) base_entity['value'] = i - await self.table.create_entity(base_entity) + try: + await self.table.create_entity(base_entity) + except ResourceExistsError: + pass query_filter = u"PartitionKey eq 'pk'" @@ -1236,6 +1275,142 @@ async def test_query_entities_each_page(self, tables_storage_account_name, table finally: await self._tear_down() + @TablesPreparer() + async def test_query_user_filter(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + await self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity = await self._insert_two_opposite_entities() + + # Act + entities = self.table.query_entities(filter="married eq @my_param", parameters={'my_param': True}) + + assert entities is not None + length = 0 + async for e in entities: + self._assert_default_entity(e) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + + @TablesPreparer() + async def test_query_user_filter_multiple_params(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + await self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': True, + 'rk': entity['RowKey'] + } + entities = self.table.query_entities(filter="married eq @my_param and RowKey eq @rk", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + assert length == 1 + + finally: + await self._tear_down() + + @TablesPreparer() + async def test_query_user_filter_integers(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + await self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': 40, + } + entities = self.table.query_entities(filter="age lt @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + + @TablesPreparer() + async def test_query_user_filter_floats(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + await self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['ratio'] + 1, + } + entities = self.table.query_entities(filter="ratio lt @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + + @TablesPreparer() + async def test_query_user_filter_datetimes(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + await self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['birthday'], + } + entities = self.table.query_entities(filter="birthday eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + + @TablesPreparer() + async def test_query_user_filter_guids(self, tables_storage_account_name, tables_primary_storage_account_key): + # Arrange + await self._set_up(tables_storage_account_name, tables_primary_storage_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['clsid'] + } + entities = self.table.query_entities(filter="clsid eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + @TablesPreparer() async def test_query_zero_entities(self, tables_storage_account_name, tables_primary_storage_account_key): # Arrange 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 d840c3c74225..dfc35086202c 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 @@ -114,6 +114,32 @@ def _create_pk_rk(self, pk, rk): rk = rk if rk is not None else self.get_resource_name('rk') return pk, rk + def _insert_two_opposite_entities(self, pk=None, rk=None): + entity1 = self._create_random_entity_dict() + resp = self.table.create_entity(entity1) + + partition, row = self._create_pk_rk(pk, rk) + properties = { + 'PartitionKey': partition + u'1', + 'RowKey': row + u'1', + 'age': 49, + 'sex': u'female', + 'married': False, + 'deceased': True, + 'optional': None, + 'ratio': 5.2, + 'evenratio': 6.0, + 'large': 39999011, + 'Birthday': datetime(1993, 4, 1, tzinfo=tzutc()), + 'birthday': datetime(1990, 4, 1, tzinfo=tzutc()), + 'binary': b'binary-binary', + 'other': EntityProperty(value=40, type=EdmType.INT32), + 'clsid': uuid.UUID('c8da6455-213e-42d9-9b79-3f9149a57833') + } + entity = TableEntity(**properties) + self.table.create_entity(entity) + return entity1, resp + def _create_random_entity_dict(self, pk=None, rk=None): """ Creates a dictionary-based entity with fixed values, using all @@ -329,9 +355,136 @@ def test_query_user_filter(self, tables_cosmos_account_name, tables_primary_cosm entity = self._insert_random_entity() # Act - resp = self.table.query_entities(filter="married eq @my_param", parameters={'my_param': 'True'}) + entities = self.table.query_entities(filter="married eq @my_param", parameters={'my_param': True}) - assert resp is not None + assert entities is not None + length = 0 + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + def test_query_user_filter_multiple_params(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = self._insert_random_entity() + + # Act + parameters = { + 'my_param': True, + 'rk': entity['RowKey'] + } + entities = self.table.query_entities(filter="married eq @my_param and RowKey eq @rk", parameters=parameters) + + assert entities is not None + length = 0 + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + def test_query_user_filter_integers(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': 40, + } + entities = self.table.query_entities(filter="age lt @my_param", parameters=parameters) + + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + def test_query_user_filter_floats(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['ratio'] + 1.0, + } + entities = self.table.query_entities(filter="ratio lt @my_param", parameters=parameters) + + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + def test_query_user_filter_datetimes(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['birthday'], + } + entities = self.table.query_entities(filter="birthday eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + def test_query_user_filter_guids(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['clsid'] + } + entities = self.table.query_entities(filter="clsid eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 finally: self._tear_down() self.sleep(SLEEP_DELAY) @@ -1341,7 +1494,10 @@ def test_query_entities_each_page(self, tables_cosmos_account_name, tables_prima base_entity['PartitionKey'] += str(i) base_entity['RowKey'] += str(i) base_entity['value'] = i - self.table.create_entity(base_entity) + try: + self.table.create_entity(base_entity) + except ResourceExistsError: + pass query_filter = u"PartitionKey eq 'pk'" 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 88a018086f68..e6f49b7fc79d 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 @@ -96,6 +96,41 @@ def _create_random_base_entity_dict(self): 'RowKey': row, } + def _create_pk_rk(self, pk, rk): + try: + pk = pk if pk is not None else self.get_resource_name('pk').decode('utf-8') + rk = rk if rk is not None else self.get_resource_name('rk').decode('utf-8') + except AttributeError: + pk = pk if pk is not None else self.get_resource_name('pk') + rk = rk if rk is not None else self.get_resource_name('rk') + return pk, rk + + async def _insert_two_opposite_entities(self, pk=None, rk=None): + entity1 = self._create_random_entity_dict() + resp = await self.table.create_entity(entity1) + + partition, row = self._create_pk_rk(pk, rk) + properties = { + 'PartitionKey': partition + u'1', + 'RowKey': row + u'1', + 'age': 49, + 'sex': u'female', + 'married': False, + 'deceased': True, + 'optional': None, + 'ratio': 5.2, + 'evenratio': 6.0, + 'large': 39999011, + 'Birthday': datetime(1993, 4, 1, tzinfo=tzutc()), + 'birthday': datetime(1990, 4, 1, tzinfo=tzutc()), + 'binary': b'binary-binary', + 'other': EntityProperty(value=40, type=EdmType.INT32), + 'clsid': uuid.UUID('c8da6455-213e-42d9-9b79-3f9149a57833') + } + entity = TableEntity(**properties) + await self.table.create_entity(entity) + return entity1, resp + def _create_random_entity_dict(self, pk=None, rk=None): """ Creates a dictionary-based entity with fixed values, using all @@ -1331,7 +1366,10 @@ async def test_query_entities_each_page(self, tables_cosmos_account_name, tables base_entity['PartitionKey'] += str(i) base_entity['RowKey'] += str(i) base_entity['value'] = i - await self.table.create_entity(base_entity) + try: + await self.table.create_entity(base_entity) + except ResourceExistsError: + pass query_filter = u"PartitionKey eq 'pk'" @@ -1355,6 +1393,149 @@ async def test_query_entities_each_page(self, tables_cosmos_account_name, tables if self.is_live: sleep(SLEEP_DELAY) + @CosmosPreparer() + async def test_query_user_filter(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + await self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity = await self._insert_two_opposite_entities() + + # Act + entities = self.table.query_entities(filter="married eq @my_param", parameters={'my_param': True}) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + + finally: + await self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + async def test_query_user_filter_multiple_params(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + await self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': True, + 'rk': entity['RowKey'] + } + entities = self.table.query_entities(filter="married eq @my_param and RowKey eq @rk", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + async def test_query_user_filter_integers(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + await self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': 40, + } + entities = self.table.query_entities(filter="age lt @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + async def test_query_user_filter_floats(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + await self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['ratio'] + 1.0, + } + entities = self.table.query_entities(filter="ratio lt @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + async def test_query_user_filter_datetimes(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + await self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['birthday'], + } + entities = self.table.query_entities(filter="birthday eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + self.sleep(SLEEP_DELAY) + + @CosmosPreparer() + async def test_query_user_filter_guids(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): + # Arrange + await self._set_up(tables_cosmos_account_name, tables_primary_cosmos_account_key) + try: + entity, _ = await self._insert_two_opposite_entities() + + # Act + parameters = { + 'my_param': entity['clsid'] + } + entities = self.table.query_entities(filter="clsid eq @my_param", parameters=parameters) + + length = 0 + assert entities is not None + async for entity in entities: + self._assert_default_entity(entity) + length += 1 + + assert length == 1 + finally: + await self._tear_down() + self.sleep(SLEEP_DELAY) + @CosmosPreparer() async def test_query_zero_entities(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): # Arrange