diff --git a/firewall/cmd/firewall/main_test.go b/firewall/cmd/firewall/main_test.go index e301fe9..e69c70c 100644 --- a/firewall/cmd/firewall/main_test.go +++ b/firewall/cmd/firewall/main_test.go @@ -157,6 +157,20 @@ rules: endpoint: "/login", expected: result{code: http.StatusOK, body: `{"user_id": 123}`}, }, + { + name: "empty-rule", + conf: ` +rules: + - endpoint: "/list" +`, + service: echoService, + makeRequest: func() *resty.Request { + return c.R(). + SetBody(`{"user_id": 123}`) + }, + endpoint: "/list", + expected: result{code: http.StatusOK, body: `{"user_id": 123}`}, + }, { name: "bad-user-agent", conf: `