X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/20cea53c48260a0cec3d588c2af520b27433b8c1..5dc622e37805f511b04eb66557441b28fba13b80:/lib/controller/localdb/login_testuser_test.go diff --git a/lib/controller/localdb/login_testuser_test.go b/lib/controller/localdb/login_testuser_test.go index d2d651e205..7a520428b6 100644 --- a/lib/controller/localdb/login_testuser_test.go +++ b/lib/controller/localdb/login_testuser_test.go @@ -41,8 +41,8 @@ func (s *TestUserSuite) SetUpSuite(c *check.C) { } s.railsSpy = arvadostest.NewProxy(c, s.cluster.Services.RailsAPI) s.ctrl = &testLoginController{ - Cluster: s.cluster, - RailsProxy: rpc.NewConn(s.cluster.ClusterID, s.railsSpy.URL, true, rpc.PassthroughTokenProvider), + Cluster: s.cluster, + Parent: &Conn{railsProxy: rpc.NewConn(s.cluster.ClusterID, s.railsSpy.URL, true, rpc.PassthroughTokenProvider)}, } s.db = arvadostest.DB(c, s.cluster) } @@ -92,3 +92,12 @@ func (s *TestUserSuite) TestLogin(c *check.C) { } } } + +func (s *TestUserSuite) TestLoginForm(c *check.C) { + resp, err := s.ctrl.Login(s.ctx, arvados.LoginOptions{ + ReturnTo: "https://localhost:12345/example", + }) + c.Check(err, check.IsNil) + c.Check(resp.HTML.String(), check.Matches, `(?ms).*
.*`) +}