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

Fix test suite and move to pytest-salt-factories #227

Merged
merged 18 commits into from
May 1, 2023

Conversation

barneysowood
Copy link
Collaborator

Fixes issues with test suite:

  • Move to modern pytest version
  • Migrate fixtures away to using pytest-salt to pytest-salt-factories
  • Simplify combinations of Python/Salt that are being tested
  • Various other minor issues

Includes changes in #226 that haven't yet been merged, maybe be worth just closing that and merging this instead.

Adds Github Actions workflow to call tox and run tests.
Doesn't currently implement coverage functionality - will add that
later.
Adds an exclusion for master and python 3.5/3.6 as 3006 onwards requires
py 3.7.
Updates pytest-salt url to point to
https://github.com/vmware-archive/pytest-salt. Should re-work tests
to use pytest-salt-factories.
Updates requirements to match current salt requirements for zeromq
and tornado.
Drops testing of python 3.5 and 3.6 - moving to pytest-salt-factories
will remove support for those in it's 1.x releases.
Updates testing requirements.txt:
  * Use modern version of pytest
  * Use pytest-salt-factories rather than pytest-salt
Updates tox.ini to use new pytest options for output.
Updates test fixture to use pytest-salt-factories rather than the now
archived pytest-salt.
Updates client integration tests to work with pytest-salt-factories.
Also update xfails to handle newer pytest.
Uses importlib-metadata<5.0.0 for python3.7 on 3004.2 and 3005.1 to
work around a bug in salt.utils.entrypoints when using
pytest-salt-factories.
@barneysowood
Copy link
Collaborator Author

@nicholasmhughes - any chance you could take a look at this?

@s0undt3ch - if you have a second to look over this to see if I've done anything foolish with pytest-salt-factories, that would be much appreciated!

@barneysowood
Copy link
Collaborator Author

@garethgreenaway - could you turn off the requirement for Travis CI on this repo? I don't have sufficient perms for for that and we can merge currently.

@barneysowood barneysowood merged commit 578f1ba into saltstack:develop May 1, 2023
@barneysowood barneysowood deleted the fix-test-suite branch May 1, 2023 16:47
@s0undt3ch
Copy link

Sorry it took me this long.
Glad it god reviewed and merged.

🎆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants