python-tuf/tests
Lukas Puehringer cb9aa4a362 ngclient: use Unwrapper in TrustedMetadataSet
Change TrustedMetadataSet to load and verify metadata using a
MetadataUnwrapper instance.

IMPORTANT NOTES:
* Requires changing the TrustedMetadataSet to store payloads only, which
  is okay, because signatures are no longer needed, after being verified
  at load time.

* Includes a minor re-ordering of validation steps.  That is, the
  version increment for root metadata is now checked after signature
  verification. Preserving the order would require including the check in
  the Unwrapper interface, which is feasible but does not seem correct wrt
  separation of responsibility.

Changes are adopted in updater, tests and _localrepo.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2024-02-21 16:24:29 +01:00
..
generated_data tests, examples: Stop using Key constructors 2023-01-17 14:31:22 +02:00
repository_data tests: remove unused and obsolete test metadata 2023-10-11 15:09:09 +02:00
.coveragerc Update misc repo metadata after legacy code drop 2022-01-26 15:25:40 +01:00
__init__.py Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
aggregate_tests.py Apply black on tests/aggregate_tests.py 2021-12-07 11:51:23 +02:00
repository_simulator.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
simple_server.py tests: Remove unused options from simple_server 2022-01-21 11:31:09 +02:00
test_api.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_examples.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_fetcher_ng.py Make RequestsFetcher public 2023-01-25 15:55:11 +02:00
test_metadata_eq_.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_metadata_generation.py Provide a way to generate a simple repository 2022-03-22 18:13:54 +02:00
test_metadata_serialization.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_trusted_metadata_set.py ngclient: use Unwrapper in TrustedMetadataSet 2024-02-21 16:24:29 +01:00
test_updater_consistent_snapshot.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_updater_delegation_graphs.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_updater_fetch_target.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_updater_key_rotations.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_updater_ng.py ngclient: use Unwrapper in TrustedMetadataSet 2024-02-21 16:24:29 +01:00
test_updater_top_level_update.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_updater_validation.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
test_utils.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00
utils.py remove pylint and suppressed inline errors from pylint 2024-02-20 22:57:53 -05:00