From b4dfc9fc7293a5d43084589792a1ad6d26a3eb8e Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Wed, 4 Dec 2024 14:59:10 -0700 Subject: [PATCH] update tests Signed-off-by: Meredith Lancaster --- pkg/cmd/attestation/verify/verify_integration_test.go | 9 --------- pkg/cmd/attestation/verify/verify_test.go | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/pkg/cmd/attestation/verify/verify_integration_test.go b/pkg/cmd/attestation/verify/verify_integration_test.go index 781cb4df1..abf2f3a25 100644 --- a/pkg/cmd/attestation/verify/verify_integration_test.go +++ b/pkg/cmd/attestation/verify/verify_integration_test.go @@ -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" diff --git a/pkg/cmd/attestation/verify/verify_test.go b/pkg/cmd/attestation/verify/verify_test.go index e9f38e841..5e4f33507 100644 --- a/pkg/cmd/attestation/verify/verify_test.go +++ b/pkg/cmd/attestation/verify/verify_test.go @@ -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) {