13493: Fix proxy-redirect implementation.
[arvados.git] / lib / controller / handler_test.go
index 2f9280e11bc1a99f6822b3ef2c8a37d8133974b4..963fd1159415e16d93e676401021e974c287ad69 100644 (file)
@@ -124,9 +124,9 @@ func (s *HandlerSuite) TestProxyNotFound(c *check.C) {
 }
 
 func (s *HandlerSuite) TestProxyRedirect(c *check.C) {
-       req := httptest.NewRequest("GET", "https://example.org:1234/login?return_to=foo", nil)
+       req := httptest.NewRequest("GET", "https://0.0.0.0:1/login?return_to=foo", nil)
        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://example\.org:1234/auth/joshid\?return_to=foo&?`)
+       c.Check(resp.Header().Get("Location"), check.Matches, `https://0.0.0.0:1/auth/joshid\?return_to=foo&?`)
 }