Skip to content

Commit

Permalink
tests(plugins/rate-limiting) test cases for Redis TLS support
Browse files Browse the repository at this point in the history
  • Loading branch information
ADD-SP authored and dndx committed Apr 11, 2022
1 parent 476c42a commit 6f1e4f5
Show file tree
Hide file tree
Showing 11 changed files with 1,654 additions and 1,323 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ jobs:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
- 6380:6380
options: >-
--name kong_redis
zipkin:
image: openzipkin/zipkin:2.19
Expand Down Expand Up @@ -185,6 +187,13 @@ jobs:
echo "127.0.0.1 grpcs_1.test" | sudo tee -a /etc/hosts
echo "127.0.0.1 grpcs_2.test" | sudo tee -a /etc/hosts
- name: Enable SSL for Redis
run: |
docker cp ${{ github.workspace }} kong_redis:/workspace
docker cp ${{ github.workspace }}/spec/fixtures/redis/docker-entrypoint.sh kong_redis:/usr/local/bin/docker-entrypoint.sh
docker restart kong_redis
docker logs kong_redis
- name: Tests
run: |
eval `luarocks path`
Expand Down Expand Up @@ -276,7 +285,9 @@ jobs:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
- 6380:6380
options: >-
--name kong_redis
zipkin:
image: openzipkin/zipkin:2.19
Expand Down Expand Up @@ -307,6 +318,13 @@ jobs:
run: |
echo "127.0.0.1 grpcs_1.test" | sudo tee -a /etc/hosts
echo "127.0.0.1 grpcs_2.test" | sudo tee -a /etc/hosts
- name: Enable SSL for Redis
run: |
docker cp ${{ github.workspace }} kong_redis:/workspace
docker cp ${{ github.workspace }}/spec/fixtures/redis/docker-entrypoint.sh kong_redis:/usr/local/bin/docker-entrypoint.sh
docker restart kong_redis
docker logs kong_redis
- name: Tests
run: |
Expand Down
Loading

0 comments on commit 6f1e4f5

Please sign in to comment.