s3:script/tests: add a test for VSS write behaviour
[Samba.git] / ctdb / tests / tool / ctdb.attach.001.sh
blob82c333282a993e174bf188015017347611f642ba
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "attach volatile database"
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 "volatile.tdb"
17 ok <<EOF
18 Number of databases:1
19 dbid:0x211bf47b name:volatile.tdb path:${ctdbd_dbdir}/volatile.tdb
20 EOF
22 simple_test_other getdbmap
24 ok <<EOF
25 dbid: 0x211bf47b
26 name: volatile.tdb
27 path: ${ctdbd_dbdir}/volatile.tdb
28 PERSISTENT: no
29 REPLICATED: no
30 STICKY: no
31 READONLY: no
32 HEALTH: OK
33 EOF
35 simple_test_other getdbstatus "volatile.tdb"