teemtee / tmt

Test Management Tool
MIT License
81 stars 122 forks source link

Support executing ansible playbooks as tests #490

Open psss opened 3 years ago

psss commented 3 years ago

It would be nice to support running an ansible playbook as a test. Here's a real-life example of a reboot test from the selinux repository. The best approach would be probably to add a new framework type ansible which would allow executing the playbook and check for its exit status.

Example test metadata could look like this:

test: path/to/the/playbook.yaml
framework: ansible
psss commented 3 years ago

Or shall this be covered by an sti executor #229 instead?

thrix commented 3 years ago

I would rather see it as separate efforts.

psss commented 10 months ago

What would be the difference between just running a shell script test?

Would this be a safe for the test runner?

What about ansible galaxy dependencies?

What about using the multihost provision instead?

Using multiple guests seems to be the best approach, we need to clarify though what the exact scope of this should be, what exact should be the responsiblity of tmt and what should be left on the test.