diff options
author | 2023-11-10 07:00:47 -0800 | |
---|---|---|
committer | 2023-11-10 10:00:47 -0500 | |
commit | 997c7f953962d47c242273f0e41398fdfb5b0151 (patch) | |
tree | 4bf0ab42360268281a31361b9a96d54efa48d0cc /plugin/test/helpers.go | |
parent | 42d0c75d04204c36e86626d800084de9456bccd3 (diff) | |
download | coredns-997c7f953962d47c242273f0e41398fdfb5b0151.tar.gz coredns-997c7f953962d47c242273f0e41398fdfb5b0151.tar.zst coredns-997c7f953962d47c242273f0e41398fdfb5b0151.zip |
plugin/cache: key cache on Checking Disabled (CD) bit (#6354)
* plugin/cache: key cache on Checking Disabled (CD) bit
Key the cache on CD bit, which effectively separates the entries for
queries with CD disabled or enabled.
Signed-off-by: Grant Spence <gspence@redhat.com>
Diffstat (limited to 'plugin/test/helpers.go')
-rw-r--r-- | plugin/test/helpers.go | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/plugin/test/helpers.go b/plugin/test/helpers.go index 8145b605a..f99790a23 100644 --- a/plugin/test/helpers.go +++ b/plugin/test/helpers.go @@ -29,15 +29,19 @@ 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 - AuthenticatedData bool - Answer []dns.RR - Ns []dns.RR - Extra []dns.RR - Error error + Qname string + Qtype uint16 + Rcode int + Do bool + CheckingDisabled bool + RecursionAvailable bool + AuthenticatedData bool + Authoritative bool + Truncated bool + Answer []dns.RR + Ns []dns.RR + Extra []dns.RR + Error error } // Msg returns a *dns.Msg embedded in c. |