Skip to content

Commit

Permalink
Adjusted testcase (#24335)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenttran-msft committed May 6, 2022
1 parent c52277a commit fcf4afb
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ interactions:
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:26 GMT
- Fri, 06 May 2022 21:52:51 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: PUT
uri: https://storagename.blob.core.windows.net/filesystem916811e6?restype=container&timeout=5
response:
Expand All @@ -25,15 +25,15 @@ interactions:
content-length:
- '0'
date:
- Wed, 06 Apr 2022 22:36:25 GMT
- Fri, 06 May 2022 21:52:51 GMT
etag:
- '"0x8DA181DE2E5EAE8"'
- '"0x8DA2FAAC44170F0"'
last-modified:
- Wed, 06 Apr 2022 22:36:26 GMT
- Fri, 06 May 2022 21:52:50 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2020-10-02'
- '2021-06-08'
status:
code: 201
message: Created
Expand All @@ -49,11 +49,11 @@ interactions:
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:26 GMT
- Fri, 06 May 2022 21:52:51 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: PUT
uri: https://storagename.dfs.core.windows.net/filesystem916811e6/file916811e6?resource=file
response:
Expand All @@ -63,17 +63,17 @@ interactions:
content-length:
- '0'
date:
- Wed, 06 Apr 2022 22:36:26 GMT
- Fri, 06 May 2022 21:52:50 GMT
etag:
- '"0x8DA181DE33191DD"'
- '"0x8DA2FAAC4A5E1DF"'
last-modified:
- Wed, 06 Apr 2022 22:36:27 GMT
- Fri, 06 May 2022 21:52:51 GMT
server:
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2020-10-02'
- '2021-06-08'
status:
code: 201
message: Created
Expand All @@ -89,11 +89,11 @@ interactions:
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:27 GMT
- Fri, 06 May 2022 21:52:52 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: PUT
uri: https://storagename.dfs.core.windows.net/filesystem916811e6/file916811e6?resource=file
response:
Expand All @@ -103,17 +103,17 @@ interactions:
content-length:
- '0'
date:
- Wed, 06 Apr 2022 22:36:26 GMT
- Fri, 06 May 2022 21:52:51 GMT
etag:
- '"0x8DA181DE33D9E10"'
- '"0x8DA2FAAC4DB61F5"'
last-modified:
- Wed, 06 Apr 2022 22:36:27 GMT
- Fri, 06 May 2022 21:52:52 GMT
server:
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2020-10-02'
- '2021-06-08'
status:
code: 201
message: Created
Expand All @@ -129,11 +129,11 @@ interactions:
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:27 GMT
- Fri, 06 May 2022 21:52:52 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: DELETE
uri: https://storagename.blob.core.windows.net/filesystem916811e6?restype=container
response:
Expand All @@ -143,11 +143,11 @@ interactions:
content-length:
- '0'
date:
- Wed, 06 Apr 2022 22:36:26 GMT
- Fri, 06 May 2022 21:52:52 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2020-10-02'
- '2021-06-08'
status:
code: 202
message: Accepted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ interactions:
Accept:
- application/xml
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:34 GMT
- Fri, 06 May 2022 21:53:20 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: PUT
uri: https://storagename.blob.core.windows.net/filesystem8a8a16e0?restype=container&timeout=5
response:
body:
string: ''
headers:
content-length: '0'
date: Wed, 06 Apr 2022 22:36:34 GMT
etag: '"0x8DA181DE7C7C166"'
last-modified: Wed, 06 Apr 2022 22:36:34 GMT
date: Fri, 06 May 2022 21:53:19 GMT
etag: '"0x8DA2FAAD5D0883E"'
last-modified: Fri, 06 May 2022 21:53:20 GMT
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version: '2020-10-02'
x-ms-version: '2021-06-08'
status:
code: 201
message: Created
Expand All @@ -32,24 +32,24 @@ interactions:
Accept:
- application/json
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:35 GMT
- Fri, 06 May 2022 21:53:21 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: PUT
uri: https://storagename.dfs.core.windows.net/filesystem8a8a16e0/file8a8a16e0?resource=file
response:
body:
string: ''
headers:
content-length: '0'
date: Wed, 06 Apr 2022 22:36:34 GMT
etag: '"0x8DA181DE7F67F66"'
last-modified: Wed, 06 Apr 2022 22:36:35 GMT
date: Fri, 06 May 2022 21:53:20 GMT
etag: '"0x8DA2FAAD61AC7F1"'
last-modified: Fri, 06 May 2022 21:53:20 GMT
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted: 'true'
x-ms-version: '2020-10-02'
x-ms-version: '2021-06-08'
status:
code: 201
message: Created
Expand All @@ -60,24 +60,24 @@ interactions:
Accept:
- application/json
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:35 GMT
- Fri, 06 May 2022 21:53:21 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: PUT
uri: https://storagename.dfs.core.windows.net/filesystem8a8a16e0/file8a8a16e0?resource=file
response:
body:
string: ''
headers:
content-length: '0'
date: Wed, 06 Apr 2022 22:36:34 GMT
etag: '"0x8DA181DE80068FD"'
last-modified: Wed, 06 Apr 2022 22:36:35 GMT
date: Fri, 06 May 2022 21:53:21 GMT
etag: '"0x8DA2FAAD64D6C9E"'
last-modified: Fri, 06 May 2022 21:53:21 GMT
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted: 'true'
x-ms-version: '2020-10-02'
x-ms-version: '2021-06-08'
status:
code: 201
message: Created
Expand All @@ -88,21 +88,21 @@ interactions:
Accept:
- application/xml
User-Agent:
- azsdk-python-storage-dfs/12.7.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
- azsdk-python-storage-dfs/12.7.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 06 Apr 2022 22:36:35 GMT
- Fri, 06 May 2022 21:53:22 GMT
x-ms-version:
- '2020-10-02'
- '2021-06-08'
method: DELETE
uri: https://storagename.blob.core.windows.net/filesystem8a8a16e0?restype=container
response:
body:
string: ''
headers:
content-length: '0'
date: Wed, 06 Apr 2022 22:36:34 GMT
date: Fri, 06 May 2022 21:53:20 GMT
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version: '2020-10-02'
x-ms-version: '2021-06-08'
status:
code: 202
message: Accepted
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-file-datalake/tests/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_create_file_extra_backslashes(self, datalake_storage_account_name, data
file_client.file_system_name + '/',
'/' + file_client.path_name,
credential=datalake_storage_account_key, logging_enable=True)
response = file_client.create_file()
response = new_file_client.create_file()

# Assert
self.assertIsNotNone(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def test_create_file_extra_backslashes_async(self, datalake_storage_accoun
file_client.file_system_name + '/',
'/' + file_client.path_name,
credential=datalake_storage_account_key, logging_enable=True)
response = await file_client.create_file()
response = await new_file_client.create_file()

# Assert
self.assertIsNotNone(response)
Expand Down

0 comments on commit fcf4afb

Please sign in to comment.