From a91cd9c42830d13e0249a7b3b94fac4a4770bdb0 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 5 Jan 2018 17:53:26 +0000 Subject: plugin/kubernetes: add explicit non-existing ns check (#1350) We already do the right thing here, but add a test none-the-less. --- plugin/kubernetes/handler_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugin/kubernetes/handler_test.go') diff --git a/plugin/kubernetes/handler_test.go b/plugin/kubernetes/handler_test.go index f92c8aa4b..63e691cf2 100644 --- a/plugin/kubernetes/handler_test.go +++ b/plugin/kubernetes/handler_test.go @@ -156,6 +156,14 @@ var dnsTestCases = []test.Case{ test.SOA("cluster.local. 300 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), }, }, + // A Service (non-existing namespace) + { + Qname: "svc0.svc-nons.svc.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. 1499347823 7200 1800 86400 60"), + }, + }, // TXT Schema { Qname: "dns-version.cluster.local.", Qtype: dns.TypeTXT, -- cgit v1.2.3