Skip to content

Commit

Permalink
check specific err
Browse files Browse the repository at this point in the history
Signed-off-by: Meredith Lancaster <malancas@github.com>
  • Loading branch information
malancas committed Sep 10, 2024
1 parent 3814e82 commit 50d3355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/attestation/verification/attestation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ func TestGetLocalAttestations(t *testing.T) {
t.Run("with missing verification material", func(t *testing.T) {
path := "../test/data/github_provenance_demo-0.0.12-py3-none-any-bundle-missing-verification-material.jsonl"
_, err := GetLocalAttestations(path)
require.ErrorContains(t, err, "missing verification material")
require.ErrorIs(t, err, bundle.ErrMissingVerificationMaterial)
})

t.Run("with missing verification certificate", func(t *testing.T) {
path := "../test/data/github_provenance_demo-0.0.12-py3-none-any-bundle-missing-cert.jsonl"
_, err := GetLocalAttestations(path)
require.ErrorContains(t, err, "missing bundle content")
require.ErrorIs(t, err, bundle.ErrMissingBundleContent)
})
}

Expand Down

0 comments on commit 50d3355

Please sign in to comment.