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>
This commit is contained in:
Sanju Rakonde 2018-10-07 15:47:13 +05:30
parent 76bd93c7b8
commit 6a67094895

View File

@ -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