diff options
-rw-r--r-- | tests/00-geo-rep/01-georep-glusterd-tests.t | 7 | ||||
-rw-r--r-- | tests/geo-rep.rc | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/00-geo-rep/01-georep-glusterd-tests.t b/tests/00-geo-rep/01-georep-glusterd-tests.t index 95b26a704d0..2960a55c587 100644 --- a/tests/00-geo-rep/01-georep-glusterd-tests.t +++ b/tests/00-geo-rep/01-georep-glusterd-tests.t @@ -124,8 +124,15 @@ EXPECT_WITHIN $GEO_REP_TIMEOUT 2 check_status_num_rows "Passive" EXPECT_WITHIN $GEO_REP_TIMEOUT 2 check_fanout_status_num_rows "Active" EXPECT_WITHIN $GEO_REP_TIMEOUT 4 check_fanout_status_num_rows "Passive" +EXPECT_WITHIN $GEO_REP_TIMEOUT 2 check_fanout_status_detail_num_rows "Active" +EXPECT_WITHIN $GEO_REP_TIMEOUT 4 check_fanout_status_detail_num_rows "Passive" + EXPECT_WITHIN $GEO_REP_TIMEOUT 2 check_all_status_num_rows "Active" EXPECT_WITHIN $GEO_REP_TIMEOUT 4 check_all_status_num_rows "Passive" + +EXPECT_WITHIN $GEO_REP_TIMEOUT 2 check_all_status_detail_num_rows "Active" +EXPECT_WITHIN $GEO_REP_TIMEOUT 4 check_all_status_detail_num_rows "Passive" + ##------------------- Fanout status testcases End --------------## ##------Checkpoint Testcase Begin---------------## diff --git a/tests/geo-rep.rc b/tests/geo-rep.rc index 83a33939dd0..84c2c2251c0 100644 --- a/tests/geo-rep.rc +++ b/tests/geo-rep.rc @@ -12,12 +12,24 @@ function check_fanout_status_num_rows() $GEOREP_CLI $master status | grep -F "$search_key" | wc -l } +function check_fanout_status_detail_num_rows() +{ + local search_key=$1 + $GEOREP_CLI $master status detail | grep -F "$search_key" | wc -l +} + function check_all_status_num_rows() { local search_key=$1 $GEOREP_CLI status | grep -F "$search_key" | wc -l } +function check_all_status_detail_num_rows() +{ + local search_key=$1 + $GEOREP_CLI status detail | grep -F "$search_key" | wc -l +} + function verify_checkpoint_met() { local master=$1 |