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:
parent
f62189372a
commit
a91cd9c428
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue