Parcourir la source

[1290] use the newly added log message of cmdctl

otherwise, bindctl could fail because it tries to send commands if cmdctl is not listening yet
Jelte Jansen il y a 13 ans
Parent
commit
f17fad51f1
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      tests/lettuce/features/server_from_sqlite3.feature

+ 7 - 0
tests/lettuce/features/server_from_sqlite3.feature

@@ -18,8 +18,15 @@ Feature: SQLite3 backend
         A query for doesnotexist.example.org should have rcode NXDOMAIN
 
     Scenario: changing database
+        # This scenario contains a lot of 'wait for' steps
+        # If those are not present, the asynchronous nature of the application
+        # can cause some of the things we send to be handled out of order;
+        # for instance auth could still be serving the old zone when we send
+        # the new query, or already respond from the new database.
+        # Therefore we wait for specific log messages after each operation
         When I start bind10 with configuration example.org.config
         Then wait for bind10 auth to start
+        Wait for log message CMDCTL_STARTED
         A query for www.example.org should have rcode NOERROR
         Wait for log message AUTH_SEND_NORMAL_RESPONSE
         Then set bind10 configuration Auth/database_file to data/empty_db.sqlite3