mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #55028 from DSRCorporation/bugs/multimaster_salt-call_timeout
Increase salt-call timeout for multimaster test.
This commit is contained in:
commit
08a99117aa
2 changed files with 8 additions and 3 deletions
|
@ -65,7 +65,8 @@ class TestHandleEvents(MultimasterModuleCase, MultiMasterTestShellCase, AdaptedC
|
|||
# Since minion could be not responsive now use `salt-call --local` for this.
|
||||
res = self.run_call(
|
||||
"iptables.delete filter INPUT rule='{0}'".format(disconnect_master_rule),
|
||||
local=True)
|
||||
local=True,
|
||||
timeout=30)
|
||||
self.assertEqual(res, ['local:'])
|
||||
# Ensure the master is back.
|
||||
res = self.run_function(
|
||||
|
|
|
@ -233,11 +233,15 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
|||
arg_str = '--config-dir {0} {1}'.format(self.config_dir, arg_str)
|
||||
return self.run_script('salt-cp', arg_str, with_retcode=with_retcode, catch_stderr=catch_stderr)
|
||||
|
||||
def run_call(self, arg_str, with_retcode=False, catch_stderr=False, local=False):
|
||||
def run_call(self, arg_str, with_retcode=False, catch_stderr=False, local=False, timeout=15):
|
||||
arg_str = '{0} --config-dir {1} {2}'.format('--local' if local else '',
|
||||
self.config_dir, arg_str)
|
||||
|
||||
return self.run_script('salt-call', arg_str, with_retcode=with_retcode, catch_stderr=catch_stderr)
|
||||
return self.run_script('salt-call',
|
||||
arg_str,
|
||||
with_retcode=with_retcode,
|
||||
catch_stderr=catch_stderr,
|
||||
timeout=timeout)
|
||||
|
||||
def run_cloud(self, arg_str, catch_stderr=False, timeout=None):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue