From 97c31e382053c8a6f46959adb052dd58a047dfba Mon Sep 17 00:00:00 2001 From: missytake Date: Tue, 17 Dec 2024 23:16:45 +0100 Subject: [PATCH] fix tests --- cmdeploy/src/cmdeploy/tests/test_dns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdeploy/src/cmdeploy/tests/test_dns.py b/cmdeploy/src/cmdeploy/tests/test_dns.py index fd11095f..a546faeb 100644 --- a/cmdeploy/src/cmdeploy/tests/test_dns.py +++ b/cmdeploy/src/cmdeploy/tests/test_dns.py @@ -110,7 +110,7 @@ class TestZonefileChecks: parse_zonefile_into_dict(zonefile_mocked, mockdns_base, only_required=True) mssh = MockSSHExec() mockdns_base["mail_domain"] = "some.domain" - res = check_full_zone(mssh, mockdns_base, out=mockout, zonefile=zonefile) + res = check_full_zone(mssh, mockdns_base, out=mockout, zonefile=zonefile, all=False) assert res == 0 assert "WARNING" in mockout.captured_plain[0] assert len(mockout.captured_plain) == 9 @@ -120,7 +120,7 @@ class TestZonefileChecks: parse_zonefile_into_dict(zonefile, mockdns_base) mssh = MockSSHExec() mockdns_base["mail_domain"] = "some.domain" - res = check_full_zone(mssh, mockdns_base, out=mockout, zonefile=zonefile) + res = check_full_zone(mssh, mockdns_base, out=mockout, zonefile=zonefile, all=True) assert res == 0 assert not mockout.captured_red assert "correct" in mockout.captured_green[0]