DNS API支持查询多个同名记录/优化ACME申请

This commit is contained in:
GoEdgeLab
2022-11-17 17:33:59 +08:00
parent 1e1f81f2a0
commit 8b1a5e1fb7
16 changed files with 381 additions and 35 deletions

View File

@@ -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 {