增加节点停止、启动、安装测试等功能

This commit is contained in:
GoEdgeLab
2020-10-27 12:33:22 +08:00
parent 8444e9b312
commit c13b8b99c5
6 changed files with 284 additions and 10 deletions

View File

@@ -1,6 +1,9 @@
package installers
import "testing"
import (
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
"testing"
)
func TestNodeInstaller_Install(t *testing.T) {
var installer InstallerInterface = &NodeInstaller{}
@@ -28,7 +31,7 @@ func TestNodeInstaller_Install(t *testing.T) {
Endpoints: []string{"192.168.2.40:8003"},
NodeId: "313fdb1b90d0a63c736f307b4d1ca358",
Secret: "Pl3u5kYqBDZddp7raw6QfHiuGPRCWF54",
})
}, &models.NodeInstallStatus{})
if err != nil {
t.Fatal(err)
}