summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2018-10-07 15:47:13 +0530
committerSanju Rakonde <srakonde@redhat.com>2018-10-07 12:23:18 +0000
commit6a6709489525e2c438a3ec1974771247bc2e07d4 (patch)
tree420c09c92970f328ccf5ed77809c09021698859c
parent76bd93c7b889deafd4d5e1e9387714a6c1918ac7 (diff)
tests: add get-state command to test
When geo-replication session is running, run "gluster get-state" command to test. https://review.gluster.org/#/c/glusterfs/+/20461/ patch fixes glusterd crash, when we run get-state command with geo-rep session configured. Adding the test now. Fixes: bz#1598345 Change-Id: I56283fba2c782f83669923ddfa4af3400255fed6 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
-rw-r--r--tests/00-geo-rep/00-georep-verify-setup.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/00-geo-rep/00-georep-verify-setup.t b/tests/00-geo-rep/00-georep-verify-setup.t
index ea22d375157..8cbf203a207 100644
--- a/tests/00-geo-rep/00-georep-verify-setup.t
+++ b/tests/00-geo-rep/00-georep-verify-setup.t
@@ -75,6 +75,13 @@ TEST $GEOREP_CLI $master $slave start
EXPECT_WITHIN $GEO_REP_TIMEOUT 2 check_status_num_rows "Active"
EXPECT_WITHIN $GEO_REP_TIMEOUT 2 check_status_num_rows "Passive"
+#get-state commamd shouldn't crash glusterd when geo-rep session is configured
+TEST $CLI get-state
+TEST pidof glusterd
+
+TEST $CLI get-state detail
+TEST pidof glusterd
+
#Stop Geo-rep
TEST $GEOREP_CLI $master $slave stop