Skip to content

Commit c5af2c7

Browse files
committed
changed output for dns test
1 parent 0d33b82 commit c5af2c7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/dns_client_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"strings"
88
"testing"
99

10-
"github.com/davecgh/go-spew/spew"
1110
"github.com/liquidweb/liquidweb-go/client"
1211
"github.com/liquidweb/liquidweb-go/network"
1312
"github.com/stretchr/testify/assert"
@@ -39,7 +38,12 @@ func TestLiveListRecords(t *testing.T) {
3938
dnsRecords, err := api.NetworkDNS.List(&reqParams)
4039
require.NoError(t, err, "got an error using parameters %#v", reqParams)
4140
assert.NotZero(t, len(dnsRecords.Items))
42-
log.Printf("got back %s", spew.Sdump(dnsRecords))
41+
records := []string{}
42+
for _, each := range dnsRecords.Items {
43+
records = append(records, (each.Name + " => " + each.RData))
44+
}
45+
log.Printf("all zones on zone %s:\n%s\n",
46+
*testZone, strings.Join(records, "\n"))
4347
}
4448

4549
func TestLiveZones(t *testing.T) {

0 commit comments

Comments
 (0)