aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/handler_pod_insecure_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-01-06 15:56:54 +0000
committerGravatar GitHub <noreply@github.com> 2018-01-06 15:56:54 +0000
commit75a8a17da4fc95c086dfb447d29c02e7dbd05561 (patch)
treeb6277f3344a0bbbd00f1a4b33c3aa2480b0c75dc /plugin/kubernetes/handler_pod_insecure_test.go
parenta8e268e33b35d1ebea57a2bf825e16b0a717925b (diff)
downloadcoredns-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.go28
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) {