airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Maritato <fmarit...@opentable.com.INVALID>
Subject Re: [External] Re: Snowflake hook with key pair auth
Date Thu, 07 Mar 2019 16:36:51 GMT
Ok, great suggestion! I'll do that. Thanks

On Wed, Mar 6, 2019 at 10:57 PM jiajie zhong <zhongjiajie955@hotmail.com>
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/68c66a1f8ae2398bbf9999c8b9556fbf72b7becb/tests/hooks/test_hive_hook.py#L358-L361
>
> https://github.com/apache/airflow/blob/68c66a1f8ae2398bbf9999c8b9556fbf72b7becb/tests/hooks/test_hive_hook.py#L390
>  for inspiration
>
> ________________________________
>
> Hi All,
>
> I opened AIRFLOW-4031 <https://issues.apache.org/jira/browse/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 created a unit test for this, but I need to have a couple of sample/fake
> private key files for it to load. Where is the proper place to put these
> files? I didn't see anything similar in the source tree. I was thinking
> about putting them in tests/contrib/hooks/data but I wanted to check with
> this list first and see what the best practice is.
>
> Thanks!
> --
> Frank Maritato
>


-- 
Frank Maritato

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message