Lee-W commented on code in PR #73932:
URL: https://github.com/apache/airflow/pull/73932#discussion_r4178016170
##########
providers/snowflake/tests/unit/snowflake/hooks/test_snowflake_sql_api.py:
##########
@@ -561,6 +561,43 @@ def
test_get_headers_pat_raises_when_password_missing(self, mock_conn_param):
with pytest.raises(ValueError, match="Programmatic Access Token"):
hook.get_headers()
+ @mock.patch(f"{HOOK_PATH}.get_private_key", autospec=True)
+ @mock.patch(f"{HOOK_PATH}._get_conn_params", autospec=True)
+ def test_get_headers_reuses_jwt_within_renewal_window(
Review Comment:
Added `test_get_headers_forwards_token_lifetimes_to_jwt_generator`
--
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]