Skip to content

Commit

Permalink
fix: add fail case scenario to e2e for verifying attestation, collect…
Browse files Browse the repository at this point in the history
… all validation errors first

Signed-off-by: Batuhan Apaydın <[email protected]>
  • Loading branch information
developer-guy committed Oct 5, 2021
1 parent 8fbfb59 commit b081b00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ func TestAttestVerify(t *testing.T) {
t.Fatal(err)
}

mustErr(verifyAttestation.Exec(ctx, []string{imgName}), t)

// Success case
cuePolicy = `builder: id: "2"`
if err := ioutil.WriteFile(policyPath, []byte(cuePolicy), 0600); err != nil {
Expand Down

0 comments on commit b081b00

Please sign in to comment.