diff --git a/pkg/plugin/implementation/router/router_test.go b/pkg/plugin/implementation/router/router_test.go index e858148..0593014 100644 --- a/pkg/plugin/implementation/router/router_test.go +++ b/pkg/plugin/implementation/router/router_test.go @@ -70,6 +70,11 @@ func TestNew(t *testing.T) { }, expectedError: "", }, + { + name: "Empty config", + config: nil, + expectedError: "config cannot be nil", + }, { name: "Empty routing config path", config: &Config{ @@ -77,6 +82,13 @@ func TestNew(t *testing.T) { }, expectedError: "routing_config path is empty", }, + { + name: "Routing config file does not exist", + config: &Config{ + RoutingConfig: "/nonexistent/path/to/rules.yaml", + }, + expectedError: "error reading config file", + }, } for _, tt := range tests {