21585: Updates installer's Terraform code to require IMDSv2 on service nodes.
[arvados.git] / lib / install / deps_test.go
index 993e779e5b7944e1da6d68cac34b4d8f00154b33..b9274b425ca6b971653e8e2b817708b6d022c7cc 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 := `
@@ -36,13 +27,14 @@ sourcepath="$(realpath ../..)"
 docker run -i --rm --workdir /arvados \
        -v ${tmp}/arvados-server:/arvados-server:ro \
        -v ${sourcepath}:/arvados:ro \
-       -v /arvados/apps/workbench/.bundle \
        -v /arvados/services/api/.bundle \
        -v /arvados/services/api/tmp \
        --env http_proxy \
        --env https_proxy \
-       debian:10 \
-       bash -c "/arvados-server install -type test && /arvados-server boot -type test -config doc/examples/config/zzzzz.yml -own-temporary-database -shutdown -timeout 9m"
+       debian:11 \
+       bash -c "/arvados-server install -type test &&
+           git config --global --add safe.directory /arvados &&
+           /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)
 }