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 aeb6d85
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,13 @@ 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, "Installing plugin from CLI argument")
assert.Contains(t, output, "Downloading ")
assert.Contains(t, output, "gatewayd-plugin-cache-linux-amd64-")
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 aeb6d85

Please sign in to comment.