diff options
author | Kotresh HR <khiremat@redhat.com> | 2019-06-03 13:25:16 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-04 06:24:38 +0000 |
commit | d8bb432eb776f3a8708ed6cacf1c19fca9524d51 (patch) | |
tree | 7f9888518c95b67586861cc339394b625e131eca /tests/geo-rep.rc | |
parent | 0687befd3332111c7522766aa437ce5166771d0b (diff) |
tests/geo-rep: Add geo-rep glusterd test cases
1. Add geo-rep fanout test case
2. Add glusterd geo-rep negative test cases
3. Add glusterd geo-rep config test cases
Change-Id: I856c087eb3216d8f0ffd1f266deac88e9a4effec
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 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/geo-rep.rc b/tests/geo-rep.rc index e4f014eb6f8..83a33939dd0 100644 --- a/tests/geo-rep.rc +++ b/tests/geo-rep.rc @@ -6,6 +6,25 @@ function check_status_num_rows() $GEOREP_CLI $master $slave status | grep -F "$search_key" | wc -l } +function check_fanout_status_num_rows() +{ + local search_key=$1 + $GEOREP_CLI $master status | 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 verify_checkpoint_met() +{ + local master=$1 + local slave=$2 + $GEOREP_CLI $master $slave status detail| grep -F "Yes" | wc -l +} + function check_keys_distributed() { local search_key=$(cat /var/lib/glusterd/geo-replication/master_slave_common_secret.pem.pub) |