python-tuf/tests
Lukas Puehringer e90acfe123 doc: basic hash bin delegation repo example + test
As 'repository_tool' and 'repository_lib' are being deprecated,
hash bin delegation interfaces are no longer available in this
implementation. The example code in this file demonstrates how to
easily implement those interfaces, and how to use them together
with the TUF metadata API, to perform hash bin delegation.

Note, the hash bin delegation logic in this example is largely
copied from repository_{lib, tool}, and modernized and simplified
for this purpose.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-12-03 10:33:24 +01:00
..
repository_data Test files: bump expiration date and resign 2021-10-23 18:39:22 +03:00
ssl_certs Test: add https test with expired server certificate 2018-09-26 14:15:36 -04:00
.coveragerc Move omit to run section in .coveragerc 2019-07-11 14:32:49 +02:00
__init__.py Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
aggregate_tests.py Remove future module #1297 2021-04-11 11:37:45 +02:00
fast_server_exit.py Add tests for tests/utils.py 2020-11-13 14:01:57 +02:00
repository_simulator.py Apply top-level rolenames constants in tests 2021-12-02 12:25:48 +02:00
simple_https_server.py Replace depricated ssl function and fix CI errors 2021-10-21 14:15:29 +03:00
simple_server.py Remove future module #1297 2021-04-11 11:37:45 +02:00
slow_retrieval_server.py Remove some unused imports 2021-09-21 12:20:09 +03:00
test_api.py Apply top-level rolenames constants in tests 2021-12-02 12:25:48 +02:00
test_arbitrary_package_attack.py tests: Remove temp directories after other cleanup 2021-04-12 11:55:37 +03:00
test_developer_tool.py Make "utils" import more definite 2020-11-23 22:17:31 +02:00
test_download.py tests: Kill processes before deleting temp files 2021-04-12 11:55:37 +03:00
test_endless_data_attack.py tests: Remove temp directories after other cleanup 2021-04-12 11:55:37 +03:00
test_examples.py doc: basic hash bin delegation repo example + test 2021-12-03 10:33:24 +01:00
test_extraneous_dependencies_attack.py tests: Remove temp directories after other cleanup 2021-04-12 11:55:37 +03:00
test_fetcher.py Address pylint warnings on tests for the new code 2021-11-11 15:39:56 +02:00
test_fetcher_ng.py Address mypy warnings 2021-11-24 20:50:10 +02:00
test_formats.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_indefinite_freeze_attack.py Remove some unused imports 2021-09-21 12:20:09 +03:00
test_key_revocation_integration.py tests: Remove temp directories after other cleanup 2021-04-12 11:55:37 +03:00
test_keydb.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_log.py Remove use of six 2021-04-09 14:07:44 +03:00
test_metadata_serialization.py Merge pull request #1690 from kairoaraujo/issue#1558-delegate-roles-name-not-top-level-roles 2021-11-29 15:52:58 +02:00
test_mirrors.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_mix_and_match_attack.py tests: Remove temp directories after other cleanup 2021-04-12 11:55:37 +03:00
test_multiple_repositories_integration.py tests: Fix the order of rmdir and process kill 2021-04-12 11:55:31 +03:00
test_replay_attack.py tests: Remove temp directories after other cleanup 2021-04-12 11:55:37 +03:00
test_repository_lib.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_repository_tool.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_roledb.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_root_versioning_integration.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_sig.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_slow_retrieval_attack.py tests: Fix the order of rmdir and process kill 2021-04-12 11:55:31 +03:00
test_trusted_metadata_set.py Apply top-level rolenames constants in tests 2021-12-02 12:25:48 +02:00
test_tutorial.py Remove some unused imports 2021-09-21 12:20:09 +03:00
test_unittest_toolbox.py Remove future module #1297 2021-04-11 11:37:45 +02:00
test_updater.py legacy client: Remove dead code 2021-10-13 15:59:56 +03:00
test_updater_consistent_snapshot.py ngtests: Add consistent_snapshot tests 2021-11-18 11:14:12 +02:00
test_updater_key_rotations.py Apply top-level rolenames constants in tests 2021-12-02 12:25:48 +02:00
test_updater_ng.py Apply top-level rolenames constants in tests 2021-12-02 12:25:48 +02:00
test_updater_root_rotation_integration.py Add a test for the 'ecdsa' key type 2021-06-21 16:32:49 +03:00
test_updater_top_level_update.py Apply top-level rolenames constants in tests 2021-12-02 12:25:48 +02:00
test_updater_with_simulator.py Merge pull request #1690 from kairoaraujo/issue#1558-delegate-roles-name-not-top-level-roles 2021-11-29 15:52:58 +02:00
test_utils.py Tests: self.assertRaises -> with self.assertRaises 2021-11-10 15:27:03 +02:00
utils.py Address mypy warnings 2021-11-24 20:50:10 +02:00