Skip to content

Commit

Permalink
fix E2E test
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Dec 21, 2023
1 parent 49a3bcb commit af4b648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/notation/plugin/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func install(command *cobra.Command, opts *pluginInstallOpts) error {
if err != nil {
return fmt.Errorf("failed to download plugin from URL %s with error: %w", opts.pluginSource, err)
}
fmt.Printf("Download completed. Saved to tmp file %s.\n", tmpFile.Name())
fmt.Printf("Download completed. Saved to tmp file %s\n", tmpFile.Name())
if err := installPlugin(ctx, tmpFile.Name(), opts.inputChecksum, opts.force); err != nil {
return fmt.Errorf("plugin installation failed: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/suite/plugin/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var _ = Describe("notation plugin install", func() {
It("with valid plugin URL but missing checksum", func() {
Host(nil, func(notation *utils.ExecOpts, _ *Artifact, vhost *utils.VirtualHost) {
notation.ExpectFailure().Exec("plugin", "install", "--url", PluginURL).
MatchErrContent("Error: installing from URL requires non-empty SHA256 checksum of the plugin source\n")
MatchKeyWords("Error: installing from URL requires non-empty SHA256 checksum of the plugin source\n")
})
})

Expand Down

0 comments on commit af4b648

Please sign in to comment.