Skip to content

Commit

Permalink
updated testing
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
  • Loading branch information
viveksahu26 committed Jan 10, 2024
1 parent 8797ff2 commit 7b11555
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,20 +956,6 @@ func TestAttachWithRekorBundle(t *testing.T) {

certchainRef := mkfile(string(append(pemSub[:], pemRoot[:]...)), td, t)

localPayload := cosign.LocalSignedPayload{
Base64Signature: b64signature,
Cert: string(pemLeaf),
Bundle: &bundle.RekorBundle{
SignedEntryTimestamp: strfmt.Base64("MEUCIEDcarEwRYkrxE9ne+kzEVvUhnWaauYzxhUyXOLy1hwAAiEA4VdVCvNRs+D/5o33C2KBy+q2YX3lP4Y7nqRFU+K3hi0="),
Payload: bundle.RekorPayload{
Body: "REMOVED",
IntegratedTime: 1631646761,
LogIndex: 693591,
LogID: "c0d23d6ad406973f9559f3ba2d1ca01f84147d8ffc5b8445c224f98b9591801d",
},
},
}

localRekorBundle := &bundle.RekorBundle{
SignedEntryTimestamp: strfmt.Base64("MEUCIEDcarEwRYkrxE9ne+kzEVvUhnWaauYzxhUyXOLy1hwAAiEA4VdVCvNRs+D/5o33C2KBy+q2YX3lP4Y7nqRFU+K3hi0="),
Payload: bundle.RekorPayload{
Expand All @@ -980,6 +966,12 @@ func TestAttachWithRekorBundle(t *testing.T) {
},
}

localPayload := cosign.LocalSignedPayload{
Base64Signature: b64signature,
Cert: string(pemLeaf),
Bundle: localRekorBundle,
}

jsonBundle, err := json.Marshal(localPayload)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 7b11555

Please sign in to comment.