ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.getdbstatus.001.sh
blob5a2b79e0b6f6ccf21ad778c3384b4ce520fc7bc0
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "by ID"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x0 CURRENT RECMASTER
10 1 192.168.20.42 0x0
11 2 192.168.20.43 0x0
13 DBMAP
14 0x7a19d84d locking.tdb READONLY
15 0x4e66c2b2 brlock.tdb STICKY
16 0x4d2a432b g_lock.tdb
17 0x7132c184 secrets.tdb PERSISTENT
18 0x6cf2837d registry.tdb PERSISTENT 42
19 0xbc57b384 ctdb-ip.tdb REPLICATED
20 0xbec75f0b ctdb-conn.tdb REPLICATED 23
21 EOF
23 ok <<EOF
24 dbid: 0x7a19d84d
25 name: locking.tdb
26 path: ${ctdbd_dbdir}/locking.tdb
27 PERSISTENT: no
28 REPLICATED: no
29 STICKY: no
30 READONLY: yes
31 HEALTH: OK
32 EOF
33 simple_test 0x7a19d84d
35 ok <<EOF
36 dbid: 0x4e66c2b2
37 name: brlock.tdb
38 path: ${ctdbd_dbdir}/brlock.tdb
39 PERSISTENT: no
40 REPLICATED: no
41 STICKY: yes
42 READONLY: no
43 HEALTH: OK
44 EOF
45 simple_test 0x4e66c2b2
47 ok <<EOF
48 dbid: 0x4d2a432b
49 name: g_lock.tdb
50 path: ${ctdbd_dbdir}/g_lock.tdb
51 PERSISTENT: no
52 REPLICATED: no
53 STICKY: no
54 READONLY: no
55 HEALTH: OK
56 EOF
57 simple_test 0x4d2a432b
59 ok <<EOF
60 dbid: 0x7132c184
61 name: secrets.tdb
62 path: ${ctdbd_dbdir}/secrets.tdb
63 PERSISTENT: yes
64 REPLICATED: no
65 STICKY: no
66 READONLY: no
67 HEALTH: OK
68 EOF
69 simple_test 0x7132c184
71 ok <<EOF
72 dbid: 0x6cf2837d
73 name: registry.tdb
74 path: ${ctdbd_dbdir}/registry.tdb
75 PERSISTENT: yes
76 REPLICATED: no
77 STICKY: no
78 READONLY: no
79 HEALTH: OK
80 EOF
81 simple_test 0x6cf2837d
83 ok <<EOF
84 dbid: 0xbc57b384
85 name: ctdb-ip.tdb
86 path: ${ctdbd_dbdir}/ctdb-ip.tdb
87 PERSISTENT: no
88 REPLICATED: yes
89 STICKY: no
90 READONLY: no
91 HEALTH: OK
92 EOF
93 simple_test 0xbc57b384
95 ok <<EOF
96 dbid: 0xbec75f0b
97 name: ctdb-conn.tdb
98 path: ${ctdbd_dbdir}/ctdb-conn.tdb
99 PERSISTENT: no
100 REPLICATED: yes
101 STICKY: no
102 READONLY: no
103 HEALTH: OK
105 simple_test 0xbec75f0b
107 required_result 1 "No database matching '0xdeadc0de' found"
108 simple_test 0xdeadc0de