Crunch-job needs to call the python executable from our sdk package for
[arvados.git] / lib / dispatchcloud / dispatcher_test.go
index d7e841e7329d021e81c1fe7bcb1f6085a46dbdd2..00157b75c649226880898c802973e9cd03a82173 100644 (file)
@@ -83,14 +83,17 @@ func (s *DispatcherSuite) SetUpTest(c *check.C) {
                        },
                },
                Services: arvados.Services{
-                       DispatchCloud: arvados.Service{InternalURLs: map[arvados.URL]arvados.ServiceInstance{
-                               arvados.URL{Scheme: "https", Host: os.Getenv("ARVADOS_API_HOST")}: {},
-                       }},
+                       Controller: arvados.Service{ExternalURL: arvados.URL{Scheme: "https", Host: os.Getenv("ARVADOS_API_HOST")}},
                },
        }
+
+       arvClient, err := arvados.NewClientFromConfig(s.cluster)
+       c.Check(err, check.IsNil)
+
        s.disp = &dispatcher{
                Cluster:   s.cluster,
                Context:   s.ctx,
+               ArvClient: arvClient,
                AuthToken: arvadostest.AdminToken,
        }
        // Test cases can modify s.cluster before calling