MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / TestEncodedUrlsStayEncoded

Function TestEncodedUrlsStayEncoded

oauthproxy_test.go:1123–1130  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1121}
1122
1123func TestEncodedUrlsStayEncoded(t *testing.T) {
1124 encodeTest, err := NewSignInPageTest(false)
1125 if err != nil {
1126 t.Fatal(err)
1127 }
1128 code, _ := encodeTest.GetEndpoint("/%2F/test1/%2F/test2")
1129 assert.Equal(t, 403, code)
1130}
1131
1132func NewAuthOnlyEndpointTest(querystring string, modifiers ...OptionsModifier) (*ProcessCookieTest, error) {
1133 pcTest, err := NewProcessCookieTestWithOptionsModifiers(modifiers...)

Callers

nothing calls this directly

Calls 2

GetEndpointMethod · 0.95
NewSignInPageTestFunction · 0.85

Tested by

no test coverage detected