mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Point salt-call to correct multi-master configs
This commit is contained in:
parent
2c281e0bea
commit
e207de6408
2 changed files with 12 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
# Import Salt Testing libs
|
||||
from tests.support.case import MultimasterModuleCase, ShellTestCase
|
||||
from tests.support.case import MultimasterModuleCase, MultiMasterTestShellCase
|
||||
from tests.support.helpers import skip_if_not_root, destructiveTest
|
||||
from tests.support.mixins import AdaptedConfigurationTestCaseMixin
|
||||
from tests.support.unit import skipIf
|
||||
|
@ -18,7 +18,7 @@ if isinstance(HAS_IPTABLES, tuple):
|
|||
@destructiveTest
|
||||
@skip_if_not_root
|
||||
@skipIf(not HAS_IPTABLES, 'iptables command is not available')
|
||||
class TestHandleEvents(MultimasterModuleCase, ShellTestCase, AdaptedConfigurationTestCaseMixin):
|
||||
class TestHandleEvents(MultimasterModuleCase, MultiMasterTestShellCase, AdaptedConfigurationTestCaseMixin):
|
||||
'''
|
||||
Validate the events handling in multimaster environment
|
||||
'''
|
||||
|
|
|
@ -484,6 +484,16 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
|||
pass
|
||||
|
||||
|
||||
class MultiMasterTestShellCase(ShellTestCase):
|
||||
'''
|
||||
Execute a test for a shell command when running multi-master tests
|
||||
'''
|
||||
|
||||
@property
|
||||
def config_dir(self):
|
||||
return RUNTIME_VARS.TMP_MM_CONF_DIR
|
||||
|
||||
|
||||
class ShellCase(ShellTestCase, AdaptedConfigurationTestCaseMixin, ScriptPathMixin):
|
||||
'''
|
||||
Execute a test for a shell command
|
||||
|
|
Loading…
Add table
Reference in a new issue