mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
26 lines
656 B
Python
26 lines
656 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Import Python libs
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
# Import Salt Testing Libs
|
|
from tests.support.case import SSHCase
|
|
from tests.support.unit import skipIf
|
|
|
|
# Import Salt Libs
|
|
import salt.utils.platform
|
|
|
|
|
|
@skipIf(salt.utils.platform.is_windows(), 'salt-ssh not available on Windows')
|
|
class SSHGrainsTest(SSHCase):
|
|
'''
|
|
testing grains with salt-ssh
|
|
'''
|
|
def test_grains_items(self):
|
|
'''
|
|
test grains.items with salt-ssh
|
|
'''
|
|
ret = self.run_function('grains.items')
|
|
self.assertEqual(ret['kernel'], 'Linux')
|
|
self.assertTrue(isinstance(ret, dict))
|