]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Allow peeking at cache using an env var 16597/head
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Thu, 4 Dec 2025 14:22:42 +0000 (09:22 -0500)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Thu, 4 Dec 2025 14:25:56 +0000 (09:25 -0500)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
regression-tests.recursor-dnssec/test_RoutingTag.py

index 3e1fc53deb702cd969a7559e5085dca7a930586e..34100114baa7ba524ae796954df55e8aa7b63e66 100644 (file)
@@ -147,7 +147,9 @@ end
         query = dns.message.make_query(nameECS, 'TXT', 'IN')
         self.sendECSQuery(query, expected2)
 
-        return # remove this line to peek at cache
+        if not "PEEK_AT_CACHE" in os.environ: # set to peek at cache
+            return
+
         rec_controlCmd = [os.environ['RECCONTROL'],
                           '--config-dir=%s' % 'configs/' + self._confdir,
                           'dump-cache', 'x']
@@ -228,7 +230,9 @@ end
         query = dns.message.make_query(nameECS, 'TXT', 'IN')
         self.sendECSQuery(query, expected2)
 
-        return #remove this line to peek at cache
+        if not "PEEK_AT_CACHE" in os.environ: # set to peek at cache
+            return
+
         rec_controlCmd = [os.environ['RECCONTROL'],
                           '--config-dir=%s' % 'configs/' + self._confdir,
                           'dump-cache y']