Skip to content

Commit fcf4afb

Browse files
Adjusted testcase (#24335)
1 parent c52277a commit fcf4afb

4 files changed

Lines changed: 54 additions & 54 deletions

File tree

sdk/storage/azure-storage-file-datalake/tests/recordings/test_file.test_create_file_extra_backslashes.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ interactions:
1111
Content-Length:
1212
- '0'
1313
User-Agent:
14-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
14+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
1515
x-ms-date:
16-
- Wed, 06 Apr 2022 22:36:26 GMT
16+
- Fri, 06 May 2022 21:52:51 GMT
1717
x-ms-version:
18-
- '2020-10-02'
18+
- '2021-06-08'
1919
method: PUT
2020
uri: https://storagename.blob.core.windows.net/filesystem916811e6?restype=container&timeout=5
2121
response:
@@ -25,15 +25,15 @@ interactions:
2525
content-length:
2626
- '0'
2727
date:
28-
- Wed, 06 Apr 2022 22:36:25 GMT
28+
- Fri, 06 May 2022 21:52:51 GMT
2929
etag:
30-
- '"0x8DA181DE2E5EAE8"'
30+
- '"0x8DA2FAAC44170F0"'
3131
last-modified:
32-
- Wed, 06 Apr 2022 22:36:26 GMT
32+
- Fri, 06 May 2022 21:52:50 GMT
3333
server:
3434
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
3535
x-ms-version:
36-
- '2020-10-02'
36+
- '2021-06-08'
3737
status:
3838
code: 201
3939
message: Created
@@ -49,11 +49,11 @@ interactions:
4949
Content-Length:
5050
- '0'
5151
User-Agent:
52-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
52+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
5353
x-ms-date:
54-
- Wed, 06 Apr 2022 22:36:26 GMT
54+
- Fri, 06 May 2022 21:52:51 GMT
5555
x-ms-version:
56-
- '2020-10-02'
56+
- '2021-06-08'
5757
method: PUT
5858
uri: https://storagename.dfs.core.windows.net/filesystem916811e6/file916811e6?resource=file
5959
response:
@@ -63,17 +63,17 @@ interactions:
6363
content-length:
6464
- '0'
6565
date:
66-
- Wed, 06 Apr 2022 22:36:26 GMT
66+
- Fri, 06 May 2022 21:52:50 GMT
6767
etag:
68-
- '"0x8DA181DE33191DD"'
68+
- '"0x8DA2FAAC4A5E1DF"'
6969
last-modified:
70-
- Wed, 06 Apr 2022 22:36:27 GMT
70+
- Fri, 06 May 2022 21:52:51 GMT
7171
server:
7272
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
7373
x-ms-request-server-encrypted:
7474
- 'true'
7575
x-ms-version:
76-
- '2020-10-02'
76+
- '2021-06-08'
7777
status:
7878
code: 201
7979
message: Created
@@ -89,11 +89,11 @@ interactions:
8989
Content-Length:
9090
- '0'
9191
User-Agent:
92-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
92+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
9393
x-ms-date:
94-
- Wed, 06 Apr 2022 22:36:27 GMT
94+
- Fri, 06 May 2022 21:52:52 GMT
9595
x-ms-version:
96-
- '2020-10-02'
96+
- '2021-06-08'
9797
method: PUT
9898
uri: https://storagename.dfs.core.windows.net/filesystem916811e6/file916811e6?resource=file
9999
response:
@@ -103,17 +103,17 @@ interactions:
103103
content-length:
104104
- '0'
105105
date:
106-
- Wed, 06 Apr 2022 22:36:26 GMT
106+
- Fri, 06 May 2022 21:52:51 GMT
107107
etag:
108-
- '"0x8DA181DE33D9E10"'
108+
- '"0x8DA2FAAC4DB61F5"'
109109
last-modified:
110-
- Wed, 06 Apr 2022 22:36:27 GMT
110+
- Fri, 06 May 2022 21:52:52 GMT
111111
server:
112112
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
113113
x-ms-request-server-encrypted:
114114
- 'true'
115115
x-ms-version:
116-
- '2020-10-02'
116+
- '2021-06-08'
117117
status:
118118
code: 201
119119
message: Created
@@ -129,11 +129,11 @@ interactions:
129129
Content-Length:
130130
- '0'
131131
User-Agent:
132-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
132+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
133133
x-ms-date:
134-
- Wed, 06 Apr 2022 22:36:27 GMT
134+
- Fri, 06 May 2022 21:52:52 GMT
135135
x-ms-version:
136-
- '2020-10-02'
136+
- '2021-06-08'
137137
method: DELETE
138138
uri: https://storagename.blob.core.windows.net/filesystem916811e6?restype=container
139139
response:
@@ -143,11 +143,11 @@ interactions:
143143
content-length:
144144
- '0'
145145
date:
146-
- Wed, 06 Apr 2022 22:36:26 GMT
146+
- Fri, 06 May 2022 21:52:52 GMT
147147
server:
148148
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
149149
x-ms-version:
150-
- '2020-10-02'
150+
- '2021-06-08'
151151
status:
152152
code: 202
153153
message: Accepted

sdk/storage/azure-storage-file-datalake/tests/recordings/test_file_async.test_create_file_extra_backslashes_async.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ interactions:
55
Accept:
66
- application/xml
77
User-Agent:
8-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
8+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
99
x-ms-date:
10-
- Wed, 06 Apr 2022 22:36:34 GMT
10+
- Fri, 06 May 2022 21:53:20 GMT
1111
x-ms-version:
12-
- '2020-10-02'
12+
- '2021-06-08'
1313
method: PUT
1414
uri: https://storagename.blob.core.windows.net/filesystem8a8a16e0?restype=container&timeout=5
1515
response:
1616
body:
1717
string: ''
1818
headers:
1919
content-length: '0'
20-
date: Wed, 06 Apr 2022 22:36:34 GMT
21-
etag: '"0x8DA181DE7C7C166"'
22-
last-modified: Wed, 06 Apr 2022 22:36:34 GMT
20+
date: Fri, 06 May 2022 21:53:19 GMT
21+
etag: '"0x8DA2FAAD5D0883E"'
22+
last-modified: Fri, 06 May 2022 21:53:20 GMT
2323
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
24-
x-ms-version: '2020-10-02'
24+
x-ms-version: '2021-06-08'
2525
status:
2626
code: 201
2727
message: Created
@@ -32,24 +32,24 @@ interactions:
3232
Accept:
3333
- application/json
3434
User-Agent:
35-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
35+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
3636
x-ms-date:
37-
- Wed, 06 Apr 2022 22:36:35 GMT
37+
- Fri, 06 May 2022 21:53:21 GMT
3838
x-ms-version:
39-
- '2020-10-02'
39+
- '2021-06-08'
4040
method: PUT
4141
uri: https://storagename.dfs.core.windows.net/filesystem8a8a16e0/file8a8a16e0?resource=file
4242
response:
4343
body:
4444
string: ''
4545
headers:
4646
content-length: '0'
47-
date: Wed, 06 Apr 2022 22:36:34 GMT
48-
etag: '"0x8DA181DE7F67F66"'
49-
last-modified: Wed, 06 Apr 2022 22:36:35 GMT
47+
date: Fri, 06 May 2022 21:53:20 GMT
48+
etag: '"0x8DA2FAAD61AC7F1"'
49+
last-modified: Fri, 06 May 2022 21:53:20 GMT
5050
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
5151
x-ms-request-server-encrypted: 'true'
52-
x-ms-version: '2020-10-02'
52+
x-ms-version: '2021-06-08'
5353
status:
5454
code: 201
5555
message: Created
@@ -60,24 +60,24 @@ interactions:
6060
Accept:
6161
- application/json
6262
User-Agent:
63-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
63+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
6464
x-ms-date:
65-
- Wed, 06 Apr 2022 22:36:35 GMT
65+
- Fri, 06 May 2022 21:53:21 GMT
6666
x-ms-version:
67-
- '2020-10-02'
67+
- '2021-06-08'
6868
method: PUT
6969
uri: https://storagename.dfs.core.windows.net/filesystem8a8a16e0/file8a8a16e0?resource=file
7070
response:
7171
body:
7272
string: ''
7373
headers:
7474
content-length: '0'
75-
date: Wed, 06 Apr 2022 22:36:34 GMT
76-
etag: '"0x8DA181DE80068FD"'
77-
last-modified: Wed, 06 Apr 2022 22:36:35 GMT
75+
date: Fri, 06 May 2022 21:53:21 GMT
76+
etag: '"0x8DA2FAAD64D6C9E"'
77+
last-modified: Fri, 06 May 2022 21:53:21 GMT
7878
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
7979
x-ms-request-server-encrypted: 'true'
80-
x-ms-version: '2020-10-02'
80+
x-ms-version: '2021-06-08'
8181
status:
8282
code: 201
8383
message: Created
@@ -88,21 +88,21 @@ interactions:
8888
Accept:
8989
- application/xml
9090
User-Agent:
91-
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
91+
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
9292
x-ms-date:
93-
- Wed, 06 Apr 2022 22:36:35 GMT
93+
- Fri, 06 May 2022 21:53:22 GMT
9494
x-ms-version:
95-
- '2020-10-02'
95+
- '2021-06-08'
9696
method: DELETE
9797
uri: https://storagename.blob.core.windows.net/filesystem8a8a16e0?restype=container
9898
response:
9999
body:
100100
string: ''
101101
headers:
102102
content-length: '0'
103-
date: Wed, 06 Apr 2022 22:36:34 GMT
103+
date: Fri, 06 May 2022 21:53:20 GMT
104104
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
105-
x-ms-version: '2020-10-02'
105+
x-ms-version: '2021-06-08'
106106
status:
107107
code: 202
108108
message: Accepted

sdk/storage/azure-storage-file-datalake/tests/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_create_file_extra_backslashes(self, datalake_storage_account_name, data
108108
file_client.file_system_name + '/',
109109
'/' + file_client.path_name,
110110
credential=datalake_storage_account_key, logging_enable=True)
111-
response = file_client.create_file()
111+
response = new_file_client.create_file()
112112

113113
# Assert
114114
self.assertIsNotNone(response)

sdk/storage/azure-storage-file-datalake/tests/test_file_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def test_create_file_extra_backslashes_async(self, datalake_storage_accoun
115115
file_client.file_system_name + '/',
116116
'/' + file_client.path_name,
117117
credential=datalake_storage_account_key, logging_enable=True)
118-
response = await file_client.create_file()
118+
response = await new_file_client.create_file()
119119

120120
# Assert
121121
self.assertIsNotNone(response)

0 commit comments

Comments
 (0)