Commit 44e53a15 authored by Marek Vavrusa's avatar Marek Vavrusa

Fixed PROTOS test using TSIG randomly (not supported).

parent 7569b4b6
......@@ -8,13 +8,19 @@ from dnstest.test import Test
from dnstest.params import get_binary
# Find PROTOS binaries
protos_bin = [ "c09-dns-query-r1.jar", "c09-dns-zonetransfer-r1.jar" ]
protos_java_bin = get_binary("PROTOS_JAVA_BIN", "java")
protos_query_bin = get_binary("PROTOS_QUERY_BIN", "c09-dns-query-r1.jar")
protos_zonetransfer_bin = get_binary("PROTOS_ZONETRANSFER_BIN", "c09-dns-zonetransfer-r1.jar")
protos_query_bin = get_binary("PROTOS_QUERY_BIN", protos_bin[0])
protos_zonetransfer_bin = get_binary("PROTOS_ZONETRANSFER_BIN", protos_bin[1])
if not protos_java_bin:
raise Exception("Java not found, skipping test.")
if not protos_query_bin:
raise Exception("'%s' PROTOS binary not found" % protos_bin[0])
if not protos_zonetransfer_bin:
raise Exception("'%s' PROTOS binary not found" % protos_bin[1])
t = Test(ip = 4) # PROTOS works on IPv4
t = Test(ip=4, tsig=False) # PROTOS works on IPv4, no TSIG
master = t.server("dummy")
slave = t.server("knot")
zone ="protos.invalid.", exists=False)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment