kra-oa/internal/data/system_init_ignore_test.go

13 lines
279 B
Go

package data
import "testing"
func TestDefaultIgnoredAPIsIncludeSwagger(t *testing.T) {
for _, api := range defaultIgnoredAPIs() {
if api.Method == "GET" && api.Path == "/swagger/*any" {
return
}
}
t.Fatal("default ignored APIs do not include the Swagger handler")
}