2014-06-25 16:10:12 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
'''
|
|
|
|
tests.integration.shell.master_tops
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
'''
|
|
|
|
|
2014-11-21 19:05:13 +00:00
|
|
|
# Import Python libs
|
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2014-06-25 16:10:12 +00:00
|
|
|
# Import Salt Testing libs
|
2017-04-03 16:04:09 +00:00
|
|
|
from tests.support.case import ShellCase
|
2014-06-25 16:10:12 +00:00
|
|
|
|
|
|
|
|
2017-04-03 16:04:09 +00:00
|
|
|
class MasterTopsTest(ShellCase):
|
2014-06-25 16:10:12 +00:00
|
|
|
|
|
|
|
_call_binary_ = 'salt'
|
|
|
|
|
|
|
|
def test_custom_tops_gets_utilized(self):
|
|
|
|
resp = self.run_call(
|
|
|
|
'state.show_top'
|
|
|
|
)
|
|
|
|
self.assertTrue(
|
|
|
|
any('master_tops_test' in _x for _x in resp)
|
|
|
|
)
|