diff options
author | 2018-02-08 12:08:03 -0800 | |
---|---|---|
committer | 2018-02-08 20:08:03 +0000 | |
commit | 89b6e0bedda6dd53d22af17360e55344ae51d136 (patch) | |
tree | 0ee91ecaf88e491ed5c6b1935f4bd8c709852f63 | |
parent | d0892abc2c98a78aae04a6994712ef20bfe1cb93 (diff) | |
download | coredns-89b6e0bedda6dd53d22af17360e55344ae51d136.tar.gz coredns-89b6e0bedda6dd53d22af17360e55344ae51d136.tar.zst coredns-89b6e0bedda6dd53d22af17360e55344ae51d136.zip |
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>
-rw-r--r-- | plugin/whoami/whoami_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/whoami/whoami_test.go b/plugin/whoami/whoami_test.go index 0fee7d03f..02a6e1e6e 100644 --- a/plugin/whoami/whoami_test.go +++ b/plugin/whoami/whoami_test.go @@ -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() |