Releases: saltstack/pytest-salt-factories
Releases · saltstack/pytest-salt-factories
1.0.0rc25
1.0.0rc25 (2023-07-31)
Improvements
- Remove
pytest-tempdirpackage dependency (#154) - Stop using deprecated
@pytest.mark.trylast(#155) - Simplify and reduce the amount of patching required to unit test loader modules (#156)
Trivial/Internal Changes
- Some internal processes improvements: (#151)
- Publish packages to PyPi with trusted publishers
- Enable dependabot to update the GH Actions versions on a weekly basis
- Start using actionlint and shellcheck to validate GH Actions workflows (#153)
- Improve code coverage by either removing code not getting used anymore or marking sections of the code which are not expected to be covered (#157)
1.0.0rc24
1.0.0rc24 (2023-07-27)
Improvements
- Several improvements to reduce failure points: #149
- Log the exception instead of raising it.
- Always populate the
*_dirsconfig settings, regardless of how salt-factories is being used - Improved the connect/disconnect behavior of the event listener client
- The minimum supported Salt version is now 3005.0
- The minimum supported Pytest version is now 7.0.0
Bug Fixes
- Do not blindly overwrite the
retuner_addressconfiguration key #146
Trivial/Internal Changes
- Start checking the code base with ruff #149
1.0.0rc23
1.0.0rc23 (2022-12-15)
Bug Fixes
- Fixed Salt's deferred imports to allow onedir builds while not breaking non-onedir builds: (#146)
- Additionally, stopped relying on salt.utils.files and salt.utils.yaml
- Stopped using zmq to forward events(this was where the breakage was showing) for a plain TCP implementation.
- The event_listener fixture is now started/stopped like a regular pytest fixture
- The event_listener server now restarts in case something goes wrong to the point where it crashes.
1.0.0rc22
1.0.0rc22 (2022-12-02)
Breaking Changes
- Drop support for Python 3.5 and 3.6 (#123)
Improvements
- Defer all
saltimports so that we can use pytest-salt-factories to test onedir builds (#144) - A few improvements to functional testing support: (#145)
- Allow
StateReturnto be accessed by key instead of just attribute - Add warning for when more than a state function is used under the same state key
- Return an instance of
MatchStringforStateResult.comment
- Allow
Trivial/Internal Changes
- Update the github actions versions to avoid deprecation errors (#145)
1.0.0rc21
1.0.0rc21 (2022-11-04)
Improvements
- Several improvements to the state module wrappers: (#140)
- Allow getting the state chunk by id on MultiStateResult
- Wrap a few more functions from salt.modules.state
Trivial/Internal Changes
- Pipeline and requirements fixes: (#140)
- Test against 3005.* and not 3005rc2 since it's now released.
- Install importlib-metadata<5.0.0 since only Salt>=3006 will be able to handle it.
1.0.0rc20
1.0.0rc19
1.0.0rc19 (2022-08-22)
Breaking Changes
-
In
saltfactories.utils.cli_scipts.generate_script():- For coverage tracking, both
coverate_db_pathandcoverage_rc_pathmust be passed. They will not be infered byroot_dir. inject_coveragewas removed. #135
- For coverage tracking, both
-
The minimum Salt version in now
3004#136
Trivial/Internal Changes
-
CI and internal changes: #136
- Start testing Salt 3005.x (rc2 for now)
- Skip testing 3005rc2 on windows and macOS for now.
- Lock system tests to a version of nox that still works
- Bump python version to 3.9 for lint workflow
- Bumped pylint requirement to
2.14.5and cleaned up issues - Don't build the salt minion container during test runs, pull an existing container.
1.0.0rc18
1.0.0rc18 (2022-07-14)
Breaking Changes
- Renamed the
system_installconfiguration flag, markers and behaviours when set tosystem_serviceto better reflect what it's actually used for. (#96)
Features
- Allow passing
--python-executableto teak which python get's used to prefix CLI commands, when needed. (#129) - Allow passing
--scripts-dirto tell salt-factories where to look for the Salt daemon and CLI scripts. (#130)
The several scripts to the Salt daemons and CLI's must exist. Also, passing this option will additionally make
salt-factories NOT generate said scripts and setpython_executabletoNone - Added CLI support(
--system-service) to change salt-factories to use Salt previously installed from the platform's package manager. (#131) - Inject
engines_dirsandlog_handlers_dirswhensystem_service=Trueorscripts_pathis notNone(#133)
These flags suggest that the salt being imported and used by salt-factories might not be the same as the one being tested.
So, in this case, make sure events and logging from started daemons still get forwarded to salt-factories.
1.0.0rc17
1.0.0rc17 (2022-06-17)
Bug Fixes
- Bump deprecations targeted for 2.0.0 to 3.0.0 (#122)
- Try to pass
loaded_base_nameto each of Salt's loaders used in ourLoadersclass, if not supported, patch it at runtime. (#126) saltfactories.utils.warn_until()is now aware of Pytest's rewrite calls and properly reports the offending code. (#127)
1.0.0rc16
1.0.0rc16 (2022-05-28)
Improvements
- Switch to internal start check
callables. (#120)
-
Additionally, significant container improvements, like:
- Get host ports to check from the container port bindings.
- Always terminate the containers.
- Support randomly assigned host port bindings
-
skip_on_salt_system_installis now also a marker provided bypytest-salt-factories.