Add darwin value for ssh grain items tests on MacOSX

This commit is contained in:
Ch3LL 2018-01-03 13:58:28 -05:00
parent eba360870a
commit 85e853a63d
No known key found for this signature in database
GPG Key ID: 132B55A7C13EFA73

View File

@ -21,5 +21,8 @@ class SSHGrainsTest(SSHCase):
test grains.items with salt-ssh test grains.items with salt-ssh
''' '''
ret = self.run_function('grains.items') ret = self.run_function('grains.items')
self.assertEqual(ret['kernel'], 'Linux') grain = 'Linux'
if salt.utils.platform.is_darwin():
grain = 'Darwin'
self.assertEqual(ret['kernel'], grain)
self.assertTrue(isinstance(ret, dict)) self.assertTrue(isinstance(ret, dict))