20735: Revive lib/install dependency test.
authorTom Clegg <tom@curii.com>
Thu, 10 Aug 2023 19:22:55 +0000 (15:22 -0400)
committerTom Clegg <tom@curii.com>
Tue, 15 Aug 2023 18:04:54 +0000 (14:04 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/install/deps_test.go

index 993e779e5b7944e1da6d68cac34b4d8f00154b33..5b3f9d350f26daf5a8735e8fc08fd7ec3e936c50 100644 (file)
@@ -13,19 +13,10 @@ package install
 
 import (
        "os"
-       "testing"
 
        "gopkg.in/check.v1"
 )
 
-func Test(t *testing.T) {
-       check.TestingT(t)
-}
-
-var _ = check.Suite(&Suite{})
-
-type Suite struct{}
-
 func (*Suite) TestInstallDeps(c *check.C) {
        tmp := c.MkDir()
        script := `
@@ -41,8 +32,8 @@ docker run -i --rm --workdir /arvados \
        -v /arvados/services/api/tmp \
        --env http_proxy \
        --env https_proxy \
-       debian:10 \
+       debian:11 \
        bash -c "/arvados-server install -type test && /arvados-server boot -type test -config doc/examples/config/zzzzz.yml -own-temporary-database -shutdown -timeout 9m"
 `
-       c.Check(runBash(script, os.Stdout, os.Stderr), check.IsNil)
+       c.Check((&installCommand{}).runBash(script, os.Stdout, os.Stderr), check.IsNil)
 }