test_master_tops.py 595 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. '''
  3. tests.integration.shell.master_tops
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. '''
  6. # Import Python libs
  7. from __future__ import absolute_import, print_function, unicode_literals
  8. # Import Salt Testing libs
  9. from tests.support.case import ShellCase
  10. import pytest
  11. @pytest.mark.windows_whitelisted
  12. class MasterTopsTest(ShellCase):
  13. _call_binary_ = 'salt'
  14. def test_custom_tops_gets_utilized(self):
  15. resp = self.run_call(
  16. 'state.show_top'
  17. )
  18. self.assertTrue(
  19. any('master_tops_test' in _x for _x in resp)
  20. )