Commit 8f77566c authored by Mohammed Naser's avatar Mohammed Naser Committed by Miek Gieben

Add test for SRV on root (#1010)

parent 7d47af4f
...@@ -26,6 +26,12 @@ var dnsTestCases = map[string](test.Case){ ...@@ -26,6 +26,12 @@ var dnsTestCases = map[string](test.Case){
test.A("svc1.*.svc.cluster.local. 5 IN A 10.0.0.1"), test.A("svc1.*.svc.cluster.local. 5 IN A 10.0.0.1"),
}, },
}, },
"SRV Service (wildcard, root)": {
Qname: "svc1.testns.svc.cluster.local.", Qtype: dns.TypeSRV,
Rcode: dns.RcodeSuccess,
Answer: []dns.RR{test.SRV("svc1.testns.svc.cluster.local. 303 IN SRV 0 100 80 svc1.testns.svc.cluster.local.")},
Extra: []dns.RR{test.A("svc1.testns.svc.cluster.local. 303 IN A 10.0.0.1")},
},
"SRV Service (wildcard)": { "SRV Service (wildcard)": {
Qname: "svc1.*.svc.cluster.local.", Qtype: dns.TypeSRV, Qname: "svc1.*.svc.cluster.local.", Qtype: dns.TypeSRV,
Rcode: dns.RcodeSuccess, Rcode: dns.RcodeSuccess,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment