ctdb-tools: Add database config options to config tool
[metze/samba/wip.git] / ctdb / tests / cunit / config_test_001.sh
index 084f1a3b29d391984a6191425b296624f17aeb54..3627122baeb1200558cec303e37cb08b54b30239 100755 (executable)
@@ -17,11 +17,31 @@ test_cleanup remove_files
 
 # Get the default values that are dependent on install prefix
 logging_location=$(ctdb-config get "logging" "location")
+database_volatile_dbdir=$(ctdb-config get \
+                                     "database" \
+                                     "volatile database directory")
+database_persistent_dbdir=$(ctdb-config get \
+                                       "database" \
+                                       "persistent database directory")
+database_state_dbdir=$(ctdb-config get \
+                                  "database" \
+                                  "state database directory")
 
 ok <<EOF
 [logging]
        # location = ${logging_location}
        # log level = ERROR
+[cluster]
+       # transport = tcp
+       # node address = 
+       # recovery lock = 
+[database]
+       # volatile database directory = ${database_volatile_dbdir}
+       # persistent database directory = ${database_persistent_dbdir}
+       # state database directory = ${database_state_dbdir}
+       # lock debug script = 
+[event]
+       # debug script = 
 EOF
 unit_test ctdb-config dump