(b *bundle.Bundle, buildConfigURI, buildSignerURI, sourceRepoOwnerURI, sourceRepoURI, issuer string)
| 68 | } |
| 69 | |
| 70 | func BuildMockResult(b *bundle.Bundle, buildConfigURI, buildSignerURI, sourceRepoOwnerURI, sourceRepoURI, issuer string) AttestationProcessingResult { |
| 71 | statement := &in_toto.Statement{} |
| 72 | statement.PredicateType = SLSAPredicateV1 |
| 73 | |
| 74 | return AttestationProcessingResult{ |
| 75 | Attestation: &api.Attestation{ |
| 76 | Bundle: b, |
| 77 | }, |
| 78 | VerificationResult: &verify.VerificationResult{ |
| 79 | Statement: statement, |
| 80 | Signature: &verify.SignatureVerificationResult{ |
| 81 | Certificate: &certificate.Summary{ |
| 82 | Extensions: certificate.Extensions{ |
| 83 | BuildConfigURI: buildConfigURI, |
| 84 | BuildSignerURI: buildSignerURI, |
| 85 | Issuer: issuer, |
| 86 | SourceRepositoryOwnerURI: sourceRepoOwnerURI, |
| 87 | SourceRepositoryURI: sourceRepoURI, |
| 88 | }, |
| 89 | }, |
| 90 | }, |
| 91 | }, |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | func BuildSigstoreJsMockResult(t *testing.T) AttestationProcessingResult { |
| 96 | bundle := data.SigstoreBundle(t) |
no outgoing calls