fix event validation test case

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2023-08-09 19:00:59 +02:00
parent 60cc07bc81
commit 25450d9efc
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -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")