mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-16 07:46:35 +08:00
DNS API支持查询多个同名记录/优化ACME申请
This commit is contained in:
@@ -98,6 +98,21 @@ func TestDNSPodProvider_QueryRecord(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestDNSPodProvider_QueryRecords(t *testing.T) {
|
||||
provider, _, err := testDNSPodProvider()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
{
|
||||
records, err := provider.QueryRecords(DNSPodTestDomain, "hello-forward", dnstypes.RecordTypeCNAME)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
logs.PrintAsJSON(records, t)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDNSPodProvider_UpdateRecord(t *testing.T) {
|
||||
provider, isInternational, err := testDNSPodProvider()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user