mirror of
https://github.com/bitnami/containers.git
synced 2026-03-07 18:17:20 +08:00
tests: Can't setup replication slave without master host
This commit is contained in:
@@ -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" ]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user