From 20c7461c7b3ac84fd4a09b8cd74de7baa2d0df9f Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Fri, 14 Feb 2020 12:35:47 +0100 Subject: [PATCH] Fixed test failures because of missing cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When running tests with ´test.sh´ some errors where logged because now redis-cache instance was running. --- docker-compose.test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 9420617..5ccd92a 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -5,6 +5,7 @@ services: depends_on: - postgres - redis + - redis-cache env_file: env/netbox.env user: '101' volumes: @@ -34,8 +35,15 @@ services: command: - sh - -c # this is to evaluate the $REDIS_PASSWORD from the env - - redis-server --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose + - redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose env_file: env/redis.env + redis-cache: + image: redis:5-alpine + command: + - sh + - -c # this is to evaluate the $REDIS_PASSWORD from the env + - redis-server --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose + env_file: env/redis-cache.env volumes: netbox-static-files: driver: local