mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-15 00:40:26 +08:00
增加DNS服务商账号管理
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"crypto/md5"
|
||||
"encoding/json"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"github.com/iwind/TeaGo/logs"
|
||||
"testing"
|
||||
)
|
||||
@@ -42,3 +43,12 @@ func TestNewServerDAO_md5(t *testing.T) {
|
||||
h := m.Sum(nil)
|
||||
t.Logf("%x", h)
|
||||
}
|
||||
|
||||
func TestServerDAO_genDNSName(t *testing.T) {
|
||||
dbs.NotifyReady()
|
||||
dnsName, err := SharedServerDAO.genDNSName()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log("dnsName:", dnsName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user