python-tuf/tests
Sebastien Awwad a8debd7cc6
Test: improve failure behavior of test_slow_retrieval_attack
and also clarify setup workflow in test_slow_retrieval_attack.

Because the test was written incorrectly, the test was failing
with a bad hash error after 31 seconds, when it should instead
have been failing because the slow retrieval attack was not
averted.

In particular, a target file was updated, but metadata was not
correctly updated on the repository and, further, the client's
copy of the metadata was never updated. (The client continued
to expect 31 bytes of target file instead of 400 or 800.)

The way the test used to run, the target file change
previously had no purpose.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2018-09-10 16:30:32 -04:00
..
repository_data Edit test repo scripts to exclude target files with leading os.sep 2018-04-06 11:08:45 -04:00
.coveragerc Ignore coverage with command-line scripts 2018-01-29 10:18:42 -05:00
__init__.py Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
aggregate_tests.py Try to run all of the unit tests in aggregate_tests.py 2018-05-02 17:04:39 -04:00
simple_https_server.py Rename license files in modules 2018-02-05 11:31:19 -05:00
simple_server.py Rename license files in modules 2018-02-05 11:31:19 -05:00
slow_retrieval_server.py Rename license files in modules 2018-02-05 11:31:19 -05:00
ssl_cert.crt Add SSL certificate and key used to test https connections 2016-01-27 16:31:33 -05:00
ssl_cert.key Add SSL certificate and key used to test https connections 2016-01-27 16:31:33 -05:00
test_arbitrary_package_attack.py Modify URL comparison in test_arbitrary_package_attack.py 2018-04-20 10:58:23 -04:00
test_developer_tool.py Modify test condition for OSError 2018-04-27 13:36:16 -04:00
test_download.py Update TUF to handle HTTPS proxies 2018-08-31 13:18:35 -04:00
test_endless_data_attack.py Fix 'IOError: [Error 0] Error' exception raised in test_endless_data_attack.py 2018-04-23 11:51:01 -04:00
test_exceptions.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_extraneous_dependencies_attack.py Modify URL comparison in test_extraneous_dependencies_attack.py 2018-04-20 10:58:57 -04:00
test_formats.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_indefinite_freeze_attack.py Merge branch 'develop' into edit_comment_test_indefinite 2018-06-12 09:19:26 -04:00
test_init.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_key_revocation_integration.py Fix test_key_revocation_integration following change to repo_lib.py 2018-04-26 13:49:24 -04:00
test_keydb.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_log.py Make sure the default log file doesn't exist prior to test condition 2018-06-18 10:42:09 -04:00
test_mirrors.py Minor cosmetic change to URL creation 2018-04-20 10:57:30 -04:00
test_mix_and_match_attack.py Modify URL comparison in test_mix_and_match_attack.py 2018-04-20 10:59:24 -04:00
test_multiple_repositories_integration.py Fix test_multiple_repositories_integration and edit whitespace in updater.py 2018-06-11 10:02:11 -04:00
test_replay_attack.py Modify URL comparison in test_replay_attack.py 2018-04-20 10:59:43 -04:00
test_repository_lib.py Do not test for an invalid consistent method in Windows 2018-04-27 15:43:55 -04:00
test_repository_tool.py Fix test that failed to detect issue with get_filepaths_in_directory 2018-08-21 12:30:25 -04:00
test_roledb.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_root_versioning_integration.py Update unit tests affected by change to target filepaths 2018-04-06 13:18:33 -04:00
test_sig.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_slow_retrieval_attack.py Test: improve failure behavior of test_slow_retrieval_attack 2018-09-10 16:30:32 -04:00
test_unittest_toolbox.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_updater.py Kill subprocess in a few unit tests 2018-05-02 15:31:06 -04:00
test_updater_root_rotation_integration.py Fix test_updater_root_rotation_integration following change to repo_lib.py 2018-04-26 13:47:55 -04:00