Commit graph

1871 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
3b71451287 Convert some logger.info() statements to logger.debug() and reset roles dirtied by status() 2016-10-27 15:07:08 -04:00
Vladimir Diaz
15b6b50038 Add unmark_dirty() to repository_tool.py 2016-10-27 15:04:51 -04:00
Vladimir Diaz
58af0b5428 Add unmark_dirty() to roledb.py 2016-10-27 15:04:16 -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
12e21ff45e Merge pull request #386 from vladimir-v-diaz/develop
Reset invalid tuf.conf.CONSISTENT_METHOD in unit test
2016-10-26 13:07:42 -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
83ab631e1b Merge pull request #385 from vladimir-v-diaz/FelixWang1994-develop
Review of PR #383
2016-10-26 12:04:52 -04:00
Vladimir Diaz
5f2956a09d Edit to comments 2016-10-26 12:01:09 -04:00
Vladimir Diaz
2e487f18f3 Edit to comment block for consistent method, and to exception message 2016-10-26 12:00:20 -04:00
Vladimir Diaz
6a3d9e0bfc Edit to comment block for xrange() 2016-10-26 11:59:17 -04:00
Vladimir Diaz
6b92f2c944 Edit comment block for tuf.conf.CONSISTENT_METHOD and limit lines to less than 80 characters 2016-10-26 11:52:59 -04:00
Vladimir Diaz
06f7c9a30b Merge branch 'develop' of github.com:theupdateframework/tuf into FelixWang1994-develop 2016-10-26 10:32:13 -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
7634554c23 Merge pull request #384 from vladimir-v-diaz/develop
Remove methods (priveate) no longer supported
2016-10-25 12:56:57 -04:00
Vladimir Diaz
321b4af058 Remove functions no longer supported methods
_safely_get_metadata_file() and _unsafely_get_metadata_file()
TUF no longer stores the hash and filesize of metadata in Snapshot, so these
two methods are no longer relevant.
2016-10-25 12:47:57 -04:00
Vladimir Diaz
3baf13372d Remove function no longer being used: update_metadata_via_fileinfo()
Metadata should now only be updated via version number
2016-10-25 12:25:26 -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
Kwang100
6f0e4f97ef Update the configuration name to "hard_link"; make comments more clear 2016-10-24 11:01:48 -04:00
Kwang100
6fc38953de 1. Add new configuration "CONSISTENT_METHOD" to indicate which method to realize consistent snapshot
2. Repository_lib.py line 478 minor bug correction
3. Solve issue #374 https://github.com/theupdateframework/tuf/issues/374
4. Repoistory_tool.py line 791 TODO reminder for no-longer-used keys
5. Some other corrections on comments
2016-10-24 10:44:08 -04:00
Kwang100
221eba11ec 1. Add new configuration "CONSISTENT_METHOD" to indicate which method to realize consistent snapshot
2. Repository_lib.py line 478 minor bug correction
3. Solve issue #374 https://github.com/theupdateframework/tuf/issues/374
4. Repoistory_tool.py line 791 TODO reminder for no-longer-used keys
5. Some other corrections on comments
2016-10-21 17:57:52 -04:00
Vladimir Diaz
c5fe581bca Merge pull request #382 from vladimir-v-diaz/status_of_only_top_level_roles
Remove delegated roles from status()
2016-10-21 16:43:58 -04:00
Vladimir Diaz
57fe9c88fd Merge pull request #381 from vladimir-v-diaz/update_repository_tool_doc
Edit repository tool document
2016-10-21 16:37:55 -04:00
Vladimir Diaz
96ebe8933d Remove check for delegated roles from status() 2016-10-21 16:25:31 -04:00
Vladimir Diaz
c9d1a1ed79 Fix test_developer_tool.py test failure 2016-10-21 12:27:29 -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
c4a89dcf18 Set a chunk size lower than the minimum average download size allowed. Minor edit to slow retrieval attack section 2016-10-21 11:50:30 -04:00
Vladimir Diaz
07b4b24343 Finish edits to repository tool doc and update code to fix issues with slow retrieval errors 2016-10-21 11:36:48 -04:00
Vladimir Diaz
404398a0b6 Review and edit the Compromised Key Attack section 2016-10-20 17:09:31 -04:00
Vladimir Diaz
b5760fc10c Review and edit the Rollback Attack section 2016-10-20 16:42:34 -04:00
Vladimir Diaz
aa653da3b8 Ensure the valid file2.txt is restored in the Arbitrary Package Attack section 2016-10-20 16:19:47 -04:00
Vladimir Diaz
23549ebaa0 Verify and edit the Arbitrary Package Attack section 2016-10-20 15:53:13 -04:00
Vladimir Diaz
b5de920763 Edit the How to Perform an Update section 2016-10-20 15:36:22 -04:00
Vladimir Diaz
31c13410cb Edit up to Delegate Hashed Bins section 2016-10-20 15:22:21 -04:00
Vladimir Diaz
8273db0b8d Edit wrap-up section and format block of text 2016-10-20 15:12:32 -04:00
Vladimir Diaz
0106b01885 Add method to remove delegated roles, and fix issue with revoking a nested delegation 2016-10-20 15:01:01 -04:00
Vladimir Diaz
531b9ba61d Edit up to the Delegations section (Need to fix code for nested delegations) 2016-10-20 12:50:52 -04:00
Vladimir Diaz
b154102bd0 Edit remaining parts of the Create Top-level Metadata section 2016-10-19 16:14:31 -04:00
Vladimir Diaz
d57412ec11 Switch some logger.info() statements to logger.debug() to clean up the console 2016-10-19 16:13:42 -04:00
Vladimir Diaz
52341b6355 Edit up to the Root section 2016-10-19 15:29:19 -04:00
Vladimir Diaz
1a6480764f Format text in Keys section 2016-10-19 14:01:41 -04:00
Vladimir Diaz
e268b2f9e9 Edit the Keys section 2016-10-19 13:53:20 -04:00
Vladimir Diaz
b921372c1f Replace instances of ED25519 with Ed25519 in messages 2016-10-19 13:51:14 -04:00
Vladimir Diaz
76dc0a6a0d Use pyca-cryptography by default 2016-10-19 13:37:10 -04:00
Vladimir Diaz
5fbdd14399 Remove section for virtual machine and installation instructions 2016-10-19 13:00:31 -04:00