@@ -99,13 +99,13 @@ func TestAnnotations(t *testing.T) {
99
99
{"no scheme" , "bar" , "bar" , "" , "" , "" , "" , "" , false , true },
100
100
{"invalid host" , "http://" , "http://" , "" , "" , "" , "" , "" , false , true },
101
101
{"invalid host (multiple dots)" , "http://foo..bar.com" , "http://foo..bar.com" , "" , "" , "" , "" , "" , false , true },
102
- {"valid URL" , "http://bar.foo.com/external-auth" , "http://bar.foo.com/external-auth" , "" , "" , "" , "" , "" , false , false },
103
- {"valid URL - send body" , "http://foo.com/external-auth" , "http://foo.com/external-auth" , "" , "POST" , "" , "" , "" , false , false },
104
- {"valid URL - send body" , "http://foo.com/external-auth" , "http://foo.com/external-auth" , "" , "GET" , "" , "" , "" , false , false },
105
- {"valid URL - request redirect" , "http://foo.com/external-auth" , "http://foo.com/external-auth" , "" , "GET" , "http://foo.com/redirect-me" , "" , "" , false , false },
106
- {"auth snippet" , "http://foo.com/external-auth" , "http://foo.com/external-auth" , "" , "" , "" , "proxy_set_header My-Custom-Header 42;" , "" , false , false },
107
- {"auth cache " , "http://foo.com/external-auth" , "http://foo.com/external-auth" , "" , "" , "" , "" , "$foo$bar" , false , false },
108
- {"redirect param" , "http://bar.foo.com/external-auth" , "http://bar.foo.com/external-auth" , "origUrl" , "" , "" , "" , "" , true , false },
102
+ {"valid URL" , "http://bar.foo.com/external-auth/auth?allowed_groups=snow-group,rain-group " , "http://bar.foo.com/external-auth/start?rd=https://$host$escaped_request_uri " , "" , "" , "" , "" , "" , false , false },
103
+ {"valid URL - send body" , "http://foo.com/external-auth/auth?allowed_groups=snow-group,rain-group " , "http://foo.com/external-auth/start?rd=https://$host$escaped_request_uri " , "" , "POST" , "" , "" , "" , false , false },
104
+ {"valid URL - send body" , "http://foo.com/external-auth/auth?allowed_groups=snow-group,rain-group " , "http://foo.com/external-auth/start?rd=https://$host$escaped_request_uri " , "" , "GET" , "" , "" , "" , false , false },
105
+ {"valid URL - request redirect" , "http://foo.com/external-auth/auth?allowed_groups=snow-group,rain-group " , "http://foo.com/external-auth/start?rd=https://$host$escaped_request_uri " , "" , "GET" , "http://foo.com/redirect-me" , "" , "" , false , false },
106
+ {"auth snippet" , "http://foo.com/external-auth/auth?allowed_groups=snow-group,rain-group " , "http://foo.com/external-auth/start?rd=https://$host$escaped_request_uri " , "" , "" , "" , "proxy_set_header My-Custom-Header 42;" , "" , false , false },
107
+ {"auth cache " , "http://foo.com/external-auth/auth?allowed_groups=snow-group,rain-group " , "http://foo.com/external-auth/start?rd=https://$host$escaped_request_uri " , "" , "" , "" , "" , "$foo$bar" , false , false },
108
+ {"redirect param" , "http://bar.foo.com/external-auth/auth?allowed_groups=snow-group,rain-group " , "http://bar.foo.com/external-auth/start?rd=https://$host$escaped_request_uri " , "origUrl" , "" , "" , "" , "" , true , false },
109
109
}
110
110
111
111
for _ , test := range tests {
0 commit comments