Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Apr 1, 2024
1 parent 20ea478 commit a0bfd51
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/e2e/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,15 @@ const (
func TestSignImageSuccess(t *testing.T) {
imageRef := os.Getenv("TEST_IMAGE")
// Test the prerequisites
signer := sign.New(nil)
opts := sign.Default()
opts.IgnoreTlog = true
signer := sign.New(opts)
signed, err := signer.IsImageSigned(imageRef)
require.Nil(t, err)
require.False(t, signed)

// Sign the image
options := &sign.Options{
IgnoreTlog: true,
}
res, err := signer.SignImageWithOptions(options, imageRef)
res, err := signer.SignImage(imageRef)

// Verify the results
assert.Nil(t, err)
Expand Down

0 comments on commit a0bfd51

Please sign in to comment.