diff --git a/tests-extra/tests/records/badrecord/test.py b/tests-extra/tests/records/badrecord/test.py index c208f45d534f4fabda23308c70efd4cd817c6f15..7c271d3574d8282fc87dbc45effa074796237af9 100644 --- a/tests-extra/tests/records/badrecord/test.py +++ b/tests-extra/tests/records/badrecord/test.py @@ -14,6 +14,10 @@ t.link(zone, master) t.start() +# Check if the server is answering and zone _isn't_ loaded +resp = master.dig("badrecord.", "SOA", udp=True) +resp.check(rcode="REFUSED") + # Stop master. master.stop() diff --git a/tests-extra/tests/zone/notexists/test.py b/tests-extra/tests/zone/notexists/test.py index 74de6a41927e15fdce5008c80a1e4de9b1caf2a8..74740c40bce7c3ec52ca099b9eb230df1aa8c6c9 100644 --- a/tests-extra/tests/zone/notexists/test.py +++ b/tests-extra/tests/zone/notexists/test.py @@ -14,6 +14,14 @@ t.link(zones, master) t.start() +# Check if the server is answering and zone _isn't_ loaded +resp = master.dig("notexist.", "SOA", udp=True) +resp.check(rcode="REFUSED") + +# The other zone should answer without problem +resp = master.dig("wild.", "SOA", udp=True) +resp.check(rcode="NOERROR") + # Stop master. master.stop()