14718: Updates controller test to support josh_id's return_to new format.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 28 Jan 2019 22:03:10 +0000 (19:03 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 28 Jan 2019 22:03:10 +0000 (19:03 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

lib/controller/handler_test.go

index 746b9242f2198ee3c3000c808771047d4aa1c77c..f11228a31350b93f2da70a7b5ab46b8926a47b06 100644 (file)
@@ -128,7 +128,7 @@ func (s *HandlerSuite) TestProxyRedirect(c *check.C) {
        resp := httptest.NewRecorder()
        s.handler.ServeHTTP(resp, req)
        c.Check(resp.Code, check.Equals, http.StatusFound)
-       c.Check(resp.Header().Get("Location"), check.Matches, `https://0.0.0.0:1/auth/joshid\?return_to=foo&?`)
+       c.Check(resp.Header().Get("Location"), check.Matches, `https://0.0.0.0:1/auth/joshid\?return_to=%2Cfoo&?`)
 }
 
 func (s *HandlerSuite) TestValidateV1APIToken(c *check.C) {