1
0

test_master_tops.py 547 B

123456789101112131415161718192021222324
  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. class MasterTopsTest(ShellCase):
  11. _call_binary_ = 'salt'
  12. def test_custom_tops_gets_utilized(self):
  13. resp = self.run_call(
  14. 'state.show_top'
  15. )
  16. self.assertTrue(
  17. any('master_tops_test' in _x for _x in resp)
  18. )