| 1 | package dns |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | ) |
| 6 | |
| 7 | func TestDescribeSubDomainRecords(t *testing.T) { |
| 8 | //prepare |
| 9 | client := NewTestClient() |
| 10 | describeArgs := DescribeSubDomainRecordsArgs{ |
| 11 | SubDomain: "go." + TestDomainName, |
| 12 | } |
| 13 | |
| 14 | describeResponse, err := client.DescribeSubDomainRecords(&describeArgs) |
| 15 | if err == nil { |
| 16 | t.Logf("DescribeSubDomainRecords success: %v ", describeResponse) |
| 17 | } else { |
| 18 | t.Errorf("Failed to DescribeSubDomainRecords: %s", describeArgs.SubDomain) |
| 19 | } |
| 20 | } |