mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #44443 from Ch3LL/ssh_grains
Add salt-ssh grains.items test
This commit is contained in:
commit
ff4f13877f
1 changed files with 25 additions and 0 deletions
25
tests/integration/ssh/test_grains.py
Normal file
25
tests/integration/ssh/test_grains.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Import Python libs
|
||||
from __future__ import absolute_import
|
||||
|
||||
# Import Salt Testing Libs
|
||||
from tests.support.case import SSHCase
|
||||
from tests.support.unit import skipIf
|
||||
|
||||
# Import Salt Libs
|
||||
import salt.utils
|
||||
|
||||
|
||||
@skipIf(salt.utils.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))
|
Loading…
Add table
Reference in a new issue