python-tuf/tests
Sebastien Awwad 18ef3b419d
Improve the way specification version is checked in metadata
and generate more friendly errors.  Prior to this, a test in
test_updater.py was written in such a way to not actually be
testing whether or not specification version checking was
working correctly -- the error updater.py raised if a specification
version number was not supported was the same as would be raised
if a role version was not the expected version, and, amusingly,
the test could not distinguish between these two scenarios and
was providing the wrong role version......

Specification version mismatch now raises a particular error:
UnsupportedSpecificationError.

The specification version supported by this code is now also all
in one place, tuf.formats rather than tuf.updater.

Related error messages and testing were improved (with some
edge cases closed).

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-28 18:30:03 -04:00
..
repository_data Edit test repo scripts to exclude target files with leading os.sep 2018-04-06 11:08:45 -04:00
ssl_certs Test: add https test with expired server certificate 2018-09-26 14:15:36 -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 Reduce test spam by using unittest output buffering 2019-02-19 13:38:10 -05:00
proxy_server.py minor: PR tweaks based on review: doc, casing, typos, updates 2018-10-02 15:01:38 -04:00
simple_https_server.py Test: add proxy certs and reorganize certs in test data dir 2018-09-21 13:13:52 -04:00
simple_server.py Rename license files in modules 2018-02-05 11:31:19 -05:00
slow_retrieval_server.py DOC: Clarify and correct comments on download timeouts 2018-09-10 16:30:32 -04: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 test: remove port collison chance and lengthen delays for AppVeyor 2018-11-14 10:54:02 -05: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 test: extend sleep in testing after spawning server processes 2018-11-06 09:59:24 -05: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 test: extend a delay in testing after spawning server processes 2018-11-05 16:28:59 -05:00
test_proxy_use.py Merge pull request #803 from theupdateframework/test_delay_increases 2018-11-14 13:39:23 -05: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 Remove redundant words in comment 2019-02-26 14:35:30 +07:00
test_slow_retrieval_attack.py test: extend sleep in testing after spawning server processes 2018-11-06 09:59:24 -05:00
test_unittest_toolbox.py Rename license files in modules 2018-02-05 11:31:19 -05:00
test_updater.py Improve the way specification version is checked in metadata 2019-03-28 18:30:03 -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