webhook/test
Hugo Rosnet c3c7b5fc1a hookHandler: Bug with multiple hooks having the same ID
It was possible to have multiple hooks with the same ID, but the return
in the for/if of the hookHandler method were stopping the loop, thus making
it impossible to continue the executions of the other hooks.

This isn't the behaviour expected because a service might be down,
because you want to run more than one hook, or don't want to stop due to
one that failed. This commit fixes it, and add tests associated.

The hooks have been copied from the github one, slightly modified and
spread in the template file.

A "dummy" hook which is never called has also been added, just in case
it could mess with some other, and a test for non existing hook has also
been added to the tests.

This PR fixes: https://github.com/adnanh/webhook/issues/76
2016-06-09 18:43:37 +02:00
..
hookecho.go Add environment arguments and improve testing 2015-11-02 15:11:23 -06:00
hooks.json.tmpl hookHandler: Bug with multiple hooks having the same ID 2016-06-09 18:43:37 +02:00