fix: handler unit test
This commit is contained in:
parent
954195e4d0
commit
558ebb0127
@ -34,7 +34,10 @@ func newTestLdap() *Ldap {
|
|||||||
func newTestLdapZones() map[string]*file.Zone {
|
func newTestLdapZones() map[string]*file.Zone {
|
||||||
Zone := file.NewZone("example.org.", "")
|
Zone := file.NewZone("example.org.", "")
|
||||||
Zone.Insert(SOA("example.org."))
|
Zone.Insert(SOA("example.org."))
|
||||||
for _, rr := range []string{"example.org. " + defaultA} {
|
for _, rr := range []string{
|
||||||
|
"example.org. " + defaultA,
|
||||||
|
"a.example.org. " + defaultA,
|
||||||
|
} {
|
||||||
r, _ := dns.NewRR(rr)
|
r, _ := dns.NewRR(rr)
|
||||||
Zone.Insert(r)
|
Zone.Insert(r)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user