Skip to content

Commit

Permalink
Test using the latest version of the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Jan 24, 2024
1 parent 4348cf7 commit 90d0824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 90d0824

Please sign in to comment.