删除集群的时候同时删除相关节点运行日志

This commit is contained in:
刘祥超
2022-07-28 09:47:01 +08:00
parent 530954dd6c
commit 89a69e3165
5 changed files with 65 additions and 6 deletions

View File

@@ -3,4 +3,17 @@ package models
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestNSClusterDAO_DisableNodeCluster(t *testing.T) {
dbs.NotifyReady()
err := SharedNSClusterDAO.DisableNSCluster(nil, 7)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}