Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TestSignBlobBundle #1320

Merged
merged 1 commit into from
Jan 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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