Changes in this release:
- Add fixture to change the Inmanta state dir to a writable location for the current user.
- Add a new '--no-strict-deps-check' option to run pytest-inmanta using the legacy check on requirements. By default the new strict check of core will be used.
Changes in this release:
- Fix enum test parameters registered after pytest has loaded pytest-inmanta plugin.
Changes in this release:
- Allow other plugins to register test parameters after pytest has loaded pytest-inmanta plugin.
Changes in this release:
- Fixed test parameter framework for boolean options.
Changes in this release:
- Added test parameter framework (#288).
- Some options have been deprecated:
--no_load_plugins
in favor of--no-load-plugins
(andINMANTA_TEST_NO_LOAD_PLUGINS
in favor ofINMANTA_NO_LOAD_PLUGINS
)--module_repo
in favor of--module-repo
--install_mode
in favor of--install-mode
Changes in this release:
- The
project
fixture now makessys.executable
point to the compiler's executable
Changes in this release:
- Fix bug where the
project
fixture doesn't reset the current working directory in the cleanup stage. - Add deploy_all method to the
project
fixture
Changes in this release:
- Added support for testing v2 modules.
- Extended to be compatible with
inmanta-core>=6
- Added support for custom
inmanta_reset_state
method to clean up stateful modules between compiles - Ensure that projects are compiled using a separate venv.
- Fixed typing issue for
filter_args
in different method of the Project class.
- pytest-inmanta now keeps
inmanta_plugins
submodules alive across compiles. As a result, stateful modules must implement custom state cleanup logic as described in the README.
Changes in this release:
- Fixed issue with project fixture related to cleanup assumptions causing failures for
inmanta-core>=5.1.2.dev
Changes in this release:
- Fixed an invalid import from inmanta-core (inmanta/inmanta-core#3074)
Changes in this release:
- Added the ability to assert the expected 'change' of a deploy
- Compiled models are logged (debug level), with line numbers (#199)
- Export mypy types
Changes in this release:
- Remove dependency on the inmanta package
Changes in this release:
- Added meaningful error message when --venv points to a non-existing directory (#62)
- Ensure that cache is closed completely (#57)
- Fix incompatibility with pytest 6.0.0
- Fixed plugin loading compatibility with compiler's import mechanism (#46, #49)
- Added
inmanta_plugins
fixture to make abstraction of required module reloading when the compiler project is reset (related to #49) - Added deprecation warning for
project_no_plugins
fixture in favor ofINMANTA_TEST_NO_LOAD_PLUGINS
environment variable (#66) - Added resource unittest::IgnoreResource.
- Improve documentation of options (#67)
Changes in this release:
- Added INMANTA_TEST_NO_LOAD_PLUGINS environment variable as workaround for #49
Changes in this release:
- Fixed status field on dryrun_resource (#53)
- Fixed error when running tests for module that imports other modules from its plugins
- Added project_no_plugins fixture as workaround for plugins being loaded multiple times (#49)
Changes in this release:
- Added --use-module-in-place option (#30)
- Added support to test regular functions and classes (#37)
- Close handler caches on cleanup (#42)
Changes in this release:
- Added support to get logs from handler (#35)
- Added support to specify multiple --repo-path options (#38)
- Added --install_mode option
Changes in this release:
Changes in this release:
- Added support to retrieve scopes in project fixture.
- Test the serialization/deserialization of resources.
- Ensure that the project fixture doesn't leak any data across test cases.
Changes in this release:
- Add suport for skip and fail through data global
Changes in this release:
- Prevent IOError when using remote IO
Changes in this release:
- Fix packaging bug
Changes in this release:
- Various bugfixes
- Use yaml.safe_load() instead of yaml.load()
- Documentation on how to test plugins
- Add unittest handlers
Changes in this release:
- added log serialization to deploy, to better mimic agent behavior
- added dryrun