Skip to content

Commit

Permalink
Update tests to use the latest version of the cache plugin (v0.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Sep 28, 2024
1 parent 4635e46 commit 0ad84b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/cmd_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)

Expand Down
7 changes: 4 additions & 3 deletions cmd/testdata/gatewayd_plugins.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit 0ad84b0

Please sign in to comment.