diff options
author | Kotresh HR <khiremat@redhat.com> | 2019-06-04 15:10:39 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-06 05:17:07 +0000 |
commit | 76673e983b7eb849011b3fb4417cf1d5f7147352 (patch) | |
tree | 38fd0a0d67ca5b257e7aee6933632c890cbcf905 /tests/geo-rep.rc | |
parent | 3949d241e8504b1c5226d0e6f6e06a2a12d8357c (diff) |
tests/geo-rep: Add geo-rep cli testcases
Change-Id: Icf93b90bcac022a355d4718220698987dbc91ecf
Signed-off-by: Kotresh HR <khiremat@redhat.com>
updates: bz#1693692
Diffstat (limited to 'tests/geo-rep.rc')
-rw-r--r-- | tests/geo-rep.rc | 12 |
1 files changed, 12 insertions, 0 deletions
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 |