diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml index 8ddc76e6..507ea8d6 100644 --- a/.github/workflows/test-redis.yml +++ b/.github/workflows/test-redis.yml @@ -39,8 +39,6 @@ jobs: with: redis-version: ${{ matrix.redis }} auto-start: 'false' - redis-port: '6379' - redis-tls-port: '6380' - name: Run Redis run: | @@ -49,6 +47,14 @@ jobs: --tls-key-file /home/runner/work/storage/storage/tls/redis.key \ --tls-ca-cert-file /home/runner/work/storage/storage/tls/ca.crt & + - name: Run Redis instance with MTLS disabled + run: | + redis-server --tls-port 16380 --port 16379 \ + --tls-cert-file /home/runner/work/storage/storage/tls/redis.crt \ + --tls-key-file /home/runner/work/storage/storage/tls/redis.key \ + --tls-ca-cert-file /home/runner/work/storage/storage/tls/ca.crt \ + --tls-auth-clients no & + - name: Setup Redis Cluster uses: vishnudxb/redis-cluster@1.0.8 with: diff --git a/redis/redis_test.go b/redis/redis_test.go index 0500724b..0c2d2488 100644 --- a/redis/redis_test.go +++ b/redis/redis_test.go @@ -233,7 +233,7 @@ func Test_Redis_Initalize_WithURL_TLS_Verify(t *testing.T) { func Test_Redis_Initalize_With_Secure_URL(t *testing.T) { testStoreUrl := New(Config{ - URL: "rediss://localhost:6380", + URL: "rediss://localhost:16380", }) var (