mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Cover remaining code coverage for repository_lib.py
This commit is contained in:
parent
c5fe581bca
commit
5ebef2db5c
2 changed files with 4 additions and 1 deletions
|
|
@ -194,9 +194,13 @@ def test_writeall(self):
|
|||
|
||||
|
||||
# (3) Load top-level signing keys.
|
||||
repository.status()
|
||||
repository.root.load_signing_key(root_privkey)
|
||||
repository.status()
|
||||
repository.targets.load_signing_key(targets_privkey)
|
||||
repository.status()
|
||||
repository.snapshot.load_signing_key(snapshot_privkey)
|
||||
repository.status()
|
||||
|
||||
# Verify that repository.writeall() fails for insufficient threshold
|
||||
# of signatures (default threshold = 1).
|
||||
|
|
|
|||
|
|
@ -2183,7 +2183,6 @@ def _log_status_of_top_level_roles(targets_directory, metadata_directory):
|
|||
|
||||
except tuf.InsufficientKeysError as e:
|
||||
logger.info(str(e))
|
||||
return
|
||||
|
||||
# Do the top-level roles contain a valid threshold of signatures? Top-level
|
||||
# metadata is verified in Root -> Targets -> Snapshot -> Timestamp order.
|
||||
|
|
|
|||
Loading…
Reference in a new issue