Skip to content

Commit

Permalink
Update tests to use new SSL script
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby committed Sep 10, 2023
1 parent 89c473a commit 7e2c6a3
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 308 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Fetch Repository
uses: actions/checkout@v4

- name: Generate TLS certs
run: ./.github/scripts/gen-test-certs.sh

- name: Setup Redis
uses: shogo82148/actions-setup-redis@v1
with:
Expand All @@ -36,9 +39,9 @@ jobs:
- name: Run Redis
run: |
redis-server --tls-port 6380 --port 6379 \
--tls-cert-file ./redis/tests/tls/redis.crt \
--tls-key-file ./redis/tests/tls/redis.key \
--tls-ca-cert-file ./redis/tests/tls/ca.crt&
--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 &
- name: Setup Redis Cluster
uses: vishnudxb/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion redis/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func Test_Redis_Initalize_WithURL(t *testing.T) {
}

func Test_Redis_Initalize_WithURL_TLS(t *testing.T) {
cer, err := tls.LoadX509KeyPair("./tests/tls/client.crt", "./tests/tls/client.key")
cer, err := tls.LoadX509KeyPair("/home/runner/work/storage/storage/tls/client.crt", "/home/runner/work/storage/storage/tls/client.key")
if err != nil {
log.Println(err)
return
Expand Down
57 changes: 0 additions & 57 deletions redis/tests/gen-test-certs.sh

This file was deleted.

29 changes: 0 additions & 29 deletions redis/tests/tls/ca.crt

This file was deleted.

51 changes: 0 additions & 51 deletions redis/tests/tls/ca.key

This file was deleted.

1 change: 0 additions & 1 deletion redis/tests/tls/ca.txt

This file was deleted.

24 changes: 0 additions & 24 deletions redis/tests/tls/client.crt

This file was deleted.

27 changes: 0 additions & 27 deletions redis/tests/tls/client.key

This file was deleted.

6 changes: 0 additions & 6 deletions redis/tests/tls/openssl.cnf

This file was deleted.

23 changes: 0 additions & 23 deletions redis/tests/tls/redis.crt

This file was deleted.

8 changes: 0 additions & 8 deletions redis/tests/tls/redis.dh

This file was deleted.

27 changes: 0 additions & 27 deletions redis/tests/tls/redis.key

This file was deleted.

24 changes: 0 additions & 24 deletions redis/tests/tls/server.crt

This file was deleted.

27 changes: 0 additions & 27 deletions redis/tests/tls/server.key

This file was deleted.

0 comments on commit 7e2c6a3

Please sign in to comment.