From 90d0824712b134f8caff220051c5d7a7b6defcc0 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Wed, 24 Jan 2024 23:09:44 +0100 Subject: [PATCH] Test using the latest version of the plugin --- cmd/run_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/run_test.go b/cmd/run_test.go index ebaae822..e4c5a226 100644 --- a/cmd/run_test.go +++ b/cmd/run_test.go @@ -199,11 +199,11 @@ func Test_runCmdWithCachePlugin(t *testing.T) { // Test plugin install command. output, err := executeCommandC( rootCmd, "plugin", "install", - "github.com/gatewayd-io/gatewayd-plugin-cache@v0.2.4", + "github.com/gatewayd-io/gatewayd-plugin-cache@latest", "-p", pluginTestConfigFile, "--update") require.NoError(t, err, "plugin install should not return an error") - assert.Contains(t, output, "Downloading https://github.com/gatewayd-io/gatewayd-plugin-cache/releases/download/v0.2.4/gatewayd-plugin-cache-linux-amd64-v0.2.4.tar.gz") //nolint:lll - assert.Contains(t, output, "Downloading https://github.com/gatewayd-io/gatewayd-plugin-cache/releases/download/v0.2.4/checksums.txt") //nolint:lll + assert.Contains(t, output, "Downloading https://github.com/gatewayd-io/gatewayd-plugin-cache/releases/download/v0.2.4/gatewayd-plugin-cache-linux-amd64-") //nolint:lll + assert.Contains(t, output, "/checksums.txt") assert.Contains(t, output, "Download completed successfully") assert.Contains(t, output, "Checksum verification passed") assert.Contains(t, output, "Plugin binary extracted to plugins/gatewayd-plugin-cache")