ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.writekey.001.sh
blob7adee9fb98d7ac104a8c416ce1b4b8ab19f0cc80
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "volatile write"
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
12 EOF
14 ok_null
15 simple_test_other attach "volatile.tdb"
17 ok_null
18 simple_test "volatile.tdb" "key1" "value1"
20 ok <<EOF
21 Data: size:6 ptr:[value1]
22 EOF
23 simple_test_other readkey "volatile.tdb" "key1"
25 ok_null
26 simple_test "volatile.tdb" "key1" "a new value"
28 ok <<EOF
29 Data: size:11 ptr:[a new value]
30 EOF
31 simple_test_other readkey "volatile.tdb" "key1"