Add instance of Redis without MTLS to workflow

This commit is contained in:
Juan Calderon-Perez
2023-09-09 22:44:46 -04:00
parent e41f3e4131
commit 78cfcf3206
2 changed files with 9 additions and 3 deletions

View File

@@ -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:

View File

@@ -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 (