drsuapi.idl: fix source_dsa spelling
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.ptrans.001.sh
blob40ef1a2d2d421ed62d0426fc817f3148e922b4e2
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "persistent transactions"
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 "persistent.tdb" persistent
17 ok_null
18 simple_test_other pstore "persistent.tdb" "key0" "value0"
20 ok_null
21 simple_test "persistent.tdb" <<EOF
22 "key1" "value1"
23 "key2" "value2"
24 "key1" ""
25 "key2" "value3"
26 EOF
28 ok "value0"
29 simple_test_other pfetch "persistent.tdb" "key0"
31 ok_null
32 simple_test_other pfetch "persistent.tdb" "key1"
34 ok "value3"
35 simple_test_other pfetch "persistent.tdb" "key2"
37 ok "0x2"
38 simple_test_other getdbseqnum "persistent.tdb"
40 ok_null
41 simple_test "persistent.tdb" <<EOF
42 "key0" "value0"
43 EOF
45 ok "value0"
46 simple_test_other pfetch "persistent.tdb" "key0"
48 ok "0x2"
49 simple_test_other getdbseqnum "persistent.tdb"