Skip to content

Commit

Permalink
feat: undefined errors
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
  • Loading branch information
vishal-chdhry committed Sep 20, 2023
1 parent 5bdd957 commit e155e42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (
"testing"
"time"

"github.com/go-openapi/strfmt"
"github.com/google/go-cmp/cmp"
"github.com/google/go-containerregistry/pkg/authn"
"github.com/google/go-containerregistry/pkg/name"
Expand Down Expand Up @@ -946,6 +947,8 @@ func TestAttachWithRekorBundle(t *testing.T) {
h := sha256.Sum256(b.Bytes())
signature, _ := privKey.Sign(rand.Reader, h[:], crypto.SHA256)
b64signature := base64.StdEncoding.EncodeToString([]byte(signature))
sigRef := mkfile(b64signature, td, t)
pemleafRef := mkfile(string(pemLeaf), td, t)
pemrootRef := mkfile(string(pemRoot), td, t)

t.Setenv("SIGSTORE_ROOT_FILE", pemrootRef)
Expand All @@ -956,7 +959,7 @@ func TestAttachWithRekorBundle(t *testing.T) {
Base64Signature: b64signature,
Cert: string(pemLeaf),
Bundle: &bundle.RekorBundle{
SignedEntryTimestamp: base64.StdEncoding.DecodeString("MEUCIEDcarEwRYkrxE9ne+kzEVvUhnWaauYzxhUyXOLy1hwAAiEA4VdVCvNRs+D/5o33C2KBy+q2YX3lP4Y7nqRFU+K3hi0="),
SignedEntryTimestamp: strfmt.Base64("MEUCIEDcarEwRYkrxE9ne+kzEVvUhnWaauYzxhUyXOLy1hwAAiEA4VdVCvNRs+D/5o33C2KBy+q2YX3lP4Y7nqRFU+K3hi0="),
Payload: bundle.RekorPayload{
Body: "REMOVED",
IntegratedTime: 1631646761,
Expand Down

0 comments on commit e155e42

Please sign in to comment.