kaxil commented on code in PR #77565:
URL: https://github.com/apache/airflow/pull/77565#discussion_r4697172956


##########
providers/snowflake/tests/unit/snowflake/hooks/test_snowflake.py:
##########
@@ -2252,14 +2252,35 @@ def 
test_get_conn_passes_workload_identity_provider_to_connect(self):
         assert call_kwargs["authenticator"] == "WORKLOAD_IDENTITY"
         assert call_kwargs["workload_identity_provider"] == "GCP"
 
-    def 
test_get_connection_form_widgets_exposes_workload_identity_provider(self):
-        """The connection form must expose a workload_identity_provider field 
so users can set it in the UI."""
+    @pytest.mark.parametrize("field", ["workload_identity_provider", 
"authenticator"])

Review Comment:
   The new `authenticator` case only checks that the key is in the dict 
`get_connection_form_widgets` returns, so it restates the source line. 
`test_get_conn_params_authenticator_from_extra` below already covers the part 
that can break. I'd drop this case. The `workload_identity_provider` one has 
the same shape, so this isn't new here and doesn't need to hold the PR.



-- 
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