Initial commit (code only without large binaries)
This commit is contained in:
18
EdgeAPI/internal/db/models/ns_cluster_dao_test.go
Normal file
18
EdgeAPI/internal/db/models/ns_cluster_dao_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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