tripleo-ansible/tests
Kevin Carter 12d9d8dd61
Import action plugin from tripleo-common
The package action plugin has been imported from tripleo common.
This plugin acts as a shim allowing tripleo to control package
installations within ansible using a global variable.

The action plugin will now have tests to ensure that it is
functioning as expected within ansible.

* The default scenario will run the test role normally ensuring
  that the plugin does not interfer with normal operations.
* The negative scenario will run the test role with the global
  option `tripleo_enable_package_install` set to false. This will
  ensure that no package is installed.
* The positive scenario will run the test role with the global
  option `tripleo_enable_package_install` set to true, which
  will ensure the expect package is installed.

All three scenarios have been added as jobs which run when
this role or plugin has been changed.

Because this job will run three different molecule scenarios
a change has been made to the pytest setup which will allow
us to pass in command line arguments to the job function.
This update will allow us to now set the command line option
`--scenario` when running tests. This new argument has been
documented in the `contributing.rst` file.

Change-Id: I096d6332f8231620e39ead557e7c9598adad66dd
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-06-17 11:00:54 -05:00
..
conftest.py Import action plugin from tripleo-common 2019-06-17 11:00:54 -05:00
hosts.ini Add test_deps role and basic molecule job 2019-06-11 19:20:50 -05:00
test_molecule.py Import action plugin from tripleo-common 2019-06-17 11:00:54 -05:00