aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/whoami/whoami_test.go8
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()