Commit graph

400 commits

Author SHA1 Message Date
Vladimir Diaz
986ffcb730 Add test case for unmark_dirty() in roledb 2016-10-27 15:15:50 -04:00
Vladimir Diaz
f12b5dbdda Add code coverage for code recently added to repository_lib.py 2016-10-26 17:04:06 -04:00
Vladimir Diaz
c81fa37683 Fix unit test failure in Python 3 and add remaining code coverage for load_repository() 2016-10-26 15:46:41 -04:00
Vladimir Diaz
485eabc5a9 Reset invalid tuf.conf.CONSISTENT_METHOD in unit test
The invalid value should be removed so that subsequent tests work as expected
2016-10-26 13:07:04 -04:00
Vladimir Diaz
5f2956a09d Edit to comments 2016-10-26 12:01:09 -04:00
Vladimir Diaz
18f7e65ab6 Merge branch 'develop' of https://github.com/FelixWang1994/tuf into FelixWang1994-develop 2016-10-26 10:31:54 -04:00
Kwang100
ffe2384ec9 Correct teardown function: remove temporary directory after test completed 2016-10-26 00:30:34 -04:00
Kwang100
df93e46b3b 1、minor bug correction: Now we will remove the current metadata before we link it to the consistent metadata if it exists.
2、import the tuf.conf into the test file; finish all the tests for link current file to the latest consistent metadata file.
2016-10-25 18:28:06 -04:00
Vladimir Diaz
aad5c94b04 Add code coverage for load_repository 2016-10-25 17:20:44 -04:00
Vladimir Diaz
d6b13cd1f2 Cover remaining code coverage for sig.py and edit comments 2016-10-25 11:49:58 -04:00
Vladimir Diaz
5ebef2db5c Cover remaining code coverage for repository_lib.py 2016-10-24 16:41:43 -04:00
Vladimir Diaz
e58c01a96c Catch SlowRetrievalError for download requests that expect a greater download length that the actual file
A slow retrieval error is eventually raised for the request that cannot be satisfied
2016-10-21 11:57:21 -04:00
Vladimir Diaz
70fc8dce36 Resolve merge conflicts with upstream and ecordell-root-versioning 2016-10-18 10:28:04 -04:00
Vladimir Diaz
58370a5a2f Append '_integration.py' to the module name of the integration tests. 2016-10-17 16:56:08 -04:00
Vladimir Diaz
8882dc5b7b Merge branch 'root-versioning' of https://github.com/ecordell/tuf into ecordell-root-versioning
Conflicts:
	tests/test_key_revocation.py
	tests/test_replay_attack.py
	tests/test_repository_tool.py
	tests/test_updater.py
	tuf/formats.py
	tuf/repository_lib.py
2016-10-17 15:57:48 -04:00
Vladimir Diaz
b03deee874 Modify the way slow retrieval errors are raised and detected.
Potential slow retrieval errors are raised for safe downloads (strict check on file size) and not for unsafe (a file size less than an upper limit).  Slow retrieval errors should always be prevented
2016-10-10 17:34:00 -04:00
Vladimir Diaz
e1debf8ea9 Improve code coverage for repository_tool.py 2016-09-21 09:17:37 -04:00
Vladimir Diaz
070c9e0149 Test for invalid keyid in remove_invalid_and_duplicate_signatures() 2016-09-20 11:40:38 -04:00
Vladimir Diaz
35d478f1c2 Cover remaining code coverage for repository_lib.py 2016-09-20 11:02:53 -04:00
Vladimir Diaz
d75d25a4e6 Implement pyca_crypto_keys.py's create_rsa_encrypted_pem and improve code coverage for it 2016-09-19 17:21:33 -04:00
Evan Cordell
0e93c3a7d2 Enforce root version signature chaining in client updater 2016-09-19 15:18:33 -04:00
Evan Cordell
a11709000d Add root versioning for root key rotation 2016-09-19 15:18:20 -04:00
Vladimir Diaz
b5a0cc413b Add test repository
compressed metadata was incorrectly listed in snapshot.json.  List on roles with '.json' extension
2016-09-15 16:33:20 -04:00
Vladimir Diaz
feb2cd0df4 Update tests to improve code coverage and following the changes to repository write and backtracking 2016-09-15 15:24:00 -04:00
Vladimir Diaz
26016479e9 Add test repository following changes to repository writing and backtracking 2016-09-15 15:19:27 -04:00
Vladimir Diaz
daa79ea640 Add code coverage for en(de)cryption functions of pyca_crypto_keys.py 2016-09-01 16:39:03 -04:00
Vladimir Diaz
2876702f48 Add code coverage for keys.extract_pem() 2016-09-01 12:53:28 -04:00
Vladimir Diaz
e620b005a8 Add remaining code coverage for repository_lib.py 2016-09-01 11:07:02 -04:00
Vladimir Diaz
5a35e797fc Improve code coverage for test_signature() 2016-09-01 10:12:56 -04:00
Vladimir Diaz
13e118b7d2 Merge branch 'develop' of github.com:theupdateframework/tuf into develop 2016-09-01 10:11:09 -04:00
Vladimir Diaz
98c386083a Improve code coverage for pyca_crypto_keys.py (functions for encrypted PEMs) 2016-08-31 16:11:07 -04:00
Vladimir Diaz
2a0365d332 Add test cases for _decrypt() and encrypt_key() 2016-08-31 16:09:00 -04:00
Vladimir Diaz
37dcfba999 Improve test coverage for keys.py and pyca_cryptography.py 2016-08-31 15:20:02 -04:00
Vladimir Diaz
a3c482691c Add code coverage for pyca_cryptography via keys.py 2016-08-31 13:38:00 -04:00
Vladimir Diaz
5e2d177f4d Add test case for _load_top_level_metadata() and debug statements to missing else clauses 2016-08-30 17:09:03 -04:00
Vladimir Diaz
c369329d93 Log debug messages for missing else statements and cover branch case in _delete_obsolete_metadata() 2016-08-30 10:56:07 -04:00
Vladimir Diaz
d4fc091da5 Add test case for newly-added tuf.roledb.mark_dirty() 2016-08-29 11:42:19 -04:00
Julian Hille
e80f352259 Handles broken metadata files gracefully like they would be missing. Should be part of #366 2016-08-29 16:51:10 +02:00
Vladimir Diaz
6ec7197002 Fix issues with writting non-dirty'd consistent snapshots
Improve coverage for _delete_obsolete_metadata()
2016-08-26 16:42:21 -04:00
Vladimir Diaz
0673eb6ac5 Test coverage for _delete_obsolete_metadata() 2016-08-18 08:26:53 -04:00
Vladimir Diaz
6797db9d25 Finish coverage for sign_metadata() and generate_targets_metadata() 2016-08-17 09:55:25 -04:00
Vladimir Diaz
abbda071a1 Test for invalid keytype in sign_metadata() 2016-08-16 14:32:04 -04:00
Vladimir Diaz
90477a0517 Cover remaining test cases of _write_compressed_metadata() and remove code related to prepended digests 2016-08-16 12:20:28 -04:00
Vladimir Diaz
47d94c6fc4 Fix exception raised in _write_compressed_metadata() 2016-08-16 10:40:34 -04:00
Vladimir Diaz
4e8e8dca7f Try to hit more lines of _write_compressed_metadata() 2016-08-15 17:13:18 -04:00
Vladimir Diaz
de63311a0c Reference global temporary directory variable by correct name 2016-08-15 14:29:56 -04:00
Vladimir Diaz
c8ffd6f8b1 Write 'interposition.json' to temporary location so that it gets auto-removed after testing 2016-08-15 14:26:50 -04:00
Vladimir Diaz
2380499029 Coverage for remaining lines of _log_status_of_top_level_roles() 2016-08-15 14:05:05 -04:00
Vladimir Diaz
2ef5f3eb68 Add test case for _write_compressed_metadata() 2016-08-15 14:02:10 -04:00
Vladimir Diaz
5f7dc52fa4 Merge pull request #352 from vladimir-v-diaz/support_wildcards_in_trusted_paths
Support Unix shell-style wildcards in trusted paths
2016-08-05 15:53:40 -04:00