-
- cfg, err := config.NewLoader(nil, nil).Load()
- c.Assert(err, check.Equals, nil)
- s.cluster, err = cfg.GetCluster("")
- c.Assert(err, check.Equals, nil)
-
- if s.cluster == nil {
- s.cluster.Services.GitHTTP.InternalURLs = map[arvados.URL]arvados.ServiceInstance{arvados.URL{Host: "localhost:0"}: arvados.ServiceInstance{}}
- s.cluster.TLS.Insecure = true
- s.cluster.Git.GitCommand = "/usr/bin/git"
- s.cluster.Git.Repositories = s.tmpRepoRoot
- }
-
- println(s.cluster.Services.Controller.InternalURLs)
- println(arvadostest.APIHost())
- println(s.cluster.ManagementToken)
- println(arvadostest.ManagementToken)
-
- s.testServer = &server{cluster: s.cluster}
- err = s.testServer.Start()
- c.Assert(err, check.Equals, nil)