diff options
author | 2018-01-05 17:53:26 +0000 | |
---|---|---|
committer | 2018-01-05 17:53:26 +0000 | |
commit | a91cd9c42830d13e0249a7b3b94fac4a4770bdb0 (patch) | |
tree | c92cdbaedcf565c44afb58fc0de98f2be679dd97 /plugin/kubernetes/handler_test.go | |
parent | f62189372af6d866a8bce890bf44a0284a599b59 (diff) | |
download | coredns-a91cd9c42830d13e0249a7b3b94fac4a4770bdb0.tar.gz coredns-a91cd9c42830d13e0249a7b3b94fac4a4770bdb0.tar.zst coredns-a91cd9c42830d13e0249a7b3b94fac4a4770bdb0.zip |
plugin/kubernetes: add explicit non-existing ns check (#1350)
We already do the right thing here, but add a test none-the-less.
Diffstat (limited to 'plugin/kubernetes/handler_test.go')
-rw-r--r-- | plugin/kubernetes/handler_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
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, |