diff options
author | 2021-07-09 04:53:50 -0400 | |
---|---|---|
committer | 2021-07-09 10:53:50 +0200 | |
commit | 002b748ccd6b7cc2e3a65f1bd71509f80b95d342 (patch) | |
tree | dbc9050c25f40f0e211904c3c1851b8ae680e688 /plugin/test/helpers.go | |
parent | bfb6972d300fc7ff5db319aea228271896278cab (diff) | |
download | coredns-002b748ccd6b7cc2e3a65f1bd71509f80b95d342.tar.gz coredns-002b748ccd6b7cc2e3a65f1bd71509f80b95d342.tar.zst coredns-002b748ccd6b7cc2e3a65f1bd71509f80b95d342.zip |
plugin/cache: Unset AD flag when DO is not set for cache miss (#4736)
* unset AD bit when client DO is 0
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
* add flag check to existing tests
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/test/helpers.go')
-rw-r--r-- | plugin/test/helpers.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugin/test/helpers.go b/plugin/test/helpers.go index 0c7e85f2a..cb7b0994b 100644 --- a/plugin/test/helpers.go +++ b/plugin/test/helpers.go @@ -29,14 +29,15 @@ func (p RRSet) Less(i, j int) bool { return p[i].String() < p[j].String() } // Case represents a test case that encapsulates various data from a query and response. // Note that is the TTL of a record is 303 we don't compare it with the TTL. type Case struct { - Qname string - Qtype uint16 - Rcode int - Do bool - Answer []dns.RR - Ns []dns.RR - Extra []dns.RR - Error error + Qname string + Qtype uint16 + Rcode int + Do bool + AuthenticatedData bool + Answer []dns.RR + Ns []dns.RR + Extra []dns.RR + Error error } // Msg returns a *dns.Msg embedded in c. |