Skip to content

Commit

Permalink
fix event validation test case
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <[email protected]>
  • Loading branch information
drakkan committed Aug 9, 2023
1 parent 60cc07b commit 25450d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/httpd/httpd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 25450d9

Please sign in to comment.