source: vendor/current/ctdb/tests/onnode/0072.sh

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 597 bytes
Line 
1#!/bin/sh
2
3. "${TEST_SCRIPTS_DIR}/unit.sh"
4
5cmd="$ONNODE ok hostname"
6
7define_test "$cmd" "2nd node disconnected, extra status columns"
8
9ctdb_set_output <<EOF
10|Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|X1|X2|X3|X4|
11|0|192.168.1.101|0|0|0|0|0|0|0|0|0|0|
12|1|192.168.1.102|1|0|0|0|0|0|0|0|0|0|
13|2|192.168.1.103|0|0|0|0|0|0|0|0|0|0|
14|3|192.168.1.104|0|0|0|0|0|0|0|0|0|0|
15EOF
16
17required_result <<EOF
18
19>> NODE: 192.168.1.101 <<
20-n 192.168.1.101 hostname
21
22>> NODE: 192.168.1.103 <<
23-n 192.168.1.103 hostname
24
25>> NODE: 192.168.1.104 <<
26-n 192.168.1.104 hostname
27EOF
28
29simple_test $cmd
Note: See TracBrowser for help on using the repository browser.