Skip to content

Commit

Permalink
[Tables] Test fixes (#18075)
Browse files Browse the repository at this point in the history
Removes tests that are supported in tables but not cosmos.
  • Loading branch information
seankane-msft authored Apr 19, 2021
1 parent dffee64 commit 2a2cf6b
Show file tree
Hide file tree
Showing 53 changed files with 1,890 additions and 1,691 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def list_entities(
"""
user_select = kwargs.pop("select", None)
if user_select and not isinstance(user_select, str):
user_select = ", ".join(user_select)
user_select = ",".join(user_select)
top = kwargs.pop("results_per_page", None)

command = functools.partial(self._client.table.query_entities, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def list_entities(
"""
user_select = kwargs.pop("select", None)
if user_select and not isinstance(user_select, str):
user_select = ", ".join(user_select)
user_select = ",".join(user_select)
top = kwargs.pop("results_per_page", None)

command = functools.partial(self._client.table.query_entities, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ interactions:
DataServiceVersion:
- '3.0'
Date:
- Tue, 29 Sep 2020 17:15:25 GMT
- Thu, 15 Apr 2021 16:20:36 GMT
User-Agent:
- azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0)
- azsdk-python-data-tables/12.0.0b7 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Tue, 29 Sep 2020 17:15:25 GMT
- Thu, 15 Apr 2021 16:20:36 GMT
x-ms-version:
- '2019-02-02'
method: POST
uri: https://tablesteststorname.table.core.windows.net/Tables
uri: https://fake_table_account.table.core.windows.net/Tables
response:
body:
string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#Tables/@Element","TableName":"pytablesync672108e5"}'
string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"pytablesync672108e5"}'
headers:
cache-control:
- no-cache
content-type:
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
date:
- Tue, 29 Sep 2020 17:15:25 GMT
- Thu, 15 Apr 2021 16:20:37 GMT
location:
- https://tablesteststorname.table.core.windows.net/Tables('pytablesync672108e5')
- https://fake_table_account.table.core.windows.net/Tables('pytablesync672108e5')
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
Expand All @@ -59,15 +59,15 @@ interactions:
Content-Length:
- '0'
Date:
- Tue, 29 Sep 2020 17:15:26 GMT
- Thu, 15 Apr 2021 16:20:37 GMT
User-Agent:
- azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0)
- azsdk-python-data-tables/12.0.0b7 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Tue, 29 Sep 2020 17:15:26 GMT
- Thu, 15 Apr 2021 16:20:37 GMT
x-ms-version:
- '2019-02-02'
method: DELETE
uri: https://tablesteststorname.table.core.windows.net/Tables('pytablesync672108e5')
uri: https://fake_table_account.table.core.windows.net/Tables('pytablesync672108e5')
response:
body:
string: ''
Expand All @@ -77,7 +77,7 @@ interactions:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 17:15:25 GMT
- Thu, 15 Apr 2021 16:20:37 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
x-content-type-options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,58 +11,58 @@ interactions:
DataServiceVersion:
- '3.0'
Date:
- Tue, 29 Sep 2020 17:05:44 GMT
- Thu, 15 Apr 2021 16:20:37 GMT
User-Agent:
- azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0)
- azsdk-python-data-tables/12.0.0b7 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Tue, 29 Sep 2020 17:05:44 GMT
- Thu, 15 Apr 2021 16:20:37 GMT
x-ms-version:
- '2019-02-02'
method: POST
uri: https://tablesteststorname.table.core.windows.net/Tables
uri: https://fake_table_account.table.core.windows.net/Tables
response:
body:
string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#Tables/@Element","TableName":"pytableasynca6820b62"}'
string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#Tables/@Element","TableName":"pytableasynca6820b62"}'
headers:
cache-control: no-cache
content-type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8
date: Tue, 29 Sep 2020 17:05:44 GMT
location: https://tablesteststorname.table.core.windows.net/Tables('pytableasynca6820b62')
date: Thu, 15 Apr 2021 16:20:37 GMT
location: https://fake_table_account.table.core.windows.net/Tables('pytableasynca6820b62')
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://tablesteststorname.table.core.windows.net/Tables
url: https://seankaneprim.table.core.windows.net/Tables
- request:
body: null
headers:
Accept:
- application/json
Date:
- Tue, 29 Sep 2020 17:05:44 GMT
- Thu, 15 Apr 2021 16:20:38 GMT
User-Agent:
- azsdk-python-data-tables/12.0.0b2 Python/3.8.4 (Windows-10-10.0.19041-SP0)
- azsdk-python-data-tables/12.0.0b7 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Tue, 29 Sep 2020 17:05:44 GMT
- Thu, 15 Apr 2021 16:20:38 GMT
x-ms-version:
- '2019-02-02'
method: DELETE
uri: https://tablesteststorname.table.core.windows.net/Tables('pytableasynca6820b62')
uri: https://fake_table_account.table.core.windows.net/Tables('pytableasynca6820b62')
response:
body:
string: ''
headers:
cache-control: no-cache
content-length: '0'
date: Tue, 29 Sep 2020 17:05:44 GMT
date: Thu, 15 Apr 2021 16:20:37 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://tablesteststorname.table.core.windows.net/Tables('pytableasynca6820b62')
url: https://seankaneprim.table.core.windows.net/Tables('pytableasynca6820b62')
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ interactions:
DataServiceVersion:
- '3.0'
Date:
- Mon, 28 Sep 2020 17:25:37 GMT
- Thu, 15 Apr 2021 16:20:38 GMT
User-Agent:
- azsdk-python-data-tables/2019-07-07 Python/3.8.4 (Windows-10-10.0.19041-SP0)
- azsdk-python-data-tables/12.0.0b7 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Mon, 28 Sep 2020 17:25:37 GMT
- Thu, 15 Apr 2021 16:20:38 GMT
x-ms-version:
- '2019-07-07'
- '2019-02-02'
method: POST
uri: https://tablestestcosmosname.table.cosmos.azure.com/Tables
uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables
response:
body:
string: '{"TableName":"pytablesyncb3170bd8","odata.metadata":"https://tablestestcosmosname.table.cosmos.azure.com/$metadata#Tables/@Element"}'
string: '{"TableName":"pytablesyncb3170bd8","odata.metadata":"https://fake_cosmos_account.table.cosmos.azure.com/$metadata#Tables/@Element"}'
headers:
content-type:
- application/json;odata=minimalmetadata
date:
- Mon, 28 Sep 2020 17:25:38 GMT
- Thu, 15 Apr 2021 16:20:39 GMT
etag:
- W/"datetime'2020-09-28T17%3A25%3A38.7052039Z'"
- W/"datetime'2021-04-15T16%3A20%3A39.3542664Z'"
location:
- https://tablestestcosmosname.table.cosmos.azure.com/Tables('pytablesyncb3170bd8')
- https://fake_cosmos_account.table.cosmos.azure.com/Tables('pytablesyncb3170bd8')
server:
- Microsoft-HTTPAPI/2.0
transfer-encoding:
Expand All @@ -47,31 +47,31 @@ interactions:
body: null
headers:
Accept:
- '*/*'
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
Date:
- Mon, 28 Sep 2020 17:25:39 GMT
- Thu, 15 Apr 2021 16:20:39 GMT
User-Agent:
- azsdk-python-data-tables/2019-07-07 Python/3.8.4 (Windows-10-10.0.19041-SP0)
- azsdk-python-data-tables/12.0.0b7 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Mon, 28 Sep 2020 17:25:39 GMT
- Thu, 15 Apr 2021 16:20:39 GMT
x-ms-version:
- '2019-07-07'
- '2019-02-02'
method: DELETE
uri: https://tablestestcosmosname.table.cosmos.azure.com/Tables('pytablesyncb3170bd8')
uri: https://fake_cosmos_account.table.cosmos.azure.com/Tables('pytablesyncb3170bd8')
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Mon, 28 Sep 2020 17:25:39 GMT
- Thu, 15 Apr 2021 16:20:39 GMT
server:
- Microsoft-HTTPAPI/2.0
status:
Expand Down
Loading

0 comments on commit 2a2cf6b

Please sign in to comment.