-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Update Rest API tests to no longer rely on FAB auth manager. Move tests specific to FAB permissions to FAB provider #42523
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
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
08e22b6
Update Rest API tests to no longer rely on FAB auth manager. Move tes…
vincbeck cf06dbf
Fix tests
vincbeck 3cc7f91
Remove unused code
vincbeck 8976775
Fix tests
vincbeck 55aecd3
Merge branch 'main' into vincbeck/rest_api_tests
vincbeck 3d73c48
Move `test_role_and_permission_schema.py` to provider
vincbeck 40bd3f6
Update `dag_run_note.user_id` and `task_instance_note.user_id` type t…
vincbeck ca6abd0
Add `postgresql_using`
vincbeck bc91bfd
Fix views
vincbeck 9797416
Fix views
vincbeck 60b03a2
Fix `postgresql_using`
vincbeck c2f35c3
Skipping `test_backfill_endpoint` if Airflow is < 3
vincbeck 10759db
Fix views
vincbeck a3f2c3d
Fix compat tests
vincbeck 3177d01
Fix compat tests
vincbeck 478985f
Ignore deprecation warning on specific tests
vincbeck 0325176
Revert "Ignore deprecation warning on specific tests"
vincbeck 6a69d78
Revert "Fix compat tests"
vincbeck 2dfb193
Revert "Skipping `test_backfill_endpoint` if Airflow is < 3"
vincbeck 50abe01
Skip tests if Airflow < 3
vincbeck e3fe630
Merge branch 'main' into vincbeck/rest_api_tests
vincbeck 9589605
Fix compat tests
vincbeck 7395055
Fix tests
vincbeck 8c763cf
Fix compat tests
vincbeck dcc005d
Fix tests
vincbeck 807a17e
Set `user_id` limit to 128
vincbeck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
52 changes: 52 additions & 0 deletions
52
airflow/migrations/versions/0034_3_0_0_update_user_id_type.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| """ | ||
| Update dag_run_note.user_id and task_instance_note.user_id columns to String. | ||
|
|
||
| Revision ID: 44eabb1904b4 | ||
| Revises: 16cbcb1c8c36 | ||
| Create Date: 2024-09-27 09:57:29.830521 | ||
|
|
||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "44eabb1904b4" | ||
| down_revision = "16cbcb1c8c36" | ||
| branch_labels = None | ||
| depends_on = None | ||
| airflow_version = "3.0.0" | ||
|
|
||
|
|
||
| def upgrade(): | ||
| with op.batch_alter_table("dag_run_note") as batch_op: | ||
| batch_op.alter_column("user_id", type_=sa.String(length=128)) | ||
| with op.batch_alter_table("task_instance_note") as batch_op: | ||
| batch_op.alter_column("user_id", type_=sa.String(length=128)) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| with op.batch_alter_table("dag_run_note") as batch_op: | ||
| batch_op.alter_column("user_id", type_=sa.Integer(), postgresql_using="user_id::integer") | ||
| with op.batch_alter_table("task_instance_note") as batch_op: | ||
| batch_op.alter_column("user_id", type_=sa.Integer(), postgresql_using="user_id::integer") | ||
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| c33e9a583a5b29eb748ebd50e117643e11bcb2a9b61ec017efd690621e22769b | ||
| 64dfad12dfd49f033c4723c2f3bb3bac58dd956136fb24a87a2e5a6ae176ec1a |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.