Skip to content

Commit 215720f

Browse files
String unicode deserial (Azure#14958)
1 parent 1755dea commit 215720f

7 files changed

+119
-116
lines changed

sdk/tables/azure-data-tables/tests/recordings/test_table_entity.test_insert_entity_with_large_int_success.yaml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"TableName": "uttablede991889"}'
3+
body: !!python/unicode '{"TableName": "uttablede991889"}'
44
headers:
55
Accept:
66
- application/json;odata=minimalmetadata
@@ -15,25 +15,25 @@ interactions:
1515
DataServiceVersion:
1616
- '3.0'
1717
Date:
18-
- Wed, 28 Oct 2020 21:39:10 GMT
18+
- Mon, 02 Nov 2020 20:02:09 GMT
1919
User-Agent:
20-
- azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
20+
- azsdk-python-data-tables/12.0.0b3 Python/2.7.18 (Windows-10-10.0.19041)
2121
x-ms-date:
22-
- Wed, 28 Oct 2020 21:39:10 GMT
22+
- Mon, 02 Nov 2020 20:02:09 GMT
2323
x-ms-version:
2424
- '2019-02-02'
2525
method: POST
2626
uri: https://tablesteststorname.table.core.windows.net/Tables
2727
response:
2828
body:
29-
string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablede991889"}'
29+
string: !!python/unicode '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttablede991889"}'
3030
headers:
3131
cache-control:
3232
- no-cache
3333
content-type:
3434
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
3535
date:
36-
- Wed, 28 Oct 2020 21:39:11 GMT
36+
- Mon, 02 Nov 2020 20:02:09 GMT
3737
location:
3838
- https://tablesteststorname.table.core.windows.net/Tables('uttablede991889')
3939
server:
@@ -48,9 +48,9 @@ interactions:
4848
code: 201
4949
message: Created
5050
- request:
51-
body: '{"PartitionKey": "pkde991889", "PartitionKey@odata.type": "Edm.String",
52-
"RowKey": "rkde991889", "RowKey@odata.type": "Edm.String", "large": "1125899906842624",
53-
"large@odata.type": "Edm.Int64"}'
51+
body: !!python/unicode '{"large": "1125899906842624", "RowKey@odata.type": "Edm.String",
52+
"PartitionKey@odata.type": "Edm.String", "large@odata.type": "Edm.Int64", "PartitionKey":
53+
"pkde991889", "RowKey": "rkde991889"}'
5454
headers:
5555
Accept:
5656
- application/json;odata=minimalmetadata
@@ -65,27 +65,27 @@ interactions:
6565
DataServiceVersion:
6666
- '3.0'
6767
Date:
68-
- Wed, 28 Oct 2020 21:39:12 GMT
68+
- Mon, 02 Nov 2020 20:02:10 GMT
6969
User-Agent:
70-
- azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
70+
- azsdk-python-data-tables/12.0.0b3 Python/2.7.18 (Windows-10-10.0.19041)
7171
x-ms-date:
72-
- Wed, 28 Oct 2020 21:39:12 GMT
72+
- Mon, 02 Nov 2020 20:02:10 GMT
7373
x-ms-version:
7474
- '2019-02-02'
7575
method: POST
7676
uri: https://tablesteststorname.table.core.windows.net/uttablede991889
7777
response:
7878
body:
79-
string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-10-28T21%3A39%3A12.0811252Z''\"","PartitionKey":"pkde991889","RowKey":"rkde991889","Timestamp":"2020-10-28T21:39:12.0811252Z","large@odata.type":"Edm.Int64","large":"1125899906842624"}'
79+
string: !!python/unicode '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-11-02T20%3A02%3A10.3515865Z''\"","PartitionKey":"pkde991889","RowKey":"rkde991889","Timestamp":"2020-11-02T20:02:10.3515865Z","large@odata.type":"Edm.Int64","large":"1125899906842624"}'
8080
headers:
8181
cache-control:
8282
- no-cache
8383
content-type:
8484
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
8585
date:
86-
- Wed, 28 Oct 2020 21:39:11 GMT
86+
- Mon, 02 Nov 2020 20:02:09 GMT
8787
etag:
88-
- W/"datetime'2020-10-28T21%3A39%3A12.0811252Z'"
88+
- W/"datetime'2020-11-02T20%3A02%3A10.3515865Z'"
8989
location:
9090
- https://tablesteststorname.table.core.windows.net/uttablede991889(PartitionKey='pkde991889',RowKey='rkde991889')
9191
server:
@@ -111,27 +111,27 @@ interactions:
111111
DataServiceVersion:
112112
- '3.0'
113113
Date:
114-
- Wed, 28 Oct 2020 21:39:12 GMT
114+
- Mon, 02 Nov 2020 20:02:10 GMT
115115
User-Agent:
116-
- azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
116+
- azsdk-python-data-tables/12.0.0b3 Python/2.7.18 (Windows-10-10.0.19041)
117117
x-ms-date:
118-
- Wed, 28 Oct 2020 21:39:12 GMT
118+
- Mon, 02 Nov 2020 20:02:10 GMT
119119
x-ms-version:
120120
- '2019-02-02'
121121
method: GET
122122
uri: https://tablesteststorname.table.core.windows.net/uttablede991889(PartitionKey='pkde991889',RowKey='rkde991889')
123123
response:
124124
body:
125-
string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-10-28T21%3A39%3A12.0811252Z''\"","PartitionKey":"pkde991889","RowKey":"rkde991889","Timestamp":"2020-10-28T21:39:12.0811252Z","large@odata.type":"Edm.Int64","large":"1125899906842624"}'
125+
string: !!python/unicode '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-11-02T20%3A02%3A10.3515865Z''\"","PartitionKey":"pkde991889","RowKey":"rkde991889","Timestamp":"2020-11-02T20:02:10.3515865Z","large@odata.type":"Edm.Int64","large":"1125899906842624"}'
126126
headers:
127127
cache-control:
128128
- no-cache
129129
content-type:
130130
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
131131
date:
132-
- Wed, 28 Oct 2020 21:39:11 GMT
132+
- Mon, 02 Nov 2020 20:02:09 GMT
133133
etag:
134-
- W/"datetime'2020-10-28T21%3A39%3A12.0811252Z'"
134+
- W/"datetime'2020-11-02T20%3A02%3A10.3515865Z'"
135135
server:
136136
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
137137
transfer-encoding:
@@ -144,9 +144,9 @@ interactions:
144144
code: 200
145145
message: OK
146146
- request:
147-
body: '{"PartitionKey": "pkde991889", "PartitionKey@odata.type": "Edm.String",
148-
"RowKey": "negative", "RowKey@odata.type": "Edm.String", "large": "-1125899906842625",
149-
"large@odata.type": "Edm.Int64"}'
147+
body: !!python/unicode '{"large": "-1125899906842625", "RowKey@odata.type": "Edm.String",
148+
"PartitionKey@odata.type": "Edm.String", "large@odata.type": "Edm.Int64", "PartitionKey":
149+
"pkde991889", "RowKey": "negative"}'
150150
headers:
151151
Accept:
152152
- application/json;odata=minimalmetadata
@@ -161,27 +161,27 @@ interactions:
161161
DataServiceVersion:
162162
- '3.0'
163163
Date:
164-
- Wed, 28 Oct 2020 21:39:12 GMT
164+
- Mon, 02 Nov 2020 20:02:10 GMT
165165
User-Agent:
166-
- azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
166+
- azsdk-python-data-tables/12.0.0b3 Python/2.7.18 (Windows-10-10.0.19041)
167167
x-ms-date:
168-
- Wed, 28 Oct 2020 21:39:12 GMT
168+
- Mon, 02 Nov 2020 20:02:10 GMT
169169
x-ms-version:
170170
- '2019-02-02'
171171
method: POST
172172
uri: https://tablesteststorname.table.core.windows.net/uttablede991889
173173
response:
174174
body:
175-
string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-10-28T21%3A39%3A12.2732596Z''\"","PartitionKey":"pkde991889","RowKey":"negative","Timestamp":"2020-10-28T21:39:12.2732596Z","large@odata.type":"Edm.Int64","large":"-1125899906842625"}'
175+
string: !!python/unicode '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-11-02T20%3A02%3A10.4946891Z''\"","PartitionKey":"pkde991889","RowKey":"negative","Timestamp":"2020-11-02T20:02:10.4946891Z","large@odata.type":"Edm.Int64","large":"-1125899906842625"}'
176176
headers:
177177
cache-control:
178178
- no-cache
179179
content-type:
180180
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
181181
date:
182-
- Wed, 28 Oct 2020 21:39:12 GMT
182+
- Mon, 02 Nov 2020 20:02:09 GMT
183183
etag:
184-
- W/"datetime'2020-10-28T21%3A39%3A12.2732596Z'"
184+
- W/"datetime'2020-11-02T20%3A02%3A10.4946891Z'"
185185
location:
186186
- https://tablesteststorname.table.core.windows.net/uttablede991889(PartitionKey='pkde991889',RowKey='negative')
187187
server:
@@ -207,27 +207,27 @@ interactions:
207207
DataServiceVersion:
208208
- '3.0'
209209
Date:
210-
- Wed, 28 Oct 2020 21:39:12 GMT
210+
- Mon, 02 Nov 2020 20:02:10 GMT
211211
User-Agent:
212-
- azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
212+
- azsdk-python-data-tables/12.0.0b3 Python/2.7.18 (Windows-10-10.0.19041)
213213
x-ms-date:
214-
- Wed, 28 Oct 2020 21:39:12 GMT
214+
- Mon, 02 Nov 2020 20:02:10 GMT
215215
x-ms-version:
216216
- '2019-02-02'
217217
method: GET
218218
uri: https://tablesteststorname.table.core.windows.net/uttablede991889(PartitionKey='pkde991889',RowKey='negative')
219219
response:
220220
body:
221-
string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-10-28T21%3A39%3A12.2732596Z''\"","PartitionKey":"pkde991889","RowKey":"negative","Timestamp":"2020-10-28T21:39:12.2732596Z","large@odata.type":"Edm.Int64","large":"-1125899906842625"}'
221+
string: !!python/unicode '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttablede991889/@Element","odata.etag":"W/\"datetime''2020-11-02T20%3A02%3A10.4946891Z''\"","PartitionKey":"pkde991889","RowKey":"negative","Timestamp":"2020-11-02T20:02:10.4946891Z","large@odata.type":"Edm.Int64","large":"-1125899906842625"}'
222222
headers:
223223
cache-control:
224224
- no-cache
225225
content-type:
226226
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
227227
date:
228-
- Wed, 28 Oct 2020 21:39:12 GMT
228+
- Mon, 02 Nov 2020 20:02:09 GMT
229229
etag:
230-
- W/"datetime'2020-10-28T21%3A39%3A12.2732596Z'"
230+
- W/"datetime'2020-11-02T20%3A02%3A10.4946891Z'"
231231
server:
232232
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
233233
transfer-encoding:
@@ -251,25 +251,25 @@ interactions:
251251
Content-Length:
252252
- '0'
253253
Date:
254-
- Wed, 28 Oct 2020 21:39:12 GMT
254+
- Mon, 02 Nov 2020 20:02:10 GMT
255255
User-Agent:
256-
- azsdk-python-data-tables/12.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0)
256+
- azsdk-python-data-tables/12.0.0b3 Python/2.7.18 (Windows-10-10.0.19041)
257257
x-ms-date:
258-
- Wed, 28 Oct 2020 21:39:12 GMT
258+
- Mon, 02 Nov 2020 20:02:10 GMT
259259
x-ms-version:
260260
- '2019-02-02'
261261
method: DELETE
262262
uri: https://tablesteststorname.table.core.windows.net/Tables('uttablede991889')
263263
response:
264264
body:
265-
string: ''
265+
string: !!python/unicode
266266
headers:
267267
cache-control:
268268
- no-cache
269269
content-length:
270270
- '0'
271271
date:
272-
- Wed, 28 Oct 2020 21:39:12 GMT
272+
- Mon, 02 Nov 2020 20:02:09 GMT
273273
server:
274274
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
275275
x-content-type-options:

0 commit comments

Comments
 (0)