You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/09 18:16:46 UTC

[GitHub] [airflow] yehoshuadimarsky commented on pull request #20775: support IAM login for gcp sql with proxy

yehoshuadimarsky commented on pull request #20775:
URL: https://github.com/apache/airflow/pull/20775#issuecomment-1008348390


   See this link for details about IAM login with Google SQL Cloud Auth proxy: https://cloud.google.com/sql/docs/postgres/iam-logins#cloud-sql-auth-proxy
   
   But I can't figure out how to test this kind of login within old-style `unittest` patching - any suggestions?
   
   Relevant parts of existing test code: 
   https://github.com/apache/airflow/blob/68fa358c85d0ebe1aa22ace30b33867ad4e622a8/tests/providers/google/cloud/hooks/test_cloud_sql.py#L989-L1038
   and
   https://github.com/apache/airflow/blob/68fa358c85d0ebe1aa22ace30b33867ad4e622a8/tests/providers/google/cloud/hooks/test_cloud_sql.py#L1122-L1135


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org