aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/handler_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2018-08-27 14:41:04 -0400
committerGravatar Miek Gieben <miek@miek.nl> 2018-08-27 19:41:04 +0100
commite6ef320d13580548a1ff9a36c3b1365240577ac1 (patch)
tree9c49324fdcc4685abd52940afedc5eefe3034a00 /plugin/kubernetes/handler_test.go
parent444472891ff124d656a247b63dd126240f5eb35b (diff)
downloadcoredns-e6ef320d13580548a1ff9a36c3b1365240577ac1.tar.gz
coredns-e6ef320d13580548a1ff9a36c3b1365240577ac1.tar.zst
coredns-e6ef320d13580548a1ff9a36c3b1365240577ac1.zip
handle blank name and namespaces (#2042)
Diffstat (limited to 'plugin/kubernetes/handler_test.go')
-rw-r--r--plugin/kubernetes/handler_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/kubernetes/handler_test.go b/plugin/kubernetes/handler_test.go
index c930e538e..fa4a698ad 100644
--- a/plugin/kubernetes/handler_test.go
+++ b/plugin/kubernetes/handler_test.go
@@ -323,6 +323,13 @@ var dnsTestCases = []test.Case{
test.SOA("cluster.local. 303 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"),
},
},
+ {
+ Qname: "testns.svc.cluster.local.", Qtype: dns.TypeA,
+ Rcode: dns.RcodeSuccess,
+ Ns: []dns.RR{
+ test.SOA("cluster.local. 303 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"),
+ },
+ },
}
func TestServeDNS(t *testing.T) {