Skip to content
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

Convert www.security test suite to pytest and remove residuals #18961

Merged

Conversation

khalidmammadov
Copy link
Contributor

This PR addresses number of issues:

  • Converts www.test_security suite to pytest
  • Clears up test users, roles and permission on completion of the test

I tried to keep tests as they are and only fixed unittest specific/dependent parts and did some corrections or optimizations when I saw necessary.


^ 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 the area:webserver Webserver related Issues label Oct 13, 2021
@khalidmammadov khalidmammadov force-pushed the convert_unittest_to_pytest_test_sec branch from 4cea41f to 8ddc513 Compare October 14, 2021 08:06
@khalidmammadov
Copy link
Contributor Author

@uranusjr @potiuk Can you please review? It is based on this #18667 conversation

tests/www/views/conftest.py Outdated Show resolved Hide resolved
tests/www/test_security.py Outdated Show resolved Hide resolved
tests/www/test_security.py Show resolved Hide resolved
tests/www/test_security.py Outdated Show resolved Hide resolved
tests/test_utils/api_connexion_utils.py Outdated Show resolved Hide resolved
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Oct 19, 2021
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@apache apache deleted a comment from github-actions bot Oct 20, 2021
@khalidmammadov khalidmammadov force-pushed the convert_unittest_to_pytest_test_sec branch from a996ceb to 16191ca Compare October 21, 2021 09:00
@khalidmammadov khalidmammadov force-pushed the convert_unittest_to_pytest_test_sec branch 2 times, most recently from d41ea68 to bed5597 Compare November 10, 2021 21:39
@khalidmammadov khalidmammadov force-pushed the convert_unittest_to_pytest_test_sec branch from bed5597 to 9a0297d Compare November 11, 2021 14:40
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

LGTM. @khalidmammadov how about rebasing that one to re-check the tests?

@khalidmammadov khalidmammadov force-pushed the convert_unittest_to_pytest_test_sec branch from 41e1014 to 5324297 Compare November 18, 2021 11:12
@khalidmammadov khalidmammadov force-pushed the convert_unittest_to_pytest_test_sec branch from 5324297 to 31550c5 Compare November 30, 2021 14:15
@khalidmammadov
Copy link
Contributor Author

@potiuk re-based and all looks ok to me except failures which are not related and can be seen other PRs as well. ( Actually, I took a look at them as well but couldn't reproduce..) Anything else to do here?

@uranusjr uranusjr merged commit 33a4502 into apache:main Nov 30, 2021
dillonjohnson pushed a commit to dillonjohnson/airflow that referenced this pull request Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues full tests needed We need to run full set of tests for this PR to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants