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
Vladimir Diaz
c2805cc628
Fix remaining unit test failure for test_updater.py
...
Make sure <digest>.target_filename can be requested by clients. Writing a new targets.json causes consistent target files to be written to disk.
2016-08-05 15:42:08 -04:00
Vladimir Diaz
f05fdd9c05
Fix remaining test failures
2016-08-04 15:37:49 -04:00
Vladimir Diaz
81a147614b
Add initial support for specifying Unix shell-style wildcards in paths
2016-08-04 10:59:15 -04:00
Vladimir Diaz
ae4bbfdbfc
Remove tuf.Error exception raised in create_keydb_from_root_metadata()
...
To simplify the addition of keys to keydb, add all of the valid keyids to keydb in the for loop instead of adding the default keyid separately
2016-07-27 16:33:35 -04:00
Vladimir Diaz
876ced3279
Remove invalid test case (hmm, only py35 caught this mistake)
2016-07-26 14:28:08 -04:00
Vladimir Diaz
fae1fb6965
Improve code coverage for __init__.py pyca_crypto_keys.py, repository_lib.py
2016-07-25 11:20:30 -04:00
Vladimir Diaz
e0a4f18223
Improve code coverage
2016-07-21 10:28:46 -04:00
Vladimir Diaz
596969ab2e
Improve code coverage of keydb.py and util.py
2016-07-19 08:06:53 -04:00
Vladimir Diaz
a59008cf2b
Use the 'clear_all' argument with clear_roledb.py and clear_keydb.py
2016-07-15 15:24:45 -04:00
Vladimir Diaz
9c659b633c
Clear keydb and roledb (using the 'clear_all' argument) in the teardown() calls of unit tests
2016-07-15 13:53:31 -04:00
Vladimir Diaz
1c72cb2c20
Add 'clear_all' argument to clear_keydb() in keydb.py
2016-07-15 13:47:46 -04:00
Vladimir Diaz
1474dd8277
Update unit test for roledb following addition of 'clear_all_except_default' argument to clear_roledb()
2016-07-15 13:25:15 -04:00