func getRrOrFail(t *testing.T, rrsets dnsprovider.ResourceRecordSets, name string) dnsprovider.ResourceRecordSet { rrset, err := rrsets.Get(name) if err != nil { t.Fatalf("Failed to get recordset: %v", err) } else if rrset == nil { t.Logf("Did not Get recordset: %v", name) } else { t.Logf("Got recordset: %v", rrset.Name()) } return rrset }
// Note that if the named resource record set does not exist, but no error occurred, the returned set, and error, are both nil func getRrset(dnsName string, rrsetsInterface dnsprovider.ResourceRecordSets) (dnsprovider.ResourceRecordSet, error) { return rrsetsInterface.Get(dnsName) }