summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2019-06-04 15:10:39 +0530
committerAmar Tumballi <amarts@redhat.com>2019-06-06 05:17:07 +0000
commit76673e983b7eb849011b3fb4417cf1d5f7147352 (patch)
tree38fd0a0d67ca5b257e7aee6933632c890cbcf905
parent3949d241e8504b1c5226d0e6f6e06a2a12d8357c (diff)
tests/geo-rep: Add geo-rep cli testcases
Change-Id: Icf93b90bcac022a355d4718220698987dbc91ecf Signed-off-by: Kotresh HR <khiremat@redhat.com> updates: bz#1693692
-rw-r--r--tests/00-geo-rep/01-georep-glusterd-tests.t7
-rw-r--r--tests/geo-rep.rc12
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