mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
plugin/kubernetes: add explicit non-existing ns check (#1350)
We already do the right thing here, but add a test none-the-less.
This commit is contained in:
@@ -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"),
|
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
|
// TXT Schema
|
||||||
{
|
{
|
||||||
Qname: "dns-version.cluster.local.", Qtype: dns.TypeTXT,
|
Qname: "dns-version.cluster.local.", Qtype: dns.TypeTXT,
|
||||||
|
|||||||
Reference in New Issue
Block a user