mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user