dabla commented on code in PR #77377:
URL: https://github.com/apache/airflow/pull/77377#discussion_r4713177873


##########
providers/microsoft/azure/tests/unit/microsoft/azure/fs/test_adls.py:
##########
@@ -496,12 +520,37 @@ def mocked_blob_file_system():
                 "client_secret": "client_secret",
                 "tenant_id": "tenant_id",
             },
+            None,
+        ),
+        pytest.param(
+            Connection(
+                conn_id="testconn",
+                conn_type="wasb",
+                host="https://testaccountname.blob.core.mydomain.io/";,
+                password="password",
+                extra={
+                    "account_name": "extraaccount",
+                    "account_key": "extra_key",
+                    "account_host": "extraaccount.blob.core.mydomain.io",
+                },
+            ),
+            {
+                "account_name": "overrideaccount",
+                "account_key": "override_key",
+                "account_host": "overrideaccount.blob.core.mydomain.io",
+            },
+            {
+                "account_name": "overrideaccount",

Review Comment:
   **[nit]** The case overrides all three keys, so it would also pass if 
`storage_options` replaced the options instead of being merged into them.
   
   `get_fs()` ends with `options.update(storage_options or {})`: a key in 
`storage_options` wins, the others stay. With all three keys overridden, the 
expected dict equals `storage_options`, and an implementation that returned 
`storage_options` alone would pass too. Overriding only `account_name` shows 
both halves: the call then gets `account_name="overrideaccount"` with 
`account_key="extra_key"` and 
`account_host="extraaccount.blob.core.mydomain.io"` kept from Extra. Optional; 
the case as written already fails when `storage_options` is ignored.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to