[域名解析]优化解析状态显示

This commit is contained in:
刘祥超
2020-12-23 16:49:47 +08:00
parent 0844994db8
commit df6e0a59e4
5 changed files with 138 additions and 9 deletions

View File

@@ -2,4 +2,36 @@ package models
import (
_ "github.com/go-sql-driver/mysql"
"testing"
)
func TestDNSDomainDAO_ExistDomainRecord(t *testing.T) {
{
b, err := NewDNSDomainDAO().ExistDomainRecord(1, "mycluster", "A", "", "")
if err != nil {
t.Fatal(err)
}
t.Log(b)
}
{
b, err := NewDNSDomainDAO().ExistDomainRecord(2, "mycluster", "A", "", "")
if err != nil {
t.Fatal(err)
}
t.Log(b)
}
{
b, err := NewDNSDomainDAO().ExistDomainRecord(2, "mycluster", "MX", "", "")
if err != nil {
t.Fatal(err)
}
t.Log(b)
}
{
b, err := NewDNSDomainDAO().ExistDomainRecord(2, "mycluster123", "A", "", "")
if err != nil {
t.Fatal(err)
}
t.Log(b)
}
}