Add a test case for case insensitive/preserving with whoami plugin (#1509)

This fix add a test case for case insensitive/preserving with
whoami plugin.

This fix is part of the effort for 1403.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2018-02-08 12:08:03 -08:00
committed by Miek Gieben
parent d0892abc2c
commit 89b6e0bedd

View File

@@ -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()