Re: [External] Re: Snowflake hook with key pair auth

2019-03-07 Thread Frank Maritato
Ok, great suggestion! I'll do that. Thanks On Wed, Mar 6, 2019 at 10:57 PM jiajie zhong wrote: > Due to this file just use it unittest, I think the best way is to generate > it in test file, maybe you could see > > https://github.com/apache/airflow/blob/68c66a1f8ae2398bbfc8b9556fbf72b7becb/t

Re: Snowflake hook with key pair auth

2019-03-07 Thread Deng Xiaodong
Agree with Jiajie. You can consider writing the sample private key into a temp file at the beginning of your test, and clean it once it is done. XD On Thu, Mar 7, 2019 at 14:57 jiajie zhong wrote: > Due to this file just use it unittest, I think the best way is to generate > it in test file, ma

Re: Snowflake hook with key pair auth

2019-03-06 Thread jiajie zhong
Due to this file just use it unittest, I think the best way is to generate it in test file, maybe you could see https://github.com/apache/airflow/blob/68c66a1f8ae2398bbfc8b9556fbf72b7becb/tests/hooks/test_hive_hook.py#L358-L361 https://github.com/apache/airflow/blob/68c66a1f8ae2398bbfc8b95

Snowflake hook with key pair auth

2019-03-06 Thread Frank Maritato
Hi All, I opened AIRFLOW-4031 and I'm working on the pull request for this feature. In a nutshell, I'm adding the ability to specify the location of the private key to use when authenticating to snowflake instead of username and password. I cre