diff options
author | 2018-01-06 15:56:54 +0000 | |
---|---|---|
committer | 2018-01-06 15:56:54 +0000 | |
commit | 75a8a17da4fc95c086dfb447d29c02e7dbd05561 (patch) | |
tree | b6277f3344a0bbbd00f1a4b33c3aa2480b0c75dc /plugin/kubernetes/handler_pod_insecure_test.go | |
parent | a8e268e33b35d1ebea57a2bf825e16b0a717925b (diff) | |
download | coredns-75a8a17da4fc95c086dfb447d29c02e7dbd05561.tar.gz coredns-75a8a17da4fc95c086dfb447d29c02e7dbd05561.tar.zst coredns-75a8a17da4fc95c086dfb447d29c02e7dbd05561.zip |
plugin/kubernetes: fix pod insecure mode (#1354)
Fixes #1331
Diffstat (limited to 'plugin/kubernetes/handler_pod_insecure_test.go')
-rw-r--r-- | plugin/kubernetes/handler_pod_insecure_test.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugin/kubernetes/handler_pod_insecure_test.go b/plugin/kubernetes/handler_pod_insecure_test.go index 6dcfd5629..b086f3fe6 100644 --- a/plugin/kubernetes/handler_pod_insecure_test.go +++ b/plugin/kubernetes/handler_pod_insecure_test.go @@ -26,12 +26,40 @@ var podModeInsecureCases = []test.Case{ }, }, { + Qname: "blah.podns.pod.cluster.local.", Qtype: dns.TypeA, + Rcode: dns.RcodeNameError, + Ns: []dns.RR{ + test.SOA("cluster.local. 300 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1515173576 7200 1800 86400 30"), + }, + }, + { + Qname: "blah.podns.pod.cluster.local.", Qtype: dns.TypeAAAA, + Rcode: dns.RcodeNameError, + Ns: []dns.RR{ + test.SOA("cluster.local. 300 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1515173576 7200 1800 86400 30"), + }, + }, + { + Qname: "blah.podns.pod.cluster.local.", Qtype: dns.TypeHINFO, + Rcode: dns.RcodeNameError, + Ns: []dns.RR{ + test.SOA("cluster.local. 300 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1515173576 7200 1800 86400 30"), + }, + }, + { Qname: "blah.pod-nons.pod.cluster.local.", Qtype: dns.TypeA, Rcode: dns.RcodeNameError, Ns: []dns.RR{ test.SOA("cluster.local. 300 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1515173576 7200 1800 86400 30"), }, }, + { + Qname: "podns.pod.cluster.local.", Qtype: dns.TypeA, + Rcode: dns.RcodeNameError, + Ns: []dns.RR{ + test.SOA("cluster.local. 300 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1515173576 7200 1800 86400 30"), + }, + }, } func TestServeDNSModeInsecure(t *testing.T) { |