Update attestation tests

This commit is contained in:
Joseph Sweeney 2024-04-30 10:16:57 -04:00
parent 0f5d19220c
commit 883c1e9907
2 changed files with 2 additions and 6 deletions

View File

@ -15,8 +15,6 @@ module Homebrew
# @api private
BACKFILL_REPO = "trailofbits/homebrew-brew-verify"
# @api private
BACKFILL_REPO_CI_URI = "https://github.com/trailofbits/homebrew-brew-verify/.github/workflows/backfill_signatures.yml@refs/heads/main"
# No backfill attestations after this date are considered valid.
#

View File

@ -124,8 +124,7 @@ RSpec.describe Homebrew::Attestation do
expect(Utils).to receive(:safe_popen_read)
.with(fake_gh, "attestation", "verify", cached_download, "--repo",
described_class::BACKFILL_REPO, "--format", "json", "--cert-identity",
described_class::BACKFILL_REPO_CI_URI)
described_class::BACKFILL_REPO, "--format", "json")
.and_return(fake_json_resp_backfill)
described_class.check_core_attestation fake_bottle
@ -141,8 +140,7 @@ RSpec.describe Homebrew::Attestation do
expect(Utils).to receive(:safe_popen_read)
.with(fake_gh, "attestation", "verify", cached_download, "--repo",
described_class::BACKFILL_REPO, "--format", "json", "--cert-identity",
described_class::BACKFILL_REPO_CI_URI)
described_class::BACKFILL_REPO, "--format", "json")
.and_return(fake_json_resp_too_new)
expect do