]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2421] Check that the load error messages are logged
authorMukund Sivaraman <muks@isc.org>
Wed, 14 Nov 2012 09:02:10 +0000 (14:32 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 14 Nov 2012 09:02:57 +0000 (14:32 +0530)
tests/lettuce/features/auth_badzone.feature

index 57b2dd4cceae81b5a113561fbdb52eefdb154620..edc1a64d63015580ad2c472529d3aec0f5bce545 100644 (file)
@@ -6,6 +6,16 @@ Feature: Authoritative DNS server with a bad zone
 
     Scenario: Bad zone
         Given I have bind10 running with configuration auth/auth_badzone.config
+
+        # loading example.com, example.net and example.info zones fail.
+        # Note: wait for these messages right away as otherwise they
+        # will be logged and we cannot use the 'new' keyword to wait for
+        # 3 different log messages. *There could still be a race here if
+        # auth starts very quickly.*
+        And wait for new bind10 stderr message DATASRC_LOAD_FROM_FILE_ERROR
+        And wait for new bind10 stderr message DATASRC_LOAD_FROM_FILE_ERROR
+        And wait for new bind10 stderr message DATASRC_LOAD_FROM_FILE_ERROR
+
         And wait for bind10 stderr message BIND10_STARTED_CC
         And wait for bind10 stderr message CMDCTL_STARTED
         And wait for bind10 stderr message AUTH_SERVER_STARTED