aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/handler_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2018-04-18 12:12:28 -0400
committerGravatar GitHub <noreply@github.com> 2018-04-18 12:12:28 -0400
commit51e1442bd97f6d51eccb5b18e36cfffd8e61bc1e (patch)
tree4226efaaffee225b2c7e0a8b0c3c250597c35863 /plugin/kubernetes/handler_test.go
parent9a7e487a5aac4643baf6b385cc2d8c444e648221 (diff)
downloadcoredns-51e1442bd97f6d51eccb5b18e36cfffd8e61bc1e.tar.gz
coredns-51e1442bd97f6d51eccb5b18e36cfffd8e61bc1e.tar.zst
coredns-51e1442bd97f6d51eccb5b18e36cfffd8e61bc1e.zip
plugin/kubernetes: check for bare zone query (#1692)
* check for bare zone query * check for bare type query
Diffstat (limited to 'plugin/kubernetes/handler_test.go')
-rw-r--r--plugin/kubernetes/handler_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugin/kubernetes/handler_test.go b/plugin/kubernetes/handler_test.go
index b23953b32..b72ddbbf6 100644
--- a/plugin/kubernetes/handler_test.go
+++ b/plugin/kubernetes/handler_test.go
@@ -231,6 +231,20 @@ var dnsTestCases = []test.Case{
test.AAAA("5678-abcd--1.hdls1.testns.svc.cluster.local. 5 IN AAAA 5678:abcd::1"),
},
},
+ {
+ Qname: "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"),
+ },
+ },
+ {
+ Qname: "pod.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) {