From 76673e983b7eb849011b3fb4417cf1d5f7147352 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 4 Jun 2019 15:10:39 +0530 Subject: tests/geo-rep: Add geo-rep cli testcases Change-Id: Icf93b90bcac022a355d4718220698987dbc91ecf Signed-off-by: Kotresh HR updates: bz#1693692 --- tests/geo-rep.rc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/geo-rep.rc') diff --git a/tests/geo-rep.rc b/tests/geo-rep.rc index 83a33939dd..84c2c2251c 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 -- cgit