mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-08 07:31:29 +02:00
ci: make the linter happy again
Signed-off-by: Jan Larwig <jan.larwig@digits.schwarz>
This commit is contained in:
+4
-3
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user