Skip to content

Releases: saltstack/pytest-salt-factories

1.0.0rc24

27 Jul 15:41
Compare
Choose a tag to compare
1.0.0rc24 Pre-release
Pre-release

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

15 Dec 15:48
Compare
Choose a tag to compare
1.0.0rc23 Pre-release
Pre-release

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

02 Dec 19:44
Compare
Choose a tag to compare
1.0.0rc22 Pre-release
Pre-release

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 for StateResult.comment

Trivial/Internal Changes

  • Update the github actions versions to avoid deprecation errors (#145)

1.0.0rc21

04 Nov 14:26
Compare
Choose a tag to compare
1.0.0rc21 Pre-release
Pre-release

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

25 Aug 15:39
Compare
Choose a tag to compare
1.0.0rc20 Pre-release
Pre-release

1.0.0rc20 (2022-08-25)

Bug Fixes

  • The spm CLI now properly lays down the configuration files required (#137)

1.0.0rc19

22 Aug 13:45
Compare
Choose a tag to compare
1.0.0rc19 Pre-release
Pre-release

1.0.0rc19 (2022-08-22)

Breaking Changes

  • In saltfactories.utils.cli_scipts.generate_script():

    • For coverage tracking, both coverate_db_path and coverage_rc_path must be passed. They will not be infered by root_dir.
    • inject_coverage was removed. #135
  • 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

14 Jul 14:04
Compare
Choose a tag to compare
1.0.0rc18 Pre-release
Pre-release

1.0.0rc18 (2022-07-14)

Breaking Changes

  • Renamed the system_install configuration flag, markers and behaviours when set to system_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 set python_executable to None
  • Added CLI support(--system-service) to change salt-factories to use Salt previously installed from the platform's package manager. (#131)
  • Inject engines_dirs and log_handlers_dirs when system_service=True or scripts_path is not None (#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

17 Jun 18:52
Compare
Choose a tag to compare
1.0.0rc17 Pre-release
Pre-release

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 our Loaders 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

28 May 18:06
Compare
Choose a tag to compare
1.0.0rc16 Pre-release
Pre-release

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 by pytest-salt-factories.

1.0.0rc15

09 May 20:01
Compare
Choose a tag to compare
1.0.0rc15 Pre-release
Pre-release

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 either timeout is defined on the configuration or when timeout 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.