Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Nov 14, 2023
1 parent e640191 commit 20850ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func TestExcessiveAttestations(t *testing.T) {
}

// Attest to create a vuln attestation
attestCommand := attest.AttestCommand{
attestCommand := attest.AttestCmd{

Check failure on line 437 in test/e2e_test.go

View workflow job for this annotation

GitHub Actions / Run e2e tests

attest.AttestCmd (value of type func(ctx context.Context, ko "github.com/sigstore/cosign/cmd/cosign/cli/options".KeyOpts, regOpts "github.com/sigstore/cosign/cmd/cosign/cli/options".RegistryOptions, imageRef string, certPath string, certChainPath string, noUpload bool, predicatePath string, force bool, predicateType string, replace bool, timeout time.Duration, noTlogUpload bool) error) is not a type
KeyOpts: ko,
PredicatePath: vulnAttestationPath,
PredicateType: "vuln",
Expand All @@ -444,8 +444,7 @@ func TestExcessiveAttestations(t *testing.T) {
must(attestCommand.Exec(ctx, imgName), t)
}

attOpts := options.AttestationDownloadOptions{}
_, err = cosign.FetchAttestationsForReference(ctx, ref, attOpts.PredicateType, ociremoteOpts...)
_, err = cosign.FetchAttestationsForReference(ctx, ref, ociremoteOpts...)
if err == nil {
t.Fatalf("Expected an error, but 'err' was 'nil'")
}
Expand Down

0 comments on commit 20850ec

Please sign in to comment.