ci: make the linter happy again

Signed-off-by: Jan Larwig <jan.larwig@digits.schwarz>
This commit is contained in:
Jan Larwig
2026-10-01 10:57:35 +02:00
parent 58628297ae
commit bea54b4cae
+4 -3
View File
@@ -3218,11 +3218,12 @@ func TestSkipAuthPathRouting(t *testing.T) {
for _, config := range configs {
t.Run(config, func(t *testing.T) {
opts.SkipAuthRegex, opts.SkipAuthRoutes = nil, nil
if config == "regex" {
switch config {
case "regex":
opts.SkipAuthRegex = []string{pattern}
} else if config == "negated route" {
case "negated route":
opts.SkipAuthRoutes = []string{"POST!=^/protected"}
} else {
default:
opts.SkipAuthRoutes = []string{"POST=" + pattern}
}
testProxy, err := NewOAuthProxy(opts, func(string) bool { return true })