mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-11 22:00:27 +08:00
删除集群的时候同时删除相关节点运行日志
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user