DodoApp: Sync deleted users and keys
Change-Id: Ib71fbdd142fd13fbaa4c24fb8971afe157a184b6
diff --git a/core/installer/welcome/env_test.go b/core/installer/welcome/env_test.go
index 1ab6b39..040607d 100644
--- a/core/installer/welcome/env_test.go
+++ b/core/installer/welcome/env_test.go
@@ -3,7 +3,6 @@
import (
"bytes"
"encoding/json"
- "golang.org/x/crypto/ssh"
"io"
"io/fs"
"log"
@@ -14,11 +13,11 @@
"testing"
"time"
+ "golang.org/x/crypto/ssh"
+
"github.com/go-git/go-billy/v5"
"github.com/go-git/go-billy/v5/memfs"
"github.com/go-git/go-billy/v5/util"
- // "github.com/go-git/go-git/v5"
- // "github.com/go-git/go-git/v5/storage/memory"
"github.com/giolekva/pcloud/core/installer"
"github.com/giolekva/pcloud/core/installer/soft"
@@ -137,14 +136,26 @@
return "", nil
}
+func (f fakeSoftServeClient) GetAllUsers() ([]string, error) {
+ return []string{}, nil
+}
+
func (f fakeSoftServeClient) AddUser(name, pubKey string) error {
return nil
}
+func (f fakeSoftServeClient) RemoveUser(name string) error {
+ return nil
+}
+
func (f fakeSoftServeClient) AddPublicKey(user string, pubKey string) error {
return nil
}
+func (f fakeSoftServeClient) GetUserPublicKeys(username string) ([]string, error) {
+ return []string{}, nil
+}
+
func (f fakeSoftServeClient) RemovePublicKey(user string, pubKey string) error {
return nil
}