1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-tests: Add machinereadable output tests

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2016-07-26 13:30:18 +10:00 committed by Stefan Metzmacher
parent 5d34755be3
commit dc065b1f35
4 changed files with 32 additions and 4 deletions

View File

@ -22,5 +22,12 @@ pnn:0 192.168.20.41 OK
pnn:1 192.168.20.42 OK
pnn:2 192.168.20.43 OK (THIS NODE)
EOF
simple_test all
required_result 0 <<EOF
|Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
|0|192.168.20.41|0|0|0|0|0|0|0|N|
|1|192.168.20.42|0|0|0|0|0|0|0|N|
|2|192.168.20.43|0|0|0|0|0|0|0|Y|
EOF
simple_test -X all

View File

@ -22,5 +22,12 @@ pnn:0 192.168.20.41 OK
pnn:1 192.168.20.42 DISCONNECTED|INACTIVE
pnn:2 192.168.20.43 OK (THIS NODE)
EOF
simple_test all
required_result 1 <<EOF
|Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
|0|192.168.20.41|0|0|0|0|0|0|0|N|
|1|192.168.20.42|1|0|0|0|0|1|0|N|
|2|192.168.20.43|0|0|0|0|0|0|0|Y|
EOF
simple_test -X all

View File

@ -35,5 +35,12 @@ hash:2 lmaster:2
Recovery mode:NORMAL (0)
Recovery master:0
EOF
simple_test
required_result 0 <<EOF
|Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
|0|192.168.20.41|0|0|0|0|0|0|0|Y|
|1|192.168.20.42|0|0|0|0|0|0|0|N|
|2|192.168.20.43|0|0|0|0|0|0|0|N|
EOF
simple_test -X

View File

@ -35,5 +35,12 @@ hash:2 lmaster:2
Recovery mode:NORMAL (0)
Recovery master:1
EOF
simple_test
required_result 0 <<EOF
|Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
|0|192.168.20.41|0|0|0|1|0|0|0|N|
|1|192.168.20.42|0|0|0|0|0|0|0|Y|
|2|192.168.20.43|0|0|0|0|0|0|0|N|
EOF
simple_test -X