Browse Source

[2157] address occasional lettuce failure: add reply check for getstats command

Yoshitaka Aharen 12 years ago
parent
commit
1c470ce952
1 changed files with 22 additions and 0 deletions
  1. 22 0
      tests/lettuce/features/queries.feature

+ 22 - 0
tests/lettuce/features/queries.feature

@@ -20,6 +20,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_
@@ -47,6 +49,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_ except for the following items
@@ -84,6 +88,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_ except for the following items
@@ -109,6 +115,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_ except for the following items
@@ -138,6 +146,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_
@@ -163,6 +173,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_ except for the following items
@@ -183,6 +195,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_
@@ -204,6 +218,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_ except for the following items
@@ -236,6 +252,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_
@@ -245,6 +263,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_ except for the following items
@@ -266,6 +286,8 @@ Feature: Querying feature
 
         When I wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
         And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
+        And wait for new bind10 stderr message CC_REPLY
+        And wait for new bind10 stderr message "v4":
         Then I query statistics zones of bind10 module Auth
         And last bindctl output should not contain "error"
         The statistics counters are 0 in category .Auth.zones._SERVER_ except for the following items