mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
simplify dns.MockResolver, changing MockReq to just a string representing the request
similar to Authentic/Inauthentic
This commit is contained in:
@ -33,11 +33,11 @@ func TestIPRev(t *testing.T) {
|
||||
AAAA: map[string][]string{
|
||||
"basic6.example.": {"2001:db8::1"},
|
||||
},
|
||||
Fail: map[dns.Mockreq]struct{}{
|
||||
{Type: "ptr", Name: "10.0.0.3"}: {},
|
||||
{Type: "ptr", Name: "2001:db8::3"}: {},
|
||||
{Type: "ip", Name: "temperror.example."}: {},
|
||||
{Type: "ip", Name: "temperror2.example."}: {},
|
||||
Fail: []string{
|
||||
"ptr 10.0.0.3",
|
||||
"ptr 2001:db8::3",
|
||||
"ip temperror.example.",
|
||||
"ip temperror2.example.",
|
||||
},
|
||||
Authentic: []string{
|
||||
"ptr 10.0.0.1",
|
||||
|
Reference in New Issue
Block a user