Skip to content

Commit

Permalink
Fix TestSignBlobBundle (#1320)
Browse files Browse the repository at this point in the history
Signed-off-by: Priya Wadhwa <[email protected]>
  • Loading branch information
priyawadhwa authored Jan 14, 2022
1 parent bad18e5 commit 4592c23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func TestSignBlobBundle(t *testing.T) {
BundlePath: bundlePath,
}
// Verify should fail on a bad input
mustErr(cliverify.VerifyBlobCmd(ctx, ko1, "", "", "", blob), t)
mustErr(cliverify.VerifyBlobCmd(ctx, ko1, "", "", "", "", blob), t)

// Now sign the blob with one key
ko := sign.KeyOpts{
Expand All @@ -501,7 +501,7 @@ func TestSignBlobBundle(t *testing.T) {
t.Fatal(err)
}
// Now verify should work
must(cliverify.VerifyBlobCmd(ctx, ko1, "", "", "", bp), t)
must(cliverify.VerifyBlobCmd(ctx, ko1, "", "", "", "", bp), t)

// Now we turn on the tlog and sign again
defer setenv(t, options.ExperimentalEnv, "1")()
Expand All @@ -511,7 +511,7 @@ func TestSignBlobBundle(t *testing.T) {

// Point to a fake rekor server to make sure offline verification of the tlog entry works
os.Setenv(serverEnv, "notreal")
must(cliverify.VerifyBlobCmd(ctx, ko1, "", "", "", bp), t)
must(cliverify.VerifyBlobCmd(ctx, ko1, "", "", "", "", bp), t)
}

func TestGenerate(t *testing.T) {
Expand Down

0 comments on commit 4592c23

Please sign in to comment.