kaxil commented on a change in pull request #8642:
URL: https://github.com/apache/airflow/pull/8642#discussion_r422566889



##########
File path: tests/providers/snowflake/hooks/test_snowflake.py
##########
@@ -134,3 +136,15 @@ def test_key_pair_auth_not_encrypted(self):
         self.conn.password = None
         params = self.db_hook._get_conn_params()
         self.assertTrue('private_key' in params)
+
+    def test_authenticator(self):
+        self.conn.extra_dejson = {'database': 'db',
+                                  'account': 'airflow',
+                                  'warehouse': 'af_wh',
+                                  'region': 'af_region',
+                                  'role': 'af_role',
+                                  'authenticator': 'externalbrowser'}
+
+        uri_shouldbe = 
'snowflake://user:pw@airflow/db/public?warehouse=af_wh&role=af_role' \
+                       '&authenticator=externalbrowser'
+        self.assertEqual(uri_shouldbe, self.db_hook.get_uri())

Review comment:
       ```suggestion
   ```




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

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


Reply via email to