Fix OrRule logic on parameter lookup failures

Fixes #471
This commit is contained in:
Cameron Moore 2020-10-24 11:40:27 -05:00
parent 67c317e741
commit dc184d2737
5 changed files with 137 additions and 3 deletions

View file

@ -606,6 +606,32 @@ binary data
``,
},
{
"issue-471",
"issue-471",
nil,
"POST",
nil,
"application/json",
`{"exists": 1}`,
http.StatusOK,
`success`,
``,
},
{
"issue-471-and",
"issue-471-and",
nil,
"POST",
nil,
"application/json",
`{"exists": 1}`,
http.StatusOK,
`Hook rules were not satisfied.`,
`parameter node not found`,
},
{
"missing-cmd-arg", // missing head_commit.author.email
"github",