update tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
ee05325e1d
commit
b4dfc9fc72
2 changed files with 2 additions and 11 deletions
|
|
@ -76,15 +76,6 @@ func TestVerifyIntegration(t *testing.T) {
|
|||
require.ErrorContains(t, err, "expected SourceRepositoryOwnerURI to be https://github.com/fakeowner, got https://github.com/sigstore")
|
||||
})
|
||||
|
||||
t.Run("with invalid owner and invalid repo", func(t *testing.T) {
|
||||
opts := publicGoodOpts
|
||||
opts.Repo = "fakeowner/fakerepo"
|
||||
|
||||
err := runVerify(&opts)
|
||||
require.Error(t, err)
|
||||
require.ErrorContains(t, err, "expected SourceRepositoryURI to be https://github.com/fakeowner/fakerepo, got https://github.com/sigstore/sigstore-js")
|
||||
})
|
||||
|
||||
t.Run("with no matching OIDC issuer", func(t *testing.T) {
|
||||
opts := publicGoodOpts
|
||||
opts.OIDCIssuer = "some-other-issuer"
|
||||
|
|
|
|||
|
|
@ -449,10 +449,10 @@ func TestRunVerify(t *testing.T) {
|
|||
t.Run("with repo which not matches SourceRepositoryURI", func(t *testing.T) {
|
||||
opts := publicGoodOpts
|
||||
opts.BundlePath = ""
|
||||
opts.Repo = "wrong/example"
|
||||
opts.Repo = "sigstore/wrong"
|
||||
|
||||
err := runVerify(&opts)
|
||||
require.ErrorContains(t, err, "expected SourceRepositoryURI to be https://github.com/wrong/example, got https://github.com/sigstore/sigstore-js")
|
||||
require.ErrorContains(t, err, "expected SourceRepositoryURI to be https://github.com/sigstore/wrong, got https://github.com/sigstore/sigstore-js")
|
||||
})
|
||||
|
||||
t.Run("with invalid repo", func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue