Releases: saltstack/pytest-salt-factories
Releases · saltstack/pytest-salt-factories
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
*_dirs
config 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_address
configuration 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
salt
imports so that we can use pytest-salt-factories to test onedir builds (#144) - A few improvements to functional testing support: (#145)
- Allow
StateReturn
to 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
MatchString
forStateResult.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_path
andcoverage_rc_path
must be passed. They will not be infered byroot_dir
. inject_coverage
was 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.5
and 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_install
configuration flag, markers and behaviours when set tosystem_service
to better reflect what it's actually used for. (#96)
Features
- Allow passing
--python-executable
to teak which python get's used to prefix CLI commands, when needed. (#129) - Allow passing
--scripts-dir
to 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_executable
toNone
- Added CLI support(
--system-service
) to change salt-factories to use Salt previously installed from the platform's package manager. (#131) - Inject
engines_dirs
andlog_handlers_dirs
whensystem_service=True
orscripts_path
is 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_name
to each of Salt's loaders used in ourLoaders
class, 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_install
is now also a marker provided bypytest-salt-factories
.
1.0.0rc15
1.0.0rc15 (2022-05-09)
Improvements
- Now that the new logging changes are merged into Salt's master branch, adjust detection of those changes on
SaltKey
. (#118)
Bug Fixes
--timeout
is now correctly passed for CLI factories when eithertimeout
is defined on the configuration or whentimeout
is passed to the CLI factory constructor. (#117)
Trivial/Internal Changes
-
Test PyTest 7.0.x and 7.1.x & Fix tests requirements: (#116)
- Don't allow
pytest-subtests
to upgrade pytest - Test under PyTest 7.0.x and 7.1.x
- Force Jinja2 to be < 3.1 on Salt 3003.x
- Fix the requirements of the example
echo-extension
- Explicitly pass a timeout to Salt CLI's on spawning platforms.
- Windows builds were not getting passed the
PYTEST_VERSION_REQUIREMENT
env var.
- Don't allow