Support Azure Datalake Test Connection fixes (#12579)

* Support Azure Datalake Test Connection fixes

* Rename function name and remove unwanted argument

---------

Co-authored-by: Vanshika Kabra <vanshikakabra@Vanshikas-MacBook-Pro.local>
This commit is contained in:
vanshika18 2023-07-27 23:25:25 +05:30 committed by GitHub
parent 3111f91a06
commit 02ec8b0161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,12 @@ def test_connection(
func = connection.client.list_buckets
if isinstance(config, AzureConfig):
func = partial(connection.client.list_containers, name_starts_with="")
def list_connection(connection):
conn = connection.client.list_containers(name_starts_with="")
list(conn)
func = partial(list_connection, connection)
test_fn = {
"ListBuckets": func,