12d9d8dd61
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>
186 B
186 B
test_package_action
This role tests the package action plugin shim used within tripleo.
The role tests will run through a default, negative, and positive scenario.