Skip to content

Commit

Permalink
Another try to fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Dec 24, 2024
1 parent 3e9a637 commit b7bbc17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/plugin_install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ func Test_pluginInstallCmdAutomated(t *testing.T) {

// Test plugin install command.
output, err := executeCommandC(
rootCmd, "plugin", "install", "-p", pluginTestConfigFile)
rootCmd, "plugin", "install", "-p", pluginTestConfigFile,
"--update", "--backup")
require.NoError(t, err, "plugin install should not return an error")
assert.Contains(t, output, "Installing plugins from plugins configuration file")
assert.Contains(t, output, "Downloading https://github.com/gatewayd-io/gatewayd-plugin-cache/releases/download/v0.4.0/gatewayd-plugin-cache-linux-amd64-v0.4.0.tar.gz") //nolint:lll
Expand All @@ -96,4 +97,7 @@ func Test_pluginInstallCmdAutomated(t *testing.T) {
assert.NoFileExists(t, "plugins/gatewayd_plugin.yaml")

require.NoError(t, os.RemoveAll("plugins/"))
require.NoError(t, os.Remove(pluginArchivePath))
require.NoError(t, os.Remove(filepath.Join(pwd, "checksums.txt")))
require.NoError(t, os.Remove(pluginTestConfigFile+BackupFileExt))
}

0 comments on commit b7bbc17

Please sign in to comment.