Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] Adjust connection string parser test cases #24335

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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