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