summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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;