From e884efa33b52b87f2f18d43d950d6c1c8f8d7cce Mon Sep 17 00:00:00 2001 From: Zachary Hu Date: Wed, 31 Aug 2022 21:02:53 +0800 Subject: [PATCH] feat(redis) support spec tests with redis cluster (#305) --- README.md | 4 ++++ assets/pongo_entrypoint.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 750f77eb..16cdc366 100644 --- a/README.md +++ b/README.md @@ -789,7 +789,11 @@ The result should be a new PR on the Pongo repo. ## unreleased + * Enabled redis cluster tests + [#305](https://github.com/Kong/kong-pongo/pull/305) + * Export the new `KONG_SPEC_TEST_REDIS_HOST` variable to be compatible with Kong 3.0.0+ + [#290](https://github.com/Kong/kong-pongo/pull/290) * Aliases now support `.yml` and `.json` extension for declarative config file [#296](https://github.com/Kong/kong-pongo/pull/296) diff --git a/assets/pongo_entrypoint.sh b/assets/pongo_entrypoint.sh index 35750fd5..cac514f1 100755 --- a/assets/pongo_entrypoint.sh +++ b/assets/pongo_entrypoint.sh @@ -69,6 +69,8 @@ export KONG_LOG_LEVEL=debug export KONG_SPEC_REDIS_HOST=redis # Kong test-helpers 3.0.0+ export KONG_SPEC_TEST_REDIS_HOST=redis +# Support Redis Cluster (RC) +export KONG_SPEC_TEST_REDIS_CLUSTER_ADDRESSES='["rc:7000","rc:7001","rc:7003"]' # set the certificate store export KONG_LUA_SSL_TRUSTED_CERTIFICATE=/etc/ssl/certs/ca-certificates.crt