Commit graph

3274 commits

Author SHA1 Message Date
Vladimir Diaz
a9341260b1 Edit the lists in the Goals sections 2017-08-02 12:54:03 -04:00
Vladimir Diaz
2cacdc4a8c
Minor edits to updater.py following addition of test conditions 2017-07-31 15:49:36 -04:00
Vladimir Diaz
671cd1470b
Specify compression_algorithms when calling _generate_and_write_metadata() 2017-07-31 15:48:50 -04:00
Vladimir Diaz
5364480ec3
Add test conditions
for _refresh_targets_metadata(), _fileinfo_has_changed(), and _update_versioninfo()
2017-07-31 15:46:37 -04:00
Lois Anne DeLong
293989ce52 coverted spec to MD
Move text to Markdown format and did my best to add the correct formatting
2017-07-28 15:50:31 -04:00
Vladimir Diaz
ca52527360
Add test cases for _get_file() and _targets_of_role() 2017-07-27 15:56:07 -04:00
Vladimir Diaz
7c3cbc747e
Log debug message in _targets_of_role() 2017-07-27 15:55:20 -04:00
Vladimir Diaz
99a3f99c84
Add test condition for _verify_root_chain_link() 2017-07-26 16:58:01 -04:00
Vladimir Diaz
868e3aafda
Edit parameter used in _verify_root_chain_link() 2017-07-26 16:57:28 -04:00
Vladimir Diaz
fb5391e631
Add test condition for _verify_uncompressed_metadata_file() 2017-07-26 15:42:52 -04:00
Vladimir Diaz
2674d6e289 Merge pull request #475 from vladimir-v-diaz/append_external_signature
List missing exception in dump_signable_metadata()'s doctring
2017-07-26 15:17:49 -04:00
Vladimir Diaz
af6eda2e5b
List missing exception in dump_signable_metadata()'s doctring 2017-07-26 15:16:00 -04:00
Vladimir Diaz
115b9498d7 Merge pull request #474 from vladimir-v-diaz/append_external_signature
Allow external tools to sign and append signatures to metadata.
2017-07-26 13:58:22 -04:00
Vladimir Diaz
646eca5acc
Edit README to cover dump_signable_metadata and append_signature() 2017-07-26 13:55:46 -04:00
Vladimir Diaz
4eee116c41
Add test conditions for append_signature() 2017-07-26 12:30:10 -04:00
Vladimir Diaz
1acd440199
Add test conditions for dump_signable_metadata() 2017-07-24 17:16:43 -04:00
Vladimir Diaz
e606b9b5ff
Add missing function argument in docstring 2017-07-21 16:51:21 -04:00
Vladimir Diaz
c0e897aa8d
Add repository_tool.append_signature() 2017-07-21 16:40:39 -04:00
Vladimir Diaz
c641ad8637
Add function to dump signable metadata content 2017-07-21 15:40:32 -04:00
Vladimir Diaz
67eb57ae1c Merge pull request #473 from vladimir-v-diaz/coverage
Coverage and bug fixes
2017-07-19 11:02:22 -04:00
Vladimir Diaz
7408da683a
Add test case for _soft_check_file_length 2017-07-18 16:58:58 -04:00
Vladimir Diaz
70bdfb9c78
Fix syntax error in import_delegations and improve coverage 2017-07-18 16:09:22 -04:00
Vladimir Diaz
4c9d278da5
Merge branch 'coverage' of github.com:vladimir-v-diaz/tuf into coverage 2017-07-18 15:30:33 -04:00
Vladimir Diaz
4bcf513db0
Fix remaining bugs with loading multiple keyids 2017-07-18 15:29:16 -04:00
Vladimir Diaz
6cb2a249e1 Merge branch 'develop' into coverage 2017-07-18 11:00:18 -04:00
Vladimir Diaz
32aab8f5fb
Use securesystemslib v0.10.6
that contains bug fix for _get_keyid()
2017-07-17 17:04:35 -04:00
Vladimir Diaz
cab5514027
Edit test cases after bug fix in _get_keyid()
Modify _import_delegations() and rebuild_key_and_role_db() so that the correct number of keyids are detected
2017-07-17 16:36:31 -04:00
Vladimir Diaz
dbc8cbceb0
Fix bug in Updater
where adding a duplicate keyid failed to load valid multiple keyids
2017-07-17 16:33:38 -04:00
Vladimir Diaz
d8b020c427
Clear role and key db in setup
to protect against test cases that did not clean up properly
2017-07-17 16:31:32 -04:00
Vladimir Diaz
8fe78f5ca8
Fix/uncomment tests for rebuild_key_and_role_db() and import_delegations()
These two unit tests were previously commented because they weren't working as expected.  A bug in securesystemslib._get_keydb() was the cause of the issue, where the hash_algorithm argument wasn't being used and didn't allow multiple keyids to be generated.
2017-07-17 11:44:17 -04:00
Vladimir Diaz
64fdc399a5
Add test case for loading malformed metadata 2017-07-14 15:28:59 -04:00
Vladimir Diaz
97eccf5fb8
Remove chech for > py2.5 in download.py
implementation doesn't support < py2.6
2017-07-14 15:28:02 -04:00
Vladimir Diaz
30109fbbb1
Add unit test for unittest_toolbox.py 2017-07-14 11:26:52 -04:00
Vladimir Diaz
31e4f1ccf0
Add blank lines to improve readability 2017-07-14 11:24:53 -04:00
Vladimir Diaz
a1b61e9d6f
Add test case for tuf.exceptions.DecompressionError 2017-07-14 11:23:45 -04:00
Vladimir Diaz
48e412dee8
Add test_exceptions.py 2017-07-13 17:04:15 -04:00
Vladimir Diaz
c8413600f8
Remove check for
for unknown repository name in get_delegated_rolenames()
2017-07-13 16:40:46 -04:00
Vladimir Diaz
58ab40c203
Remove check for unknown repository name
roledb.get_role_paths() contains a check for an unknown repository name that is already done by _check_rolename()
2017-07-13 16:05:53 -04:00
Vladimir Diaz
e7de36b2df
Fix docstring to mention expected tuf.exceptions.UnknownRoleError 2017-07-13 15:39:23 -04:00
Vladimir Diaz
e5792a0cb2
Catch correct tuf.exceptions.UnknownRoleError
sig.get_signature_status() was incorrectly raising securesystemslib.exceptions.UnknownRoleError
2017-07-13 15:37:52 -04:00
Vladimir Diaz
4cc7c17232
Test that root.json.gz can be loaded 2017-07-13 14:40:52 -04:00
Vladimir Diaz
0fc58f6335 Merge pull request #472 from vladimir-v-diaz/_type_role_lowercase
Use consistent naming of role names in metadata
2017-07-13 12:36:22 -04:00
Vladimir Diaz
c76a371903
Merge branch '_type_role_lowercase' of github.com:vladimir-v-diaz/tuf into _type_role_lowercase 2017-07-13 11:46:11 -04:00
Vladimir Diaz
ce5e920a7d
Fix python3 error with string.lower() 2017-07-13 11:45:19 -04:00
Vladimir Diaz
2b5faf4a67 Merge branch 'develop' into _type_role_lowercase 2017-07-12 15:13:17 -04:00
Vladimir Diaz
151333935d Merge pull request #470 from theupdateframework/vladimir-v-diaz-patch-1
Use consistent wording in the client workflow
2017-07-12 15:11:08 -04:00
Vladimir Diaz
d13a401678
Update specification 2017-07-12 15:09:15 -04:00
Vladimir Diaz
7d30763206
Ensure the client loads _type = targets metadata 2017-07-12 15:07:06 -04:00
Vladimir Diaz
a384933195
Edit the format of _type entries, which are now lowercase 2017-07-12 15:05:17 -04:00
Vladimir Diaz
639818a529
Add new project metadata that uses lowercase _type entries 2017-07-12 15:04:06 -04:00