Replies: 1 comment 1 reply
-
You can use additional side_effect with a custom playbook:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea
Add an optional
prepare_verify
command to perform some actions before all tests (i.e. just beforeverify
command) and afterconverge
/idempotence
/side_effect
commands.Current drawback
Molecule version: molecule 4.0.1
There is a
prepare
command but it is run beforeconverge
command:$ molecule matrix test INFO Test matrix --- default: - dependency - lint - cleanup - destroy - syntax - create - prepare - converge - idempotence - side_effect - verify - cleanup - destroy
Thus, if you install dependencies that are only needed for your tests during
prepare
command, you may alter the behavior of your tested role duringconverge
/idempotence
/side_effect
commands.I did not find a command that is aimed to prepare test environment:
I'm using testinfra framework for
verify
phase (not Ansible).Beta Was this translation helpful? Give feedback.
All reactions