初步实现多集群共享节点

This commit is contained in:
GoEdgeLab
2021-07-31 22:23:11 +08:00
parent 4407973626
commit 83ae3095cd
15 changed files with 468 additions and 116 deletions

View File

@@ -24,3 +24,13 @@ func TestNodeDAO_UpdateNodeUp(t *testing.T) {
}
t.Log("ok")
}
func TestNodeDAO_FindEnabledNodeClusterIds(t *testing.T) {
dbs.NotifyReady()
var tx *dbs.Tx
clusterIds, err := NewNodeDAO().FindEnabledAndOnNodeClusterIds(tx, 48)
if err != nil {
t.Fatal(err)
}
t.Log(clusterIds)
}