From 0ad84b043659c5a11da1229cb37afe1e53c060d0 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Sat, 28 Sep 2024 17:34:44 +0200 Subject: [PATCH] Update tests to use the latest version of the cache plugin (v0.4.0) --- cmd/cmd_helpers_test.go | 4 ++-- cmd/testdata/gatewayd_plugins.yaml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/cmd_helpers_test.go b/cmd/cmd_helpers_test.go index 5dced298..375d87a3 100644 --- a/cmd/cmd_helpers_test.go +++ b/cmd/cmd_helpers_test.go @@ -25,13 +25,13 @@ func executeCommandC(root *cobra.Command, args ...string) (string, error) { // mustPullPlugin pulls the gatewayd-plugin-cache plugin and returns the path to the archive. func mustPullPlugin() (string, error) { - pluginURL := "github.com/gatewayd-io/gatewayd-plugin-cache@v0.2.10" + pluginURL := "github.com/gatewayd-io/gatewayd-plugin-cache@v0.4.0" fileName := fmt.Sprintf( "./gatewayd-plugin-cache-%s-%s-%s%s", runtime.GOOS, runtime.GOARCH, - "v0.2.10", + "v0.4.0", getFileExtension(), ) diff --git a/cmd/testdata/gatewayd_plugins.yaml b/cmd/testdata/gatewayd_plugins.yaml index 3e3e0dec..93fc8eb3 100644 --- a/cmd/testdata/gatewayd_plugins.yaml +++ b/cmd/testdata/gatewayd_plugins.yaml @@ -1,7 +1,7 @@ plugins: - name: gatewayd-plugin-cache enabled: True - url: github.com/gatewayd-io/gatewayd-plugin-cache@v0.2.10 + url: github.com/gatewayd-io/gatewayd-plugin-cache@v0.4.0 localPath: plugins/gatewayd-plugin-cache args: ["--log-level", "debug"] env: @@ -12,10 +12,11 @@ plugins: - METRICS_ENABLED=True - METRICS_UNIX_DOMAIN_SOCKET=/tmp/gatewayd-plugin-cache.sock - METRICS_PATH=/metrics + - API_GRPC_ADDRESS=localhost:19090 - PERIODIC_INVALIDATOR_ENABLED=True - PERIODIC_INVALIDATOR_INTERVAL=1m - PERIODIC_INVALIDATOR_START_DELAY=1m - - API_ADDRESS=localhost:18080 - EXIT_ON_STARTUP_ERROR=False - SENTRY_DSN=https://70eb1abcd32e41acbdfc17bc3407a543@o4504550475038720.ingest.sentry.io/4505342961123328 - checksum: 867e09326da10b6e321d8dbcfcf2d20835bde79a82edc2b440dd81d151041672 + - CACHE_CHANNEL_BUFFER_SIZE=100 + checksum: 59b67b810f030cb96737818240ceafcc3722b48fd43d54f0747d3bc37c727984