Skip to content

Commit ba06836

Browse files
[Storage] Fix some datalake cpk tests (Azure#24009)
1 parent 5ee6b6b commit ba06836

File tree

6 files changed

+230
-147
lines changed

6 files changed

+230
-147
lines changed

sdk/storage/azure-storage-file-datalake/tests/recordings/test_cpk.test_file_download_cpk.yaml

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ interactions:
1111
Content-Length:
1212
- '0'
1313
User-Agent:
14-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
14+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
1515
x-ms-date:
16-
- Wed, 16 Mar 2022 18:30:36 GMT
16+
- Thu, 14 Apr 2022 20:13:57 GMT
1717
x-ms-version:
1818
- '2021-06-08'
1919
method: PUT
@@ -25,11 +25,11 @@ interactions:
2525
content-length:
2626
- '0'
2727
date:
28-
- Wed, 16 Mar 2022 18:30:35 GMT
28+
- Thu, 14 Apr 2022 20:13:57 GMT
2929
etag:
30-
- '"0x8DA077B1086B58B"'
30+
- '"0x8DA1E534EE9B8F3"'
3131
last-modified:
32-
- Wed, 16 Mar 2022 18:30:36 GMT
32+
- Thu, 14 Apr 2022 20:13:58 GMT
3333
server:
3434
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
3535
x-ms-version:
@@ -49,17 +49,15 @@ interactions:
4949
Content-Length:
5050
- '0'
5151
User-Agent:
52-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
52+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
5353
x-ms-date:
54-
- Wed, 16 Mar 2022 18:30:36 GMT
54+
- Thu, 14 Apr 2022 20:13:58 GMT
5555
x-ms-encryption-algorithm:
5656
- AES256
5757
x-ms-encryption-key:
5858
- MDEyMzQ1NjcwMTIzNDU2NzAxMjM0NTY3MDEyMzQ1Njc=
5959
x-ms-encryption-key-sha256:
6060
- 3QFFFpRA5+XANHqwwbT4yXDmrT/2JaLt/FKHjzhOdoE=
61-
x-ms-properties:
62-
- ''
6361
x-ms-version:
6462
- '2021-06-08'
6563
method: PUT
@@ -71,11 +69,11 @@ interactions:
7169
content-length:
7270
- '0'
7371
date:
74-
- Wed, 16 Mar 2022 18:30:36 GMT
72+
- Thu, 14 Apr 2022 20:13:57 GMT
7573
etag:
76-
- '"0x8DA077B10C77E4E"'
74+
- '"0x8DA1E534F19BC41"'
7775
last-modified:
78-
- Wed, 16 Mar 2022 18:30:37 GMT
76+
- Thu, 14 Apr 2022 20:13:58 GMT
7977
server:
8078
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
8179
x-ms-encryption-key-sha256:
@@ -99,17 +97,15 @@ interactions:
9997
Content-Length:
10098
- '0'
10199
User-Agent:
102-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
100+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
103101
x-ms-date:
104-
- Wed, 16 Mar 2022 18:30:37 GMT
102+
- Thu, 14 Apr 2022 20:13:58 GMT
105103
x-ms-encryption-algorithm:
106104
- AES256
107105
x-ms-encryption-key:
108106
- MDEyMzQ1NjcwMTIzNDU2NzAxMjM0NTY3MDEyMzQ1Njc=
109107
x-ms-encryption-key-sha256:
110108
- 3QFFFpRA5+XANHqwwbT4yXDmrT/2JaLt/FKHjzhOdoE=
111-
x-ms-properties:
112-
- ''
113109
x-ms-version:
114110
- '2021-06-08'
115111
method: PUT
@@ -121,11 +117,11 @@ interactions:
121117
content-length:
122118
- '0'
123119
date:
124-
- Wed, 16 Mar 2022 18:30:36 GMT
120+
- Thu, 14 Apr 2022 20:13:57 GMT
125121
etag:
126-
- '"0x8DA077B10D33C6F"'
122+
- '"0x8DA1E534F285CBC"'
127123
last-modified:
128-
- Wed, 16 Mar 2022 18:30:37 GMT
124+
- Thu, 14 Apr 2022 20:13:58 GMT
129125
server:
130126
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
131127
x-ms-encryption-key-sha256:
@@ -151,9 +147,9 @@ interactions:
151147
Content-Type:
152148
- application/json
153149
User-Agent:
154-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
150+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
155151
x-ms-date:
156-
- Wed, 16 Mar 2022 18:30:37 GMT
152+
- Thu, 14 Apr 2022 20:13:58 GMT
157153
x-ms-encryption-algorithm:
158154
- AES256
159155
x-ms-encryption-key:
@@ -171,7 +167,7 @@ interactions:
171167
content-length:
172168
- '0'
173169
date:
174-
- Wed, 16 Mar 2022 18:30:37 GMT
170+
- Thu, 14 Apr 2022 20:13:57 GMT
175171
server:
176172
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
177173
x-ms-encryption-key-sha256:
@@ -194,12 +190,12 @@ interactions:
194190
- keep-alive
195191
Content-Length:
196192
- '0'
197-
If-None-Match:
198-
- '*'
193+
If-Match:
194+
- '"0x8DA1E534F285CBC"'
199195
User-Agent:
200-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
196+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
201197
x-ms-date:
202-
- Wed, 16 Mar 2022 18:30:37 GMT
198+
- Thu, 14 Apr 2022 20:13:58 GMT
203199
x-ms-encryption-algorithm:
204200
- AES256
205201
x-ms-encryption-key:
@@ -217,11 +213,11 @@ interactions:
217213
content-length:
218214
- '0'
219215
date:
220-
- Wed, 16 Mar 2022 18:30:37 GMT
216+
- Thu, 14 Apr 2022 20:13:57 GMT
221217
etag:
222-
- '"0x8DA077B10FD0589"'
218+
- '"0x8DA1E534F474F0F"'
223219
last-modified:
224-
- Wed, 16 Mar 2022 18:30:37 GMT
220+
- Thu, 14 Apr 2022 20:13:58 GMT
225221
server:
226222
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
227223
x-ms-encryption-key-sha256:
@@ -243,9 +239,9 @@ interactions:
243239
Connection:
244240
- keep-alive
245241
User-Agent:
246-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
242+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
247243
x-ms-date:
248-
- Wed, 16 Mar 2022 18:30:37 GMT
244+
- Thu, 14 Apr 2022 20:13:58 GMT
249245
x-ms-encryption-algorithm:
250246
- AES256
251247
x-ms-encryption-key:
@@ -271,23 +267,31 @@ interactions:
271267
content-type:
272268
- application/octet-stream
273269
date:
274-
- Wed, 16 Mar 2022 18:30:36 GMT
270+
- Thu, 14 Apr 2022 20:13:58 GMT
275271
etag:
276-
- '"0x8DA077B10FD0589"'
272+
- '"0x8DA1E534F474F0F"'
277273
last-modified:
278-
- Wed, 16 Mar 2022 18:30:37 GMT
274+
- Thu, 14 Apr 2022 20:13:58 GMT
279275
server:
280276
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
281277
x-ms-blob-type:
282278
- BlockBlob
283279
x-ms-creation-time:
284-
- Wed, 16 Mar 2022 18:30:37 GMT
280+
- Thu, 14 Apr 2022 20:13:58 GMT
285281
x-ms-encryption-key-sha256:
286282
- 3QFFFpRA5+XANHqwwbT4yXDmrT/2JaLt/FKHjzhOdoE=
283+
x-ms-group:
284+
- $superuser
287285
x-ms-lease-state:
288286
- available
289287
x-ms-lease-status:
290288
- unlocked
289+
x-ms-owner:
290+
- $superuser
291+
x-ms-permissions:
292+
- rw-r-----
293+
x-ms-resource-type:
294+
- file
291295
x-ms-server-encrypted:
292296
- 'true'
293297
x-ms-version:

sdk/storage/azure-storage-file-datalake/tests/recordings/test_cpk.test_file_upload_data_file_cpk.yaml

Lines changed: 73 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ interactions:
1111
Content-Length:
1212
- '0'
1313
User-Agent:
14-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
14+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
1515
x-ms-date:
16-
- Wed, 16 Mar 2022 01:27:30 GMT
16+
- Thu, 14 Apr 2022 20:13:49 GMT
1717
x-ms-version:
1818
- '2021-06-08'
1919
method: PUT
@@ -25,11 +25,11 @@ interactions:
2525
content-length:
2626
- '0'
2727
date:
28-
- Wed, 16 Mar 2022 01:27:29 GMT
28+
- Thu, 14 Apr 2022 20:13:49 GMT
2929
etag:
30-
- '"0x8DA06EC239D0DD5"'
30+
- '"0x8DA1E534A2666E2"'
3131
last-modified:
32-
- Wed, 16 Mar 2022 01:27:30 GMT
32+
- Thu, 14 Apr 2022 20:13:50 GMT
3333
server:
3434
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
3535
x-ms-version:
@@ -49,17 +49,15 @@ interactions:
4949
Content-Length:
5050
- '0'
5151
User-Agent:
52-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
52+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
5353
x-ms-date:
54-
- Wed, 16 Mar 2022 01:27:30 GMT
54+
- Thu, 14 Apr 2022 20:13:50 GMT
5555
x-ms-encryption-algorithm:
5656
- AES256
5757
x-ms-encryption-key:
5858
- MDEyMzQ1NjcwMTIzNDU2NzAxMjM0NTY3MDEyMzQ1Njc=
5959
x-ms-encryption-key-sha256:
6060
- 3QFFFpRA5+XANHqwwbT4yXDmrT/2JaLt/FKHjzhOdoE=
61-
x-ms-properties:
62-
- ''
6361
x-ms-version:
6462
- '2021-06-08'
6563
method: PUT
@@ -71,11 +69,11 @@ interactions:
7169
content-length:
7270
- '0'
7371
date:
74-
- Wed, 16 Mar 2022 01:27:30 GMT
72+
- Thu, 14 Apr 2022 20:13:49 GMT
7573
etag:
76-
- '"0x8DA06EC24504D16"'
74+
- '"0x8DA1E534A6A4D21"'
7775
last-modified:
78-
- Wed, 16 Mar 2022 01:27:31 GMT
76+
- Thu, 14 Apr 2022 20:13:50 GMT
7977
server:
8078
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
8179
x-ms-encryption-key-sha256:
@@ -99,17 +97,15 @@ interactions:
9997
Content-Length:
10098
- '0'
10199
User-Agent:
102-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
100+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
103101
x-ms-date:
104-
- Wed, 16 Mar 2022 01:27:31 GMT
102+
- Thu, 14 Apr 2022 20:13:50 GMT
105103
x-ms-encryption-algorithm:
106104
- AES256
107105
x-ms-encryption-key:
108106
- MDEyMzQ1NjcwMTIzNDU2NzAxMjM0NTY3MDEyMzQ1Njc=
109107
x-ms-encryption-key-sha256:
110108
- 3QFFFpRA5+XANHqwwbT4yXDmrT/2JaLt/FKHjzhOdoE=
111-
x-ms-properties:
112-
- ''
113109
x-ms-version:
114110
- '2021-06-08'
115111
method: PUT
@@ -121,11 +117,59 @@ interactions:
121117
content-length:
122118
- '0'
123119
date:
124-
- Wed, 16 Mar 2022 01:27:30 GMT
120+
- Thu, 14 Apr 2022 20:13:49 GMT
125121
etag:
126-
- '"0x8DA06EC245CA752"'
122+
- '"0x8DA1E534A78984E"'
127123
last-modified:
128-
- Wed, 16 Mar 2022 01:27:31 GMT
124+
- Thu, 14 Apr 2022 20:13:50 GMT
125+
server:
126+
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
127+
x-ms-encryption-key-sha256:
128+
- 3QFFFpRA5+XANHqwwbT4yXDmrT/2JaLt/FKHjzhOdoE=
129+
x-ms-request-server-encrypted:
130+
- 'true'
131+
x-ms-version:
132+
- '2021-06-08'
133+
status:
134+
code: 201
135+
message: Created
136+
- request:
137+
body: null
138+
headers:
139+
Accept:
140+
- application/json
141+
Accept-Encoding:
142+
- gzip, deflate
143+
Connection:
144+
- keep-alive
145+
Content-Length:
146+
- '0'
147+
User-Agent:
148+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
149+
x-ms-date:
150+
- Thu, 14 Apr 2022 20:13:50 GMT
151+
x-ms-encryption-algorithm:
152+
- AES256
153+
x-ms-encryption-key:
154+
- MDEyMzQ1NjcwMTIzNDU2NzAxMjM0NTY3MDEyMzQ1Njc=
155+
x-ms-encryption-key-sha256:
156+
- 3QFFFpRA5+XANHqwwbT4yXDmrT/2JaLt/FKHjzhOdoE=
157+
x-ms-version:
158+
- '2021-06-08'
159+
method: PUT
160+
uri: https://storagename.dfs.core.windows.net/utfilesystem3c940fc4/directory3c940fc4%2Ffile3c940fc4?resource=file
161+
response:
162+
body:
163+
string: ''
164+
headers:
165+
content-length:
166+
- '0'
167+
date:
168+
- Thu, 14 Apr 2022 20:13:49 GMT
169+
etag:
170+
- '"0x8DA1E534A843288"'
171+
last-modified:
172+
- Thu, 14 Apr 2022 20:13:50 GMT
129173
server:
130174
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
131175
x-ms-encryption-key-sha256:
@@ -151,9 +195,9 @@ interactions:
151195
Content-Type:
152196
- application/json
153197
User-Agent:
154-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
198+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
155199
x-ms-date:
156-
- Wed, 16 Mar 2022 01:27:31 GMT
200+
- Thu, 14 Apr 2022 20:13:50 GMT
157201
x-ms-encryption-algorithm:
158202
- AES256
159203
x-ms-encryption-key:
@@ -171,7 +215,7 @@ interactions:
171215
content-length:
172216
- '0'
173217
date:
174-
- Wed, 16 Mar 2022 01:27:31 GMT
218+
- Thu, 14 Apr 2022 20:13:49 GMT
175219
server:
176220
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
177221
x-ms-encryption-key-sha256:
@@ -194,12 +238,12 @@ interactions:
194238
- keep-alive
195239
Content-Length:
196240
- '0'
197-
If-None-Match:
198-
- '*'
241+
If-Match:
242+
- '"0x8DA1E534A843288"'
199243
User-Agent:
200-
- azsdk-python-storage-dfs/12.6.1 Python/3.10.1 (Windows-10-10.0.17763-SP0)
244+
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.4 (Windows-10-10.0.17763-SP0)
201245
x-ms-date:
202-
- Wed, 16 Mar 2022 01:27:31 GMT
246+
- Thu, 14 Apr 2022 20:13:50 GMT
203247
x-ms-encryption-algorithm:
204248
- AES256
205249
x-ms-encryption-key:
@@ -217,11 +261,11 @@ interactions:
217261
content-length:
218262
- '0'
219263
date:
220-
- Wed, 16 Mar 2022 01:27:31 GMT
264+
- Thu, 14 Apr 2022 20:13:50 GMT
221265
etag:
222-
- '"0x8DA06EC2474E6BB"'
266+
- '"0x8DA1E534AADE94C"'
223267
last-modified:
224-
- Wed, 16 Mar 2022 01:27:32 GMT
268+
- Thu, 14 Apr 2022 20:13:51 GMT
225269
server:
226270
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
227271
x-ms-encryption-key-sha256:

0 commit comments

Comments
 (0)