Update attestation tests
This commit is contained in:
parent
0f5d19220c
commit
883c1e9907
@ -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.
|
||||
#
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user