summaryrefslogtreecommitdiffstats
path: root/tests/cluster.rc
diff options
context:
space:
mode:
authornik-redhat <nladha@redhat.com>2020-05-26 18:45:46 +0530
committerSanju Rakonde <sanjurakonde@review.gluster.org>2020-07-06 13:15:18 +0000
commitf77f8c7c603069071d7a609adce3ed9bc1131c37 (patch)
treebcab1a1cd524f3d85a2079158cfdaf4c3b9367c2 /tests/cluster.rc
parentd03493e136e799450b5c975a715ec135c3434245 (diff)
tests: added volume operations to increase code coverage
Added test for volume options like localtime-logging, fixed enable-shared-storage to include function coverage and few negative tests for other volume options to increase the code coverage in the glusterd component. Change-Id: Ib1706c1fd5bc98a64dcb5c8b15a121d639a597d7 Updates: #1052 Signed-off-by: nik-redhat <nladha@redhat.com>
Diffstat (limited to 'tests/cluster.rc')
-rw-r--r--tests/cluster.rc14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc
index 96ca722f273..34f5b02398f 100644
--- a/tests/cluster.rc
+++ b/tests/cluster.rc
@@ -90,6 +90,20 @@ function kill_glusterd() {
kill `cat $pidfile`;
}
+function restart_glusterd() {
+ local index=$1
+ local b
+ local pidfile
+ local g
+
+ b="B$index"
+ pidfile="${!b}/glusterd.pid"
+
+ kill `cat $pidfile`
+
+ g="glusterd_${index}"
+ ${!g}
+}
function kill_node() {
local index=$1;