mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
36 lines
708 B
Python
36 lines
708 B
Python
# -*- coding: utf-8 -*-
|
|
'''
|
|
tests.integration.shell.master_tops
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
'''
|
|
|
|
# Import python libs
|
|
import os
|
|
import yaml
|
|
import signal
|
|
import shutil
|
|
|
|
# Import Salt Testing libs
|
|
from salttesting.helpers import ensure_in_syspath
|
|
ensure_in_syspath('../../')
|
|
|
|
# Import salt libs
|
|
import integration
|
|
|
|
|
|
class MasterTopsTest(integration.ShellCase):
|
|
|
|
_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)
|
|
)
|
|
|
|
if __name__ == '__main__':
|
|
from integration import run_tests
|
|
run_tests(MasterTopsTest)
|