Skip to content

Commit

Permalink
Merge pull request #1636 from sechkova/ng-tests-metadata-update
Browse files Browse the repository at this point in the history
ngclient: top-level-roles update tests
  • Loading branch information
Jussi Kukkonen authored Nov 10, 2021
2 parents 8ae944c + d66c3ba commit 0088ebd
Show file tree
Hide file tree
Showing 2 changed files with 439 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/repository_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ def _fetch_metadata(

if md is None:
raise FetcherHTTPError(f"Unknown role {role}", 404)
if version is not None and version != md.signed.version:
raise FetcherHTTPError(f"Unknown {role} version {version}", 404)

md.signatures.clear()
for signer in self.signers[role].values():
Expand Down
Loading

0 comments on commit 0088ebd

Please sign in to comment.