Files
EdgeAPI/internal/db/models/node_ip_address_log_dao_test.go

16 lines
436 B
Go
Raw Normal View History

package models
import (
2024-07-27 14:15:25 +08:00
"testing"
2021-09-15 10:44:25 +08:00
"github.com/TeaOSLab/EdgeCommon/pkg/nodeconfigs"
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
)
2021-09-15 10:44:25 +08:00
func TestNodeIPAddressDAO_FindFirstNodeAccessIPAddress(t *testing.T) {
var dao = NewNodeIPAddressDAO()
t.Log(dao.FindFirstNodeAccessIPAddress(nil, 48, true, nodeconfigs.NodeRoleNode))
t.Log(dao.FindFirstNodeAccessIPAddressId(nil, 48, true, nodeconfigs.NodeRoleNode))
}