From 6a6709489525e2c438a3ec1974771247bc2e07d4 Mon Sep 17 00:00:00 2001 From: Sanju Rakonde Date: Sun, 7 Oct 2018 15:47:13 +0530 Subject: 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 --- tests/00-geo-rep/00-georep-verify-setup.t | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/00-geo-rep') 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 -- cgit