Skip to content

Bugfix: Add missing application item to conn params in snowflake test - #16462

Closed
ephraimbuddy wants to merge 3 commits into
apache:mainfrom
astronomer:fix-failing-master
Closed

ephraimbuddy wants to merge 3 commits into
apache:mainfrom
astronomer:fix-failing-master

Conversation

@ephraimbuddy

Copy link
Copy Markdown
Contributor

The application item is missing in snowflake hook test


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@boring-cyborg boring-cyborg Bot added area:providers provider:snowflake Issues related to Snowflake provider labels Jun 15, 2021
@potiuk

potiuk commented Jun 15, 2021

Copy link
Copy Markdown
Member

Sorry. I was hurring too much with that :(

'role': 'af_role',
'authenticator': 'snowflake',
'session_parameters': {"QUERY_TAG": "This is a test hook"},
"application": os.environ.get("AIRFLOW_SNOWFLAKE_PARTNER", "AIRFLOW"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it’d be better to mock the environ and also test the logic is correct.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me do it @ephraimbuddy . My fault.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uranusjr I'm not sure I understand the logic you want tested. I have just mocked it

@github-actions github-actions Bot added the okay to merge It's ok to merge this PR as it does not require more tests label Jun 15, 2021
@github-actions

Copy link
Copy Markdown
Contributor

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@potiuk

potiuk commented Jun 15, 2021

Copy link
Copy Markdown
Member

@ephraimbuddy #16463

@ephraimbuddy

Copy link
Copy Markdown
Contributor Author

@ephraimbuddy #16463

Sorry I was a bit delayed thinking of logic to check as @uranusjr advised

@ephraimbuddy
ephraimbuddy deleted the fix-failing-master branch June 15, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers okay to merge It's ok to merge this PR as it does not require more tests provider:snowflake Issues related to Snowflake provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants