Skip to content

Commit

Permalink
improve RecordSetsGlobalListAll integration test
Browse files Browse the repository at this point in the history
This makes the test a bit less complex and brittle.
  • Loading branch information
mdb committed Sep 16, 2020
1 parent adc41cf commit 61e3456
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions vinyldns/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,29 +399,10 @@ func TestRecordSetsListAllIntegrationFilterForNonexistentName(t *testing.T) {

func TestRecordSetsGlobalListAllIntegrationFilterForExistentName(t *testing.T) {
c := client()
rName := "global-list-int-test"
zs, err := c.ZonesListAll(ListFilter{})
if err != nil {
t.Error(err)
}

_, err = c.RecordSetCreate(&RecordSet{
Name: rName,
ZoneID: zs[0].ID,
Type: "A",
TTL: 60,
Records: []Record{
{
Address: "127.0.0.1",
},
},
})
if err != nil {
t.Error(err)
}
rName := "foo"

records, err := c.RecordSetsGlobalListAll(GlobalListFilter{
RecordNameFilter: rName + "*",
RecordNameFilter: "*" + rName + "*",
})
if err != nil {
t.Error(err)
Expand Down

0 comments on commit 61e3456

Please sign in to comment.