omar-massfih commented on code in PR #75810:
URL: https://github.com/apache/airflow/pull/75810#discussion_r4402081318


##########
providers/snowflake/tests/unit/snowflake/utils/test__rest_auth.py:
##########
@@ -227,6 +346,96 @@ def 
test_build_auth_headers_contains_only_auth_headers(self, mock_conn_params):
         assert headers["X-Snowflake-Authorization-Token-Type"] == 
"PROGRAMMATIC_ACCESS_TOKEN"
 
 
+class TestFetchIdentityTokens:
+    @staticmethod
+    def _fake_google() -> tuple[mock.MagicMock, dict[str, mock.MagicMock]]:
+        google = mock.MagicMock()
+        modules = {
+            "google": google,
+            "google.auth": google.auth,
+            "google.auth.transport": google.auth.transport,
+            "google.auth.transport.requests": google.auth.transport.requests,
+            "google.oauth2": google.oauth2,
+            "google.oauth2.id_token": google.oauth2.id_token,
+        }
+        return google, modules
+
+    def test_aws_requests_web_identity_token_for_snowflake(self):
+        boto3 = mock.MagicMock()

Review Comment:
   Replaced fake modules with a real STS client plus Stubber and autospecced 
Azure/Google credentials. All 264 affected tests pass through Breeze, along 
with static checks and provider mypy.



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