mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Mock fire_event() in test to check auth setting
This commit is contained in:
parent
bbd8e1a856
commit
d526c9ec2b
@ -90,6 +90,9 @@ class TestWebhookDisableAuth(BaseRestCherryPyTest):
|
||||
'''
|
||||
Auth can be disabled for requests to the webhook URL
|
||||
'''
|
||||
# Mock fire_event() since we're only testing auth here.
|
||||
self.get_event.return_value.fire_event.return_value = True
|
||||
|
||||
body = urllib.urlencode({'foo': 'Foo!'})
|
||||
request, response = self.request('/hook', method='POST', body=body,
|
||||
headers={
|
||||
|
Loading…
Reference in New Issue
Block a user