tests: Can't setup replication slave without master host

This commit is contained in:
Sameer Naik
2015-11-17 20:06:42 +05:30
parent 015cab4874
commit 8462e6ac20

View File

@@ -106,3 +106,10 @@ cleanup_environment
run redis_client default -a $REDIS_PASSWORD get winter
[[ "$output" =~ "is coming" ]]
}
@test "Can't setup replication slave without master host" {
# create replication slave without specifying REDIS_MASTER_HOST
run container_create slave0 \
-e REDIS_REPLICATION_MODE=slave
[[ "$output" =~ "you need to provide the REDIS_MASTER_HOST" ]]
}