salt/tests/integration/runners/salt.py

33 lines
648 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
'''
Tests for the salt runner
.. versionadded:: Carbon
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
# Import salt libs
import integration
class SaltRunnerTest(integration.ShellCase):
'''
Test the salt runner
'''
def test_salt_cmd(self):
'''
salt.cmd
'''
2016-07-29 10:38:34 +00:00
ret = self.run_run_plus('salt.cmd', '', 'test.ping')
self.assertTrue(ret.get('out')[0])
if __name__ == '__main__':
from integration import run_tests
run_tests(SaltRunnerTest)