From 6c36549364380107f8a06ed4f2c6290668bad3ee Mon Sep 17 00:00:00 2001 From: Marek Vavrusa <marek.vavrusa@nic.cz> Date: Tue, 11 Feb 2014 12:07:48 +0100 Subject: [PATCH] tests-extra: test for zone loading failure --- tests-extra/tests/zone/notexists/test.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests-extra/tests/zone/notexists/test.py diff --git a/tests-extra/tests/zone/notexists/test.py b/tests-extra/tests/zone/notexists/test.py new file mode 100644 index 0000000000..74de6a4192 --- /dev/null +++ b/tests-extra/tests/zone/notexists/test.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +'''Test for loading non-existing zone file''' + +from dnstest.test import Test + +t = Test() + +master = t.server("knot") + +zones = t.zone("notexist.", exists=False) + t.zone("wild.") + +t.link(zones, master) + +t.start() + +# Stop master. +master.stop() + +t.end() -- GitLab