From af4d9131c8d09907853ee2f6e30b2a9bd80f3c84 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 23 Apr 2019 12:41:32 +0530 Subject: cli: Validate invalid slave url This patch validates the invalid slave url in cli itself and throws appropriate error. fixes: bz#1098991 Change-Id: I278e2a04a4d619d2c2d1db0dd56ab5bdf7e7f469 Signed-off-by: Kotresh HR --- tests/00-geo-rep/00-georep-verify-setup.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/00-geo-rep') diff --git a/tests/00-geo-rep/00-georep-verify-setup.t b/tests/00-geo-rep/00-georep-verify-setup.t index 267d9336f89..cfe912120c0 100644 --- a/tests/00-geo-rep/00-georep-verify-setup.t +++ b/tests/00-geo-rep/00-georep-verify-setup.t @@ -51,6 +51,10 @@ TEST glusterfs -s $H0 --volfile-id $GSV0 $M1 #BASIC GEO-REPLICATION TESTS ############################################################ +#Test invalid slave url +TEST ! $GEOREP_CLI $master ${SH0}:${GSV0} create push-pem +TEST ! $GEOREP_CLI $master ${SH0}:::${GSV0} create push-pem + #Create geo-rep session TEST create_georep_session $master $slave -- cgit