From d5f1864f78c49e76d4cf3b36499b7ceb5bed30f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= <marek.vavrusa@nic.cz>
Date: Tue, 13 May 2014 14:32:51 +0200
Subject: [PATCH] tests-extra: badrecord test SERVFAIL is okay

---
 tests-extra/tests/records/badrecord/test.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests-extra/tests/records/badrecord/test.py b/tests-extra/tests/records/badrecord/test.py
index 7c271d357..c38320eb5 100644
--- a/tests-extra/tests/records/badrecord/test.py
+++ b/tests-extra/tests/records/badrecord/test.py
@@ -16,7 +16,10 @@ t.start()
 
 # Check if the server is answering and zone _isn't_ loaded
 resp = master.dig("badrecord.", "SOA", udp=True)
-resp.check(rcode="REFUSED")
+
+# @note Either REFUSED or SERVFAIL is fine, Knot treats unloadable
+# zone as expired while the older version ignored such zone.
+resp.check(rcode="SERVFAIL")
 
 # Stop master.
 master.stop()
-- 
GitLab