mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add auth test for minion publish
This commit is contained in:
parent
62b709d578
commit
7221d566e5
@ -10,4 +10,4 @@ sock_dir: .salt-unix
|
||||
open_mode: True
|
||||
peer:
|
||||
'.*':
|
||||
- '.*'
|
||||
- 'test.*'
|
||||
|
@ -25,3 +25,17 @@ class PublishModuleTest(integration.ModuleCase):
|
||||
]
|
||||
)
|
||||
self.assertEqual(ret['minion']['ret'][0][-1], 34)
|
||||
|
||||
def test_reject_minion(self):
|
||||
'''
|
||||
Test bad authentication
|
||||
'''
|
||||
ret = self.run_function(
|
||||
'publish.publish',
|
||||
[
|
||||
'minion',
|
||||
'cmd.run',
|
||||
['echo foo']
|
||||
]
|
||||
)
|
||||
self.assertEqual(ret, {})
|
||||
|
Loading…
Reference in New Issue
Block a user