plugin/file: add TXT RR test case (#5079)

Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
This commit is contained in:
xuweiwei 2022-02-18 02:58:18 +08:00 committed by GitHub
parent c121aaab34
commit 86a5902209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,6 +132,13 @@ var dnsTestCases = []test.Case{
Rcode: dns.RcodeServerFailure, Rcode: dns.RcodeServerFailure,
Ns: miekAuth, Ns: miekAuth,
}, },
{
Qname: "txt.miek.nl.", Qtype: dns.TypeTXT,
Answer: []dns.RR{
test.TXT(`txt.miek.nl. 1800 IN TXT "v=spf1 a mx ~all"`),
},
Ns: miekAuth,
},
} }
const ( const (
@ -236,4 +243,5 @@ dname IN DNAME x
srv IN SRV 10 10 8080 a.miek.nl. srv IN SRV 10 10 8080 a.miek.nl.
mx IN MX 10 a.miek.nl. mx IN MX 10 a.miek.nl.
txt IN TXT "v=spf1 a mx ~all"
ext-cname IN CNAME example.com.` ext-cname IN CNAME example.com.`