fix event validation test case
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
60cc07bc81
commit
25450d9efc
1 changed files with 1 additions and 1 deletions
|
@ -2209,7 +2209,7 @@ func TestEventActionValidation(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
assert.Contains(t, string(resp), "cannot save HTTP configuration with a redacted secret")
|
||||
action.Options.HTTPConfig.Password = nil
|
||||
action.Options.HTTPConfig.Method = http.MethodDelete
|
||||
action.Options.HTTPConfig.Method = http.MethodTrace
|
||||
_, resp, err = httpdtest.AddEventAction(action, http.StatusBadRequest)
|
||||
assert.NoError(t, err)
|
||||
assert.Contains(t, string(resp), "unsupported HTTP method")
|
||||
|
|
Loading…
Reference in a new issue