DescribeDomainRecords_test.go 492 B

123456789101112131415161718192021
  1. package dns
  2. import (
  3. "testing"
  4. )
  5. func TestDescribeDomainRecords(t *testing.T) {
  6. //prepare
  7. client := NewTestClient()
  8. describeArgs := DescribeDomainRecordsArgs{
  9. DomainName: TestDomainName,
  10. }
  11. describeArgs.PageSize = 100
  12. describeResponse, err := client.DescribeDomainRecords(&describeArgs)
  13. if err == nil {
  14. t.Logf("DescribeDomainRecords success: TotalCount:%d ", describeResponse.TotalCount)
  15. } else {
  16. t.Errorf("Failed to DescribeDomainRecords: %s", describeArgs.DomainName)
  17. }
  18. }