Commit 89b6e0be authored by Yong Tang's avatar Yong Tang Committed by Miek Gieben

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: default avatarYong Tang <yong.tang.github@outlook.com>
parent d0892abc
...@@ -27,6 +27,14 @@ func TestWhoami(t *testing.T) { ...@@ -27,6 +27,14 @@ func TestWhoami(t *testing.T) {
expectedReply: []string{"example.org.", "_udp.example.org."}, expectedReply: []string{"example.org.", "_udp.example.org."},
expectedErr: nil, 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() ctx := context.TODO()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment