python-tuf/tests
Jussi Kukkonen 2f69986e2b Remove iso8601 dependency
Our 'expires' strings are constrained by the ISO8601_DATETIME_SCHEMA
which matches regex '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z'. This can be
parsed with just a datetime.strptime(): iso8601 module is not needed.

* Add formats.expiry_string_to_datetime() helper function
* Modify the 3 locations that used iso8601 and the api/metadata.py usage
  of datetime.strptime()
* Remove related unnecessary logger setup
* Add the missing exception documentation to relevant functions (in many
  cases the exception is rather unlikely as the schema has been verified
  many times before this though...)

Fixes #1065

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
2020-10-13 20:06:14 +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 tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_arbitrary_package_attack.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +03:00
test_developer_tool.py Remove redundant comments from test classes 2020-10-01 12:22:19 +03:00
test_download.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_endless_data_attack.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +03:00
test_extraneous_dependencies_attack.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +03:00
test_formats.py Remove iso8601 dependency 2020-10-13 20:06:14 +03:00
test_indefinite_freeze_attack.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +03:00
test_key_revocation_integration.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +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 tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_mix_and_match_attack.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +03:00
test_multiple_repositories_integration.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_proxy_use.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_replay_attack.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +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 Remove redundant comments from test classes 2020-10-01 12:22:19 +03:00
test_tutorial.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_unittest_toolbox.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_updater.py Reorder the tearDownClass cleanup 2020-10-01 12:22:19 +03:00
test_updater_root_rotation_integration.py Update test_updater_root_rotation_integration 2020-10-02 16:05:12 +03:00
utils.py Make TimeoutError message more comprehensive 2020-10-01 12:22:19 +03:00