-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds support for milliseconds on datetime objects (#16847)
- Loading branch information
1 parent
591ccd5
commit f54eefb
Showing
16 changed files
with
962 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
192 changes: 192 additions & 0 deletions
192
...bles/azure-data-tables/tests/recordings/test_table_entity.test_datetime_milliseconds.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
interactions: | ||
- request: | ||
body: '{"TableName": "uttable97bd1223"}' | ||
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: | ||
- Mon, 22 Feb 2021 14:24:35 GMT | ||
User-Agent: | ||
- azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
x-ms-date: | ||
- Mon, 22 Feb 2021 14:24: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":"uttable97bd1223"}' | ||
headers: | ||
cache-control: | ||
- no-cache | ||
content-type: | ||
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
date: | ||
- Mon, 22 Feb 2021 14:24:35 GMT | ||
location: | ||
- https://fake_table_account.table.core.windows.net/Tables('uttable97bd1223') | ||
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": "pk97bd1223", "PartitionKey@odata.type": "Edm.String", | ||
"RowKey": "rk97bd1223", "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:00.000000Z", | ||
"Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00.000000Z", | ||
"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", "milliseconds": "2011-11-04T00:05:23.283000Z", | ||
"milliseconds@odata.type": "Edm.DateTime"}' | ||
headers: | ||
Accept: | ||
- application/json;odata=minimalmetadata | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '681' | ||
Content-Type: | ||
- application/json;odata=nometadata | ||
DataServiceVersion: | ||
- '3.0' | ||
Date: | ||
- Mon, 22 Feb 2021 14:24:35 GMT | ||
User-Agent: | ||
- azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
x-ms-date: | ||
- Mon, 22 Feb 2021 14:24:35 GMT | ||
x-ms-version: | ||
- '2019-02-02' | ||
method: POST | ||
uri: https://fake_table_account.table.core.windows.net/uttable97bd1223 | ||
response: | ||
body: | ||
string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable97bd1223/@Element","odata.etag":"W/\"datetime''2021-02-22T14%3A24%3A36.5672082Z''\"","PartitionKey":"pk97bd1223","RowKey":"rk97bd1223","Timestamp":"2021-02-22T14:24:36.5672082Z","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","milliseconds@odata.type":"Edm.DateTime","milliseconds":"2011-11-04T00:05:23.283Z"}' | ||
headers: | ||
cache-control: | ||
- no-cache | ||
content-type: | ||
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
date: | ||
- Mon, 22 Feb 2021 14:24:36 GMT | ||
etag: | ||
- W/"datetime'2021-02-22T14%3A24%3A36.5672082Z'" | ||
location: | ||
- https://fake_table_account.table.core.windows.net/uttable97bd1223(PartitionKey='pk97bd1223',RowKey='rk97bd1223') | ||
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: | ||
- Mon, 22 Feb 2021 14:24:36 GMT | ||
User-Agent: | ||
- azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
x-ms-date: | ||
- Mon, 22 Feb 2021 14:24:36 GMT | ||
x-ms-version: | ||
- '2019-02-02' | ||
method: GET | ||
uri: https://fake_table_account.table.core.windows.net/uttable97bd1223(PartitionKey='pk97bd1223',RowKey='rk97bd1223') | ||
response: | ||
body: | ||
string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable97bd1223/@Element","odata.etag":"W/\"datetime''2021-02-22T14%3A24%3A36.5672082Z''\"","PartitionKey":"pk97bd1223","RowKey":"rk97bd1223","Timestamp":"2021-02-22T14:24:36.5672082Z","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","milliseconds@odata.type":"Edm.DateTime","milliseconds":"2011-11-04T00:05:23.283Z"}' | ||
headers: | ||
cache-control: | ||
- no-cache | ||
content-type: | ||
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
date: | ||
- Mon, 22 Feb 2021 14:24:36 GMT | ||
etag: | ||
- W/"datetime'2021-02-22T14%3A24%3A36.5672082Z'" | ||
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: | ||
- Mon, 22 Feb 2021 14:24:36 GMT | ||
User-Agent: | ||
- azsdk-python-data-tables/12.0.0b5 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
x-ms-date: | ||
- Mon, 22 Feb 2021 14:24:36 GMT | ||
x-ms-version: | ||
- '2019-02-02' | ||
method: DELETE | ||
uri: https://fake_table_account.table.core.windows.net/Tables('uttable97bd1223') | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '0' | ||
date: | ||
- Mon, 22 Feb 2021 14:24: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 |
Oops, something went wrong.