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:
parent
5d34755be3
commit
dc065b1f35
@ -22,5 +22,12 @@ pnn:0 192.168.20.41 OK
|
|||||||
pnn:1 192.168.20.42 OK
|
pnn:1 192.168.20.42 OK
|
||||||
pnn:2 192.168.20.43 OK (THIS NODE)
|
pnn:2 192.168.20.43 OK (THIS NODE)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
simple_test all
|
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
|
||||||
|
@ -22,5 +22,12 @@ pnn:0 192.168.20.41 OK
|
|||||||
pnn:1 192.168.20.42 DISCONNECTED|INACTIVE
|
pnn:1 192.168.20.42 DISCONNECTED|INACTIVE
|
||||||
pnn:2 192.168.20.43 OK (THIS NODE)
|
pnn:2 192.168.20.43 OK (THIS NODE)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
simple_test all
|
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
|
||||||
|
@ -35,5 +35,12 @@ hash:2 lmaster:2
|
|||||||
Recovery mode:NORMAL (0)
|
Recovery mode:NORMAL (0)
|
||||||
Recovery master:0
|
Recovery master:0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
simple_test
|
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
|
||||||
|
@ -35,5 +35,12 @@ hash:2 lmaster:2
|
|||||||
Recovery mode:NORMAL (0)
|
Recovery mode:NORMAL (0)
|
||||||
Recovery master:1
|
Recovery master:1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
simple_test
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user