mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
If role is delegated but missing from snapshot, we currently raise a undocumented KeyError: a generic RepositoryError seems better as callers are expected to handle it (and adding a more specific error seems useless as this is a repository software bug, not just expired metadata or something). The same check is also done later in TrustedMetadataSet but I think keeping the check in both is clearest. Fixes #2195 Signed-off-by: Jussi Kukkonen <jkukkonen@google.com> |
||
|---|---|---|
| .. | ||
| generated_data | ||
| repository_data | ||
| .coveragerc | ||
| __init__.py | ||
| aggregate_tests.py | ||
| repository_simulator.py | ||
| simple_server.py | ||
| test_api.py | ||
| test_examples.py | ||
| test_fetcher_ng.py | ||
| test_metadata_eq_.py | ||
| test_metadata_generation.py | ||
| test_metadata_serialization.py | ||
| test_trusted_metadata_set.py | ||
| test_updater_consistent_snapshot.py | ||
| test_updater_delegation_graphs.py | ||
| test_updater_fetch_target.py | ||
| test_updater_key_rotations.py | ||
| test_updater_ng.py | ||
| test_updater_top_level_update.py | ||
| test_updater_validation.py | ||
| test_utils.py | ||
| utils.py | ||