-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Move generate_access_token to test_common.test_utils
#47712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jason810496
merged 7 commits into
apache:main
from
jason810496:refactor/make-generate-jwt-token-as-common-module
Apr 11, 2025
Merged
Move generate_access_token to test_common.test_utils
#47712
jason810496
merged 7 commits into
apache:main
from
jason810496:refactor/make-generate-jwt-token-as-common-module
Apr 11, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
518b485 to
e2d468d
Compare
e2d468d to
b5e2169
Compare
3c72861 to
b022a62
Compare
vincbeck
reviewed
Mar 28, 2025
Contributor
vincbeck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this PR, I think it is a great idea. However, it will potentially conflict with #48498
Member
Author
b022a62 to
ca65747
Compare
58cd84d to
37e712d
Compare
Contributor
|
#48498 is now merged |
a17701c to
a6509f1
Compare
generate_jwt_token to test_common.test_utilsgenerate_access_token to test_common.test_utils
Member
Author
|
Non-related test fail, ready to review. |
vincbeck
approved these changes
Apr 10, 2025
Lee-W
approved these changes
Apr 11, 2025
gopidesupavan
approved these changes
Apr 11, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:API
Airflow's REST/HTTP API
area:CI
Airflow's tests and continious integration
area:production-image
Production image improvements and fixes
full tests needed
We need to run full set of tests for this PR to merge
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
related slack discussion: https://apache-airflow.slack.com/archives/C06K9Q5G2UA/p1741769075107729
Why
Since AIP-84 | Add Auth for Dags #47433 introduces
get_jwt_tokenwith the new login flow for testing. To ensure consistency, this test utility should have a single source acrossclients/python/test_python_client.py,docker_tests, andkubernetes_tests.How
generate_jwt_tokenandRefreshJwtAdapteras utility functions.get_jwt_tokentogenerate_jwt_token, as suggested by @ashb.