--- /dev/null
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
+package arvados
+
+import (
+ "os"
+ "path/filepath"
+)
+
+// IntegrationTestCluster returns the cluster that has been set up by
+// the integration test framework (see /build/run-tests.sh). It panics
+// on error.
+func IntegrationTestCluster() *Cluster {
+ config, err := GetConfig(filepath.Join(os.Getenv("WORKSPACE"), "tmp", "arvados.yml"))
+ if err != nil {
+ panic(err)
+ }
+ cluster, err := config.GetCluster("")
+ if err != nil {
+ panic(err)
+ }
+ return cluster
+}
+++ /dev/null
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: Apache-2.0
-
-package arvadostest
-
-import (
- "os"
- "path/filepath"
-
- "git.curoverse.com/arvados.git/sdk/go/arvados"
- check "gopkg.in/check.v1"
-)
-
-func IntegrationTestCluster(c *check.C) *arvados.Cluster {
- config, err := arvados.GetConfig(filepath.Join(os.Getenv("WORKSPACE"), "tmp", "arvados.yml"))
- c.Assert(err, check.IsNil)
- cluster, err := config.GetCluster("")
- c.Assert(err, check.IsNil)
- return cluster
-}
s.remoteKeepproxy = httptest.NewServer(http.HandlerFunc(s.remoteKeepproxyHandler))
s.remoteAPI = httptest.NewUnstartedServer(http.HandlerFunc(s.remoteAPIHandler))
s.remoteAPI.StartTLS()
- s.cluster = arvadostest.IntegrationTestCluster(c)
+ s.cluster = arvados.IntegrationTestCluster()
s.cluster.RemoteClusters = map[string]arvados.RemoteCluster{
s.remoteClusterID: arvados.RemoteCluster{
Host: strings.Split(s.remoteAPI.URL, "//")[1],