chore: add route config check

This commit is contained in:
Jonas Kaninda
2024-11-18 12:58:49 +01:00
parent bc60fc78e0
commit b545027969
6 changed files with 131 additions and 76 deletions

View File

@@ -49,6 +49,10 @@ func TestStart(t *testing.T) {
if err != nil {
t.Fatalf("Error creating extra routes file: %s", err.Error())
}
err = CheckConfig(configFile)
if err != nil {
t.Fatalf("Error checking config: %s", err.Error())
}
ctx := context.Background()
g := GatewayServer{}
gatewayServer, err := g.Config(configFile, ctx)