1
0

test_raw.py 708 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. # Import Python libs
  3. from __future__ import absolute_import, print_function, unicode_literals
  4. # Import Salt Libs
  5. import salt.utils.platform
  6. # Import Salt Testing Libs
  7. from tests.support.case import SSHCase
  8. from tests.support.unit import skipIf
  9. @skipIf(salt.utils.platform.is_windows(), "salt-ssh not available on Windows")
  10. class SSHRawTest(SSHCase):
  11. """
  12. testing salt-ssh with raw calls
  13. """
  14. @skipIf(True, "SLOWTEST skip")
  15. def test_ssh_raw(self):
  16. """
  17. test salt-ssh with -r argument
  18. """
  19. msg = "running raw msg"
  20. ret = self.run_function("echo {0}".format(msg), raw=True)
  21. self.assertEqual(ret["stdout"], msg + "\n")