summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGaurav Kumar Garg <ggarg@redhat.com>2015-03-06 16:11:16 +0530
committerKaushal M <kaushal@redhat.com>2015-04-01 05:50:44 -0700
commit2b949eb89e8ca22d2928c05d549b6f722adf1544 (patch)
tree655a1c35ed0d73cd4d3d15f2bcb651250ea6be35 /tests
parent59b1c24c81fe6aa0721a5a60de15b8978c3690ea (diff)
glusterd: gluster command should retrieve current op-version of the NODE
Problem: glusterd was failing to get some specific volume option. for eg: gluster volume get <vol-name> cluster.op-version Fix: glusterd should set count value in dictionary while retrieving specific volume option. Change-Id: Iada768ea3d8a0006895525eca2c2dcc40432a4ea BUG: 1199451 Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com> Reviewed-on: http://review.gluster.org/9821 Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/glusterd/bug-1199451-op-version-retrieving-fix.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs/glusterd/bug-1199451-op-version-retrieving-fix.t b/tests/bugs/glusterd/bug-1199451-op-version-retrieving-fix.t
new file mode 100644
index 00000000000..43661b67628
--- /dev/null
+++ b/tests/bugs/glusterd/bug-1199451-op-version-retrieving-fix.t
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+## Test case for BZ-1199451 (gluster command should retrieve current op-version
+## of the NODE)
+
+. $(dirname $0)/../../include.rc
+. $(dirname $0)/../../volume.rc
+
+cleanup;
+
+## Start glusterd
+TEST glusterd
+TEST pidof glusterd
+
+## Lets create and start volume
+TEST $CLI volume create $V0 $H0:$B0/brick1 $H0:$B0/brick2
+TEST $CLI volume start $V0
+
+## glusterd command should retrieve current op-version of the node
+TEST $CLI volume get $V0 cluster.op-version
+
+cleanup;