Skip to content

Commit

Permalink
Stabilize the TestNotationCopyBundle test (#3297)
Browse files Browse the repository at this point in the history
tests: Stabilize the TestNotationCopyBundle test

For some unknown reason sometimes the copied bundle is already present in
the registry. It is safe to overwrite it, as the signature is unique to
the bundle, at the test will fail it is not the correct image.

Signed-off-by: Kim Christensen <kimworking@gmail.com>
  • Loading branch information
kichristensen authored Dec 24, 2024
1 parent e123790 commit 58c6aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/signing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestNotationCopyBundle(t *testing.T) {
require.NoError(t, err, "Publish failed")

_, output, err = testr.RunPorterWith(func(pc *shx.PreparedCommand) {
pc.Args("copy", "--insecure-registry", "--sign-bundle", "--source", ref.String(), "--destination", copiedRef.String())
pc.Args("copy", "--insecure-registry", "--sign-bundle", "--source", ref.String(), "--destination", copiedRef.String(), "--force")
})
require.NoError(t, err, "Copy failed")

Expand Down

0 comments on commit 58c6aee

Please sign in to comment.