DodoApp: Support dev virtual machines
Change-Id: Ib7641adb5be477bdde7cd9a06df4b45aa65a1c01
diff --git a/core/installer/welcome/env_test.go b/core/installer/welcome/env_test.go
index f41110d..ee80e4e 100644
--- a/core/installer/welcome/env_test.go
+++ b/core/installer/welcome/env_test.go
@@ -15,6 +15,7 @@
"golang.org/x/crypto/ssh"
+ "cuelang.org/go/cue/errors"
"github.com/go-git/go-billy/v5"
"github.com/go-git/go-billy/v5/memfs"
"github.com/go-git/go-billy/v5/util"
@@ -117,6 +118,10 @@
return mockRepoIO{soft.NewBillyRepoFS(f.envFS), "foo.bar", f.t, &l}, nil
}
+func (f fakeSoftServeClient) GetRepoBranch(name, branch string) (soft.RepoIO, error) {
+ return f.GetRepo(name)
+}
+
func (f fakeSoftServeClient) GetAllRepos() ([]string, error) {
return []string{}, nil
}
@@ -176,6 +181,14 @@
return nil
}
+func (f fakeSoftServeClient) DisableAnonAccess() error {
+ return nil
+}
+
+func (f fakeSoftServeClient) DisableKeyless() error {
+ return nil
+}
+
type fakeClientGetter struct {
t *testing.T
envFS billy.Filesystem
@@ -279,6 +292,9 @@
if _, err := infraMgr.Install(app, "/infrastructure/dns-gateway", "dns-gateway", map[string]any{
"servers": []installer.EnvDNS{},
}); err != nil {
+ for _, e := range errors.Errors(err) {
+ t.Log(e)
+ }
t.Fatal(err)
}
}