ctdb-tests: Fix and extend read-only records test
authorMartin Schwenke <martin@meltin.net>
Thu, 27 Mar 2014 05:26:21 +0000 (16:26 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 28 Mar 2014 04:55:13 +0000 (05:55 +0100)
commitaa7cd51bbc438555552584a7d71f5bae6909603f
tree636cf118365f3d736d719b46e2378721637f1c25
parent234f8eb5712c38872444c5dd7a258903b389b062
ctdb-tests: Fix and extend read-only records test

This test currently counts the number of read-only-enabled databases
and expects there to only be 1.  It fails when there are existing
databases with read-only already enabled.  Instead, check just the
test database.

Clean up the test by adding some functions to check for precisely the
read-only flags that should be set on a node after each operation.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/75_readonly_records_basic.sh