mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #36299 from rallytime/gate-pkg-group-installed-test
Gate the pkg.group_installed state test: not all pkg modules have group_install
This commit is contained in:
commit
6a3019bbf1
@ -596,6 +596,7 @@ class PkgTest(integration.ModuleCase,
|
||||
'Package {0} is already up-to-date'.format(target)
|
||||
)
|
||||
|
||||
@requires_salt_modules('pkg.group_install')
|
||||
@requires_system_grains
|
||||
def test_group_installed_handle_missing_package_group(self, grains=None): # pylint: disable=unused-argument
|
||||
'''
|
||||
@ -612,7 +613,7 @@ class PkgTest(integration.ModuleCase,
|
||||
|
||||
# Run the pkg.group_installed state with a fake package group
|
||||
ret = self.run_state('pkg.group_installed', name='handle_missing_pkg_group',
|
||||
skip='foo-bar-baz')
|
||||
skip=['foo-bar-baz'])
|
||||
ret_comment = ret['pkg_|-handle_missing_pkg_group_|-handle_missing_pkg_group_|-group_installed']['comment']
|
||||
|
||||
# Not all package managers support group_installed. Skip this test if not supported.
|
||||
|
Loading…
Reference in New Issue
Block a user