Make tests happy

This commit is contained in:
Mircea Ulinic 2017-11-30 15:50:11 +00:00
parent 3ebdb54542
commit dce017b3f7
No known key found for this signature in database
GPG Key ID: 4286FAD4BACBB073

View File

@ -93,7 +93,8 @@ class SaltUtilSyncModuleTest(ModuleCase):
'states': [], 'states': [],
'sdb': [], 'sdb': [],
'proxymodules': [], 'proxymodules': [],
'output': []} 'output': [],
'thorium': []}
ret = self.run_function('saltutil.sync_all') ret = self.run_function('saltutil.sync_all')
self.assertEqual(ret, expected_return) self.assertEqual(ret, expected_return)
@ -113,7 +114,8 @@ class SaltUtilSyncModuleTest(ModuleCase):
'states': [], 'states': [],
'sdb': [], 'sdb': [],
'proxymodules': [], 'proxymodules': [],
'output': []} 'output': [],
'thorium': []}
ret = self.run_function('saltutil.sync_all', extmod_whitelist={'modules': ['salttest']}) ret = self.run_function('saltutil.sync_all', extmod_whitelist={'modules': ['salttest']})
self.assertEqual(ret, expected_return) self.assertEqual(ret, expected_return)
@ -135,7 +137,8 @@ class SaltUtilSyncModuleTest(ModuleCase):
'states': [], 'states': [],
'sdb': [], 'sdb': [],
'proxymodules': [], 'proxymodules': [],
'output': []} 'output': [],
'thorium': []}
ret = self.run_function('saltutil.sync_all', extmod_blacklist={'modules': ['runtests_decorators']}) ret = self.run_function('saltutil.sync_all', extmod_blacklist={'modules': ['runtests_decorators']})
self.assertEqual(ret, expected_return) self.assertEqual(ret, expected_return)
@ -155,7 +158,8 @@ class SaltUtilSyncModuleTest(ModuleCase):
'states': [], 'states': [],
'sdb': [], 'sdb': [],
'proxymodules': [], 'proxymodules': [],
'output': []} 'output': [],
'thorium': []}
ret = self.run_function('saltutil.sync_all', extmod_whitelist={'modules': ['runtests_decorators']}, ret = self.run_function('saltutil.sync_all', extmod_whitelist={'modules': ['runtests_decorators']},
extmod_blacklist={'modules': ['runtests_decorators']}) extmod_blacklist={'modules': ['runtests_decorators']})
self.assertEqual(ret, expected_return) self.assertEqual(ret, expected_return)