diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 401c73cab085..c4d774e8be7a 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -216,7 +216,7 @@ jobs: --health-timeout 5s --health-retries 5 ports: - - 6381:6379 + - 6385:6379 env: REDIS_ARGS: "--requirepass passdefault" diff --git a/scripts/dependency_services/common.sh b/scripts/dependency_services/common.sh index 75f2754840e1..16b0281d825c 100644 --- a/scripts/dependency_services/common.sh +++ b/scripts/dependency_services/common.sh @@ -119,6 +119,9 @@ port_defs+=("REDIS_PORT:6379 REDIS_SSL_PORT:6380") services+=("redis-stack") port_defs+=("REDIS_STACK_PORT:6379") +services+=("redis-auth") +port_defs+=("REDIS_AUTH_PORT:6385") + services+=("grpcbin") port_defs+=("GRPCBIN_PORT:9000 GRPCBIN_SSL_PORT:9001") diff --git a/scripts/dependency_services/docker-compose-test-services.yml b/scripts/dependency_services/docker-compose-test-services.yml index 89fa458639fe..98d244d7be8f 100644 --- a/scripts/dependency_services/docker-compose-test-services.yml +++ b/scripts/dependency_services/docker-compose-test-services.yml @@ -45,13 +45,13 @@ services: redis-auth: image: redis/redis-stack-server ports: - - 127.0.0.1::6381 + - 127.0.0.1::6385 environment: - - REDIS_ARGS=--requirepass passdefault + - REDIS_ARGS=--requirepass passdefault --port 6385 volumes: - redis-auth-data:/data healthcheck: - test: ["CMD", "redis-cli", "--pass", "passdefault", "ping"] + test: ["CMD", "redis-cli", "-p", "6385", "--pass", "passdefault", "ping"] interval: 5s timeout: 10s retries: 10 diff --git a/spec/internal/constants.lua b/spec/internal/constants.lua index 34d1f897c2bc..755eb7945c75 100644 --- a/spec/internal/constants.lua +++ b/spec/internal/constants.lua @@ -29,7 +29,7 @@ local CONSTANTS = { REDIS_HOST = os.getenv("KONG_SPEC_TEST_REDIS_HOST") or "localhost", REDIS_PORT = tonumber(os.getenv("KONG_SPEC_TEST_REDIS_PORT") or 6379), REDIS_SSL_PORT = tonumber(os.getenv("KONG_SPEC_TEST_REDIS_SSL_PORT") or 6380), - REDIS_AUTH_PORT = tonumber(os.getenv("KONG_SPEC_TEST_REDIS_AUTH_PORT") or 6381), + REDIS_AUTH_PORT = tonumber(os.getenv("KONG_SPEC_TEST_REDIS_AUTH_PORT") or 6385), REDIS_SSL_SNI = os.getenv("KONG_SPEC_TEST_REDIS_SSL_SNI") or "test-redis.example.com", TEST_COVERAGE_MODE = os.getenv("KONG_COVERAGE"), TEST_COVERAGE_TIMEOUT = 30,