1234567891011121314151617181920212223 |
- # -*- coding: utf-8 -*-
- from __future__ import absolute_import, print_function, unicode_literals
- import salt.utils.platform
- from tests.support.case import SSHCase
- from tests.support.helpers import slowTest
- from tests.support.unit import skipIf
- @skipIf(salt.utils.platform.is_windows(), "salt-ssh not available on Windows")
- class SSHRawTest(SSHCase):
- """
- testing salt-ssh with raw calls
- """
- @slowTest
- def test_ssh_raw(self):
- """
- test salt-ssh with -r argument
- """
- msg = "running raw msg"
- ret = self.run_function("echo {0}".format(msg), raw=True)
- self.assertEqual(ret["stdout"], msg + "\n")
|