check specific err
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
3814e82f9b
commit
50d335566d
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue