Skip to content

Commit

Permalink
tests: Stabilize the TestNotationCopyBundle test
Browse files Browse the repository at this point in the history
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 committed Dec 22, 2024
1 parent aa97c59 commit 759aa72
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 759aa72

Please sign in to comment.