mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-01 02:56:34 +08:00
添加DNS账号时自动读取DNS服务商下域名
This commit is contained in:
@@ -13,6 +13,24 @@ import (
|
||||
|
||||
const testClusterId = 7
|
||||
|
||||
func TestLocalEdgeDNSProvider_GetDomains(t *testing.T) {
|
||||
dbs.NotifyReady()
|
||||
|
||||
provider := &dnsclients.LocalEdgeDNSProvider{}
|
||||
err := provider.Auth(maps.Map{
|
||||
"clusterId": testClusterId,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
domains, err := provider.GetDomains()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log("domains:", domains)
|
||||
}
|
||||
|
||||
func TestLocalEdgeDNSProvider_GetRecords(t *testing.T) {
|
||||
dbs.NotifyReady()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user