summaryrefslogtreecommitdiffstats
path: root/tests/00-geo-rep
diff options
context:
space:
mode:
authorShwetha K Acharya <sacharya@redhat.com>2019-04-01 17:04:01 +0530
committerAtin Mukherjee <amukherj@redhat.com>2019-04-24 15:23:01 +0000
commit1b9b0c2db9b54cddf817bde95a43894a91440b35 (patch)
treebbc15b8e5cd3a8c9532d8e27cc8f913d6a3d72b1 /tests/00-geo-rep
parent7d2c1abd25353ae4f1fe86f6d851b9a0cc93d2f6 (diff)
tests/geo-rep: Add pause and resume test case for geo-rep
Added pause and resume test case for geo-rep fixes: bz#1696077 Change-Id: Ib6fcc1926c3be1263bca1235194f737b895c8333 Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
Diffstat (limited to 'tests/00-geo-rep')
-rw-r--r--tests/00-geo-rep/00-georep-verify-setup.t6
-rw-r--r--tests/00-geo-rep/georep-basic-dr-rsync-arbiter.t6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/00-geo-rep/00-georep-verify-setup.t b/tests/00-geo-rep/00-georep-verify-setup.t
index 8cbf203..267d933 100644
--- a/tests/00-geo-rep/00-georep-verify-setup.t
+++ b/tests/00-geo-rep/00-georep-verify-setup.t
@@ -82,6 +82,12 @@ TEST pidof glusterd
TEST $CLI get-state detail
TEST pidof glusterd
+#Pause geo-replication session
+TEST $GEOREP_CLI $master $slave pause
+
+#Resume geo-replication session
+TEST $GEOREP_CLI $master $slave resume
+
#Stop Geo-rep
TEST $GEOREP_CLI $master $slave stop
diff --git a/tests/00-geo-rep/georep-basic-dr-rsync-arbiter.t b/tests/00-geo-rep/georep-basic-dr-rsync-arbiter.t
index 67ac167..eab12ee 100644
--- a/tests/00-geo-rep/georep-basic-dr-rsync-arbiter.t
+++ b/tests/00-geo-rep/georep-basic-dr-rsync-arbiter.t
@@ -206,6 +206,12 @@ TEST "echo sampledata > $master_mnt/rsync_option_test_file"
#Verify arequal for whole volume
EXPECT_WITHIN $GEO_REP_TIMEOUT 0 arequal_checksum ${master_mnt} ${slave_mnt}
+#Pause geo-replication session
+TEST $GEOREP_CLI $master $slave pause force
+
+#Resume geo-replication session
+TEST $GEOREP_CLI $master $slave resume force
+
#Stop Geo-rep
TEST $GEOREP_CLI $master $slave stop