test_executor.py 659 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. # Import python libs
  3. from __future__ import absolute_import, print_function, unicode_literals
  4. import logging
  5. import pytest
  6. # Import Salt Testing libs
  7. from tests.support.case import ModuleCase, ShellCase
  8. log = logging.getLogger(__name__)
  9. class ExecutorTest(ModuleCase, ShellCase):
  10. def setup(self):
  11. self.run_function("saltutil.sync_all")
  12. @pytest.mark.slow_test(seconds=10) # Test takes >5 and <=10 seconds
  13. def test_executor(self):
  14. """
  15. test that dunders are set
  16. """
  17. data = self.run_call("test.arg --module-executors=arg")
  18. self.assertIn("test.arg fired", "".join(data))