Commit graph

1135 commits

Author SHA1 Message Date
Vladimir Diaz
9c48d9c002 Remove merge conflict markers 2016-07-28 10:26:10 -04:00
Vladimir Diaz
c3a5af09b3 Merge branch 'develop' of github.com:theupdateframework/tuf into develop
Conflicts:
	tuf/client/updater.py
2016-07-27 17:08:23 -04:00
Vladimir Diaz
4ccd446901 Return unique list in _targets_of_role()
Previous code updated the 'targets' argument with new values, but the calling code treated the return value as unique
2016-07-27 17:02:04 -04:00
Vladimir Diaz
6ec2f8a7a4 Merge branch 'develop' of github.com:theupdateframework/tuf into remaining-1.0-tasks
Conflicts:
	tuf/download.py
2016-07-27 16:56:05 -04:00
Vladimir Diaz
02d2bf1f6b Expand a comment for the change made in the previous commit 2016-07-27 16:39:42 -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
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
1c72cb2c20 Add 'clear_all' argument to clear_keydb() in keydb.py 2016-07-15 13:47:46 -04:00
Vladimir Diaz
11ae261ffd Rename 'clear_all_except_default' to 'clear_all' in roledb.py 2016-07-15 13:47:04 -04:00
Vladimir Diaz
000e77a3c9 Reference global values in roledb 2016-07-15 13:23:17 -04:00
Vladimir Diaz
65d23fa5a7 Reference all metadata in <version>.rolename.json format 2016-07-14 10:31:16 -04:00
Vladimir Diaz
70cc1b8abd Clear roledb and keydb of 'test_repository' entries after each test case 2016-07-11 13:53:16 -04:00
Vladimir Diaz
6936432790 Update download.py 2016-07-05 17:20:57 -04:00
Vladimir Diaz
e072cd9961 Verify non-None role name supplied to tuf.sig.get_signature_status() 2016-07-01 13:26:46 -04:00
Vladimir Diaz
5c7333b062 Fix unit tests for developer_tool.py 2016-07-01 12:52:04 -04:00
Vladimir Diaz
b52876ac9f Sleep for a short amount of time in download.py's while loop to release CPU 2016-06-28 14:12:10 -04:00
Vladimir Diaz
2a9e4c28ad Add latest repository example and unit test fixes 2016-06-27 17:02:27 -04:00
Vladimir Diaz
80ade8f201 Minor fixes for key expiry and loading an rsa key in a test module 2016-06-17 16:05:25 -04:00
Vladimir Diaz
13bf2de347 Merge branch 'remaining-1.0-tasks' of github.com:vladimir-v-diaz/tuf into keyids_multihash_algorithms
Conflicts:
	tuf/formats.py
2016-06-17 10:11:44 -04:00
Vladimir Diaz
b777188a54 Update tests following the change to Ed25519 keys 2016-06-17 09:57:54 -04:00
Vladimir Diaz
4605f68af9 Raise tuf.Error when a public key is loaded (but a private one is expected). 2016-06-17 09:49:57 -04:00
Vladimir Diaz
45afab517f Set the expected default keyid in _get_keyid() 2016-06-17 09:44:40 -04:00
Vladimir Diaz
577e75a6aa Add support for key expiration 2016-06-13 12:21:09 -04:00
Vladimir Diaz
54f14552a5 Merge branch 'remaining-1.0-tasks' of github.com:vladimir-v-diaz/tuf into keyids_multihash_algorithms 2016-06-09 11:03:25 -04:00
Vladimir Diaz
8bd9ca8a8d Minor edits to PR #318 (prevent cycles when visiting roles) 2016-06-09 10:58:19 -04:00
Vladimir Diaz
b9e83a2e8a Fix conflict 2016-06-09 10:53:39 -04:00
Vladimir Diaz
a048ca1630 Merge branch 'tighten-preorder-dfs' of https://github.com/trishankkarthik/tuf into trishankkarthik-tighten-preorder-dfs 2016-06-09 10:49:11 -04:00
Vladimir Diaz
93a0d006c5 strip version / digest data that is prepended to filenames 2016-06-09 10:48:00 -04:00
Vladimir Diaz
ba0f9ca936 Initial changes for multihash keyid algorithms support on write 2016-06-08 16:49:13 -04:00
Vladimir Diaz
685e6a2d33 Proof of concept
Initial implementation: key IDs may be generated with multiple hash algorithms
2016-05-18 16:12:58 -04:00
Vladimir Diaz
1bf5aa2396 Add repository_name parameters to sig.py 2016-05-16 14:26:38 -04:00
Vladimir Diaz
cc6609f3f6 Implement remaining test conditions in test_roledb.py 2016-05-11 17:50:19 -04:00
Vladimir Diaz
ad08f499e9 Add missing unit test, and update tests in roledb.py to verify 'repository_name' argument 2016-05-11 16:57:46 -04:00
Vladimir Diaz
8e4a036f56 Implement tests for create_roledb() and remove_roledb() 2016-05-09 18:00:28 -04:00
Vladimir Diaz
4b9f469230 Implement add and remove roledb functions to roledb.py 2016-05-09 17:28:43 -04:00
Vladimir Diaz
9d57139aee Implement remaining test functions for keydb.py 2016-05-09 16:31:37 -04:00
Vladimir Diaz
aa62fc5862 Verify the 'repository_name' argument in test_clear_keydb() 2016-05-09 15:10:42 -04:00
Vladimir Diaz
34365bca51 Implement add and remove keydb functions to keydb.py 2016-05-09 14:18:46 -04:00
Vladimir Diaz
223993c43e Update test_keydb.py following refactoring of keydb.py
keydb.py was refactored to allow multiple sets of keys to be tracked
2016-05-06 17:33:18 -04:00
Vladimir Diaz
9d85b5f4b1 Update test_roledb.py following refactoring of roledb.py
refactored roledb.py to keep track of multiple sets of role info.
2016-05-06 16:54:45 -04:00
Vladimir Diaz
e3a1544070 Begin implementation changes to address issue with a global role and key database 2016-05-06 12:13:57 -04:00
Vladimir Diaz
a8a8b13864 Initial changes for prepended digests and version numbers 2016-04-28 08:57:07 -04:00
Vladimir Diaz
d5d89ba16a Write and load consistent snapshots in 'filename.<digest or version #>.<ext>' format 2016-04-15 16:00:25 -04:00
Vladimir Diaz
e27371113f Update developer tool 2016-04-14 16:53:48 -04:00
Vladimir Diaz
6aac27e69c Fix typo 2016-04-14 11:31:02 -04:00
Vladimir Diaz
f2c3e09bf2 Fix remaining issues with previous implementation of _update_metadata_via_fileinfo() 2016-04-14 11:22:13 -04:00
Vladimir Diaz
c017173bfb Add function to update metadata via fileinfo (needed for root and snapshot). 2016-04-14 10:37:57 -04:00
Vladimir Diaz
3f42feba31 Add functions to update and detect fileinfo changes for root and snapshot 2016-04-14 09:08:57 -04:00