]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add ns2/managed1.conf to mkeys extra_artifacts
authorMichal Nowak <mnowak@isc.org>
Wed, 4 Dec 2024 17:17:40 +0000 (18:17 +0100)
committerMichal Nowak <mnowak@isc.org>
Thu, 5 Dec 2024 10:17:55 +0000 (11:17 +0100)
The ns2/managed1.conf file is created by the setup.sh script. Then, in
the tests.sh script it is moved to ns2/managed.conf. The latter file
name is in mkeys extra_artifacts, but the former one is not. This is a
problem when pytest is started with the --setup-only option as it only
runs the setup.sh script (e.g., in the cross-version-config-tests CI
job) and thus failing the "Unexpected files found" assertion.

(cherry picked from commit e7d973bd008d5774c61d73a949ddd92c17b2bd25)

bin/tests/system/mkeys/tests_sh_mkeys.py

index ed0916d100f525ac2a9030cfef99d5f847577f29..08feed39fd03274b30e4a432f91896efee0e5bd5 100644 (file)
@@ -36,6 +36,7 @@ pytestmark = pytest.mark.extra_artifacts(
         "ns1/root.db.tmp",
         "ns1/zone.key",
         "ns2/managed-keys.bind",
+        "ns2/managed1.conf",
         "ns3/broken.conf",
         "ns3/managed-keys.bind",
         "ns4/nope",