Add a test case for case insensitive/preserving with whoami plugin
This fix add a test case for case insensitive/preserving with
whoami plugin.
This fix is part of the effort for 1403.
@@ -27,6 +27,14 @@ func TestWhoami(t *testing.T) {
expectedReply: []string{"example.org.", "_udp.example.org."},
expectedErr: nil,
},
+ // Case insensitive and case preserving
+ {
+ qname: "Example.ORG",
+ qtype: dns.TypeA,
+ expectedCode: dns.RcodeSuccess,
+ expectedReply: []string{"Example.ORG.", "_udp.Example.ORG."},
+ expectedErr: nil,
+ },
}
ctx := context.TODO()
