summaryrefslogtreecommitdiffstats
path: root/tests/system/ixfr
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-10-28 13:08:02 +0200
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-10-28 13:08:02 +0200
commit357106fc545e6d506c4ec757d306a955c68d1d5f (patch)
treedcb010e79a134b6298fef14e5ed32817dfef0461 /tests/system/ixfr
parentMerge branch 'master' into work/ixfrfallback (diff)
downloadkea-357106fc545e6d506c4ec757d306a955c68d1d5f.tar.xz
kea-357106fc545e6d506c4ec757d306a955c68d1d5f.zip
[1279] System tests, but still disabled
Diffstat (limited to 'tests/system/ixfr')
-rw-r--r--tests/system/ixfr/in-3/tests.sh21
-rw-r--r--tests/system/ixfr/named_noixfr.conf1
2 files changed, 17 insertions, 5 deletions
diff --git a/tests/system/ixfr/in-3/tests.sh b/tests/system/ixfr/in-3/tests.sh
index 858b815908..d47a221939 100644
--- a/tests/system/ixfr/in-3/tests.sh
+++ b/tests/system/ixfr/in-3/tests.sh
@@ -22,6 +22,8 @@
# server; the server should not respond to the request, so the client should
# then send an AXFR request and receive the latest copy of the zone.
+# TODO It seems bind9 still allows IXFR even when provide-ixfr on;
+
. ../ixfr_init.sh
status=$?
@@ -29,9 +31,6 @@ status=$?
old_client_serial=`$DIG_SOA @$CLIENT_IP | $AWK '{print $3}'`
echo "I:SOA serial of IXFR client $CLIENT_NAME is $old_client_serial"
-# TODO: Need to alter configuration of BIND 10 server such that it accepts
-# NOTIFYs from and sends IXFR requests to the BIND 9 master.
-
# If required, get the IXFR server to notify the IXFR client of the new zone.
# Do this by allowing notifies and then triggering a re-notification of the
# server.
@@ -48,8 +47,20 @@ status=`expr $status + $?`
compare_soa $SERVER_NAME $SERVER_IP $CLIENT_NAME $CLIENT_IP
status=`expr $status + $?`
-# TODO: Check the BIND 10 log, looking for the IXFR messages that indicate that
-# it has initiated an IXFR and then an AXFR.
+# Check the log there's the IXFR and fallback
+grep XFRIN_XFR_TRANSFER_STARTED nsx2/bind10.run | grep IXFR
+if [ $? -ne 0 ];
+then
+ echo "R:$CLIENT_NAME FAIL no 'IXFR started' message in the BIND 10 log"
+ exit 1
+fi
+
+grep XFRIN_XFR_TRANSFER_FALLBACK nsx2/bind10.run
+if [ $? -ne 0 ];
+then
+ echo "R:$CLIENT_NAME FAIL no fallback message in BIND10 log"
+ exit 1
+fi
echo "I:exit status: $status"
exit $status
diff --git a/tests/system/ixfr/named_noixfr.conf b/tests/system/ixfr/named_noixfr.conf
index b0d972adf7..d17187600a 100644
--- a/tests/system/ixfr/named_noixfr.conf
+++ b/tests/system/ixfr/named_noixfr.conf
@@ -33,6 +33,7 @@ options {
ixfr-from-differences no;
notify explicit;
also-notify { 10.53.0.2; };
+ provide-ixfr no;
};
zone "example" {