Add an additional assert

This commit is contained in:
Erik Johnson 2018-12-06 08:39:33 -06:00
parent 0edd58cffb
commit fa7dd07077
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -856,9 +856,11 @@ class PkgTest(ModuleCase, SaltReturnAssertsMixin):
self.assertFalse(realver)
try:
# install the package already
# install the package
ret = self.run_state('pkg.installed', name=realpkg, refresh=False)
self.assertSaltTrueReturn(ret)
# Try to install again. Nothing should be installed this time.
ret = self.run_state('pkg.installed', name=target, refresh=False, resolve_capabilities=True, test=True)
self.assertInSaltComment("All specified packages are already installed", ret)