python-tuf/tests
Jussi Kukkonen cea1745cef Implement root bootstrapping
Application may have a "more secure" data store than the metadata cache
is: Allow application to bootstrap the Updater with this more secure
root. This means the Updater must also cache the subsequent root versions
(and not just the last one).

* Store versioned root metadata in local cache
* maintain a non versioned symlink to last known good root
* When loading root metadata, look in local cache too
* Add a 'bootstrap' argument to Updater: this allows
  initializing the Updater with known good root metadata
  instead of trusting the root.json in cache

Additional changes to current functionality:
* when using bootstrap argument, the initial root is written to cache.
  This write happens every time Updater is initialized with bootstrap
* The "root.json" symlink is recreated at the end of every refresh()

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
2025-02-20 11:09:54 +02:00
..
generated_data tests: Simplify test data generation 2024-12-11 10:11:55 +02:00
repository_data tests: Remove unused test files 2025-01-17 11:11:26 +02:00
__init__.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
repository_simulator.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
simple_server.py Update Python shebangs to explicitly use python3 2025-02-19 19:44:21 +07:00
test_api.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
test_examples.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
test_fetcher_ng.py swap invalid urls that are used in testing. (takes care of deprecation warning in #2776) 2025-02-12 00:07:38 -05:00
test_metadata_eq_.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
test_metadata_generation.py tests: Simplify test data generation 2024-12-11 10:11:55 +02:00
test_metadata_serialization.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
test_repository.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
test_trusted_metadata_set.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
test_updater_consistent_snapshot.py tests: Make tests cope with root history in local cache 2025-02-20 11:00:50 +02:00
test_updater_delegation_graphs.py tests: Make tests cope with root history in local cache 2025-02-20 11:00:50 +02:00
test_updater_fetch_target.py Enable FA (future annotations) linting ruleset 2025-02-19 19:44:05 +07:00
test_updater_key_rotations.py Use __future.annotations module 2024-11-29 12:41:09 +02:00
test_updater_ng.py Implement root bootstrapping 2025-02-20 11:09:54 +02:00
test_updater_top_level_update.py Enable FA (future annotations) linting ruleset 2025-02-19 19:44:05 +07:00
test_updater_validation.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_utils.py tests: Make sure tests can execute from root source dir 2024-12-11 10:11:55 +02:00
utils.py tests: Make tests cope with root history in local cache 2025-02-20 11:00:50 +02:00