]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] make sure auth server is running before queried
authorJeremy C. Reed <jreed@ISC.org>
Thu, 19 Apr 2012 16:13:42 +0000 (11:13 -0500)
committerJeremy C. Reed <jreed@ISC.org>
Thu, 19 Apr 2012 16:13:42 +0000 (11:13 -0500)
This fixes lettuce failure:

   Scenario: Delegation query for unsigned child zone                                                                      # features/queries.feature:106
     Given I have bind10 running with configuration example.org.inmem.config                                               # features/terrain/bind10_control.py:107
+    And wait for bind10 stderr message AUTH_SERVER_STARTED                                                                # features/terrain/steps.py:34
     A dnssec query for www.sub.example.org type AAAA should have rcode NOERROR                                            # features/terrain/querying.py:204
     Traceback (most recent call last):
       File "/usr/pkg/lib/python2.6/site-packages/lettuce/core.py", line 117, in __call__
         ret = self.function(self.step, *args, **kw)
       File "/home/reed/work/isc/bind10/git/bind10-CLEAN/tests/lettuce/features/terrain/querying.py", line 240, in query
         "Expected: " + rcode + ", got " + query_result.rcode
     AssertionError: Expected: NOERROR, got NO_ANSWER

This was discussed on jabber. (Maybe the cmdctl check is not needed,
but shouldn't hurt either.)

tests/lettuce/features/queries.feature

index f549f2d782b530c8655d2d8e1b248ef16f412213..de6f0fa4befaf3609fc5bce08f0d7814440fb7ca 100644 (file)
@@ -105,6 +105,9 @@ Feature: Querying feature
         """
     Scenario: Delegation query for unsigned child zone
         Given I have bind10 running with configuration example.org.inmem.config
+        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
         A dnssec query for www.sub.example.org type AAAA should have rcode NOERROR
         The last query response should have flags qr rd
         The last query response should have edns_flags do