This change adds the ability add ansible arguments to any
molecule test.
Change-Id: I7159e89d7037b2c669208014d4f814de2eb6f1ad
Signed-off-by: Kevin Carter <kecarter@redhat.com>
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>