]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle example3.db being modified in upforwd system test
authorMark Andrews <marka@isc.org>
Tue, 25 Feb 2025 01:28:58 +0000 (12:28 +1100)
committerMark Andrews <marka@isc.org>
Tue, 25 Feb 2025 01:28:58 +0000 (12:28 +1100)
The zone file for example3 (ns1/example3.db) can be modified in the
upforwd test as example3 is updated as part of the test.  Whether
the zone is written out or not by the end of the test is timing
dependent.  Rename ns1/example3.db to ns1/example3.db.in and copy
it to ns1/example3.db in setup so we don't trigger post test changes
checks.

bin/tests/system/upforwd/ns1/example3.db.in [moved from bin/tests/system/upforwd/ns1/example3.db with 100% similarity]
bin/tests/system/upforwd/setup.sh
bin/tests/system/upforwd/tests_sh_upforwd.py

index 7fddf0175c887b5e151660d659e65bc0dea694d1..8e9da74ae88b65898c803180ee7b73ae211ea390 100644 (file)
@@ -14,6 +14,7 @@
 . ../conf.sh
 
 cp -f ns1/example1.db ns1/example.db
+cp -f ns1/example3.db.in ns1/example3.db
 cp -f ns3/noprimary.db ns3/noprimary1.db
 
 copy_setports ns1/named.conf.in ns1/named.conf
index 7479f9753ddd4eeeed6bfc0391400773e664d743..3dfa290a3161ad43addc2d34dc4a63878cfa1511 100644 (file)
@@ -26,6 +26,7 @@ pytestmark = pytest.mark.extra_artifacts(
         "ns1/example.db",
         "ns1/example2-toomanykeys.db",
         "ns1/example2.db",
+        "ns1/example3.db",
         "ns3/dnstap.conf",
         "ns3/dnstap.out",
         "ns3/noprimary1.db",