python-tuf/tests
Martin Vrachev 946d11bca4 Make confined_target_dirs optional field
The field confined_target_dirs from the MIRROR_SCHEMA  is
a list of strings. Those strings define the accessible target
paths for that mirror. For one target to be available for that mirror,
its path should have as a prefix at least one of the strings defined
in confined_target_dirs.

That's why when confined_target_dirs is a list with one element empty
string (e.g. ['']) this means all targets files on that mirror are
available and if confined_target_dirs is empty list (e.g. []) this
would be interpreted as none of the target files is available.

This is a confusing API that could easily lead to mistakes.
That's why it's better we promote to not set confined_target_dirs
at all if a user wants targets to be available.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2020-10-16 15:35:24 +03:00
..
repository_data Remove redundant test logic 2020-05-12 22:16:38 +01: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 Install TUF in editable mode in tox builds 2019-07-11 14:32:49 +02:00
proxy_server.py tests: Use localhost consistently 2020-08-10 16:11:33 +03:00
simple_https_server.py Remove unneceserry checks in server files 2020-10-01 12:22:19 +03:00
simple_server.py Remove unneceserry checks in server files 2020-10-01 12:22:19 +03:00
slow_retrieval_server.py Remove a not used function 2020-10-01 12:22:19 +03:00
test_api.py Make unit test files executable 2020-10-05 10:36:31 +01:00
test_arbitrary_package_attack.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_developer_tool.py Remove redundant comments from test classes 2020-10-01 12:22:19 +03:00
test_download.py tests: Filter useless warnings 2020-10-09 12:10:49 +03:00
test_endless_data_attack.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_extraneous_dependencies_attack.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_formats.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_indefinite_freeze_attack.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_key_revocation_integration.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_keydb.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_log.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_mirrors.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_mix_and_match_attack.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_multiple_repositories_integration.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_proxy_use.py Merge pull request #1163 from joshuagl/joshuagl/nits 2020-10-15 10:38:26 +01:00
test_replay_attack.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_repository_lib.py Update test_repository_lib and test_formats 2020-10-02 16:05:12 +03:00
test_repository_tool.py Remove redundant comments from test classes 2020-10-01 12:22:19 +03:00
test_roledb.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_root_versioning_integration.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_sig.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_slow_retrieval_attack.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_tutorial.py Make unit test files executable 2020-10-05 10:36:31 +01:00
test_unittest_toolbox.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_updater.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_updater_root_rotation_integration.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
utils.py tests: Filter useless warnings 2020-10-09 12:10:49 +03:00