Commit c0acd591 authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[2252] add exceptional cases for checking initial statistics of Xfrout

.Xfrout.socket.unixdomain.open should be 1 immediately after Xfrout started.
But Stats could not have the latest statistics of Xfrout if it requests until
Xfrout is ready for accepting a statistics request from Stats.  Thus in that
case, Stats would show that .Xfrout.socket.unixdomain.open is 1.  For checking
exactly that .Xfrout.socket.unixdomain.open is 1 here, it waits for the second
time until Stats requests all modules which are Auth, Init, and Xfrout.  The
Stats configuration "poll-interval" is changed to one second so that timeout in
the lettuce test is avoided.
parent 51be9284
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
"port": 47806 "port": 47806
} ] } ]
}, },
"Stats": {
"poll-interval": 1
},
"Init": { "Init": {
"components": { "components": {
"b10-auth": { "kind": "needed", "special": "auth" }, "b10-auth": { "kind": "needed", "special": "auth" },
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
"port": 47806 "port": 47806
} ] } ]
}, },
"Stats": {
"poll-interval": 1
},
"Init": { "Init": {
"components": { "components": {
"b10-auth": { "kind": "needed", "special": "auth" }, "b10-auth": { "kind": "needed", "special": "auth" },
......
...@@ -27,7 +27,10 @@ Feature: Xfrin incoming notify handling ...@@ -27,7 +27,10 @@ Feature: Xfrin incoming notify handling
# #
# Test1 for Xfrout statistics # Test1 for Xfrout statistics
# #
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 wait for master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
| item_name | item_value |
| socket.unixdomain.open | 1 |
# #
# Test2 for Xfrin statistics # Test2 for Xfrin statistics
...@@ -126,7 +129,10 @@ Feature: Xfrin incoming notify handling ...@@ -126,7 +129,10 @@ Feature: Xfrin incoming notify handling
# #
# Test1 for Xfrout statistics # Test1 for Xfrout statistics
# #
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 wait for master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
| item_name | item_value |
| socket.unixdomain.open | 1 |
# #
# Test2 for Xfrin statistics # Test2 for Xfrin statistics
# #
...@@ -224,7 +230,10 @@ Feature: Xfrin incoming notify handling ...@@ -224,7 +230,10 @@ Feature: Xfrin incoming notify handling
# #
# Test1 for Xfrout statistics # Test1 for Xfrout statistics
# #
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 wait for master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
| item_name | item_value |
| socket.unixdomain.open | 1 |
# #
# Test2 for Xfrin statistics # Test2 for Xfrin statistics
...@@ -327,7 +336,10 @@ Feature: Xfrin incoming notify handling ...@@ -327,7 +336,10 @@ Feature: Xfrin incoming notify handling
# #
# Test1 for Xfrout statistics # Test1 for Xfrout statistics
# #
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 wait for master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
| item_name | item_value |
| socket.unixdomain.open | 1 |
# #
# Test2 for Xfrin statistics # Test2 for Xfrin statistics
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment