Commit graph

69 commits

Author SHA1 Message Date
Vladimir Diaz
f2514bdc4d
Add copyright and license to test-related files
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-30 13:33:11 -05:00
Vladimir Diaz
e814345179
Minor cosmetic edit of test_repository_tool.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-20 14:10:29 -05:00
Vladimir Diaz
72d7ebfd8d
Remove py26 conditional import statements 2017-09-21 17:16:29 -04:00
Vladimir Diaz
b7c3b7c198
Fix remaining unit test failures for repository_tool.py 2017-08-25 17:25:32 -04:00
Vladimir Diaz
134bf073a1
Remove compression from repository tool and its unit test 2017-08-25 16:13:05 -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
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
5cdb0a27d8 Fix remaining unit test failures for repository_tool.py
Update repository_lib.py to support multiple repositories (TODO: fix remaining unit tests failures for this module)
2017-02-08 11:56:17 -05:00
Vladimir Diaz
bd2bdee39d Update repository_tool unit tests to support multiple repositories (repository_lib.py remains) 2017-02-07 16:48:33 -05:00
Vladimir Diaz
90155962a7 Fix unit tests to use tuf.settings.repositories_directory 2017-02-06 16:19:58 -05:00
Vladimir Diaz
0b4d4d25f1 Fix import statements for the tools 2017-01-12 15:22:24 -05:00
Vladimir Diaz
f9660b4797 More import statementment replacements to various modules 2017-01-10 17:05:12 -05:00
Vladimir Diaz
f15b03ddb0 Cover remaining code coverage for repository_tool.py 2016-11-11 17:19:22 -05:00
Vladimir Diaz
fd816a69ac Cosmetic edits and minor code coverage improvement to repository_tool.py 2016-11-11 12:30:24 -05:00
Vladimir Diaz
4845e8c54d Code coverage for 4 more methods 2016-11-11 11:52:14 -05:00
Vladimir Diaz
5e8bef7c72 Add some coverage for repository_tool.py 2016-11-10 16:58:59 -05:00
Vladimir Diaz
0e34e06d89 Add a test condition for the previously added feature for issue #319 2016-11-10 14:40:47 -05:00
Vladimir Diaz
b1367430d7 Replace instances of tufformats in test modules 2016-11-09 17:10:05 -05:00
Artiom Baloian
299ff68edd Now crypto related files are in ssl_crypto and ssl_commons 2016-11-02 17:44:32 -04:00
Artiom Baloian
b0156944bb Moved util.py, now it is common 2016-11-02 09:49:37 -04:00
Artiom Baloian
b21ad871b9 Now ed25519_keys.py and hash.py modules are common for
TuF and in-toto
2016-11-01 10:55:23 -04:00
Artiom Baloian
b07d9a5d0f Move some part of tufformats into the common formats 2016-10-31 19:04:14 -04:00
Artiom Baloian
8247a02737 Moved TuF exceptions and schem into the ssl_commons 2016-10-31 11:58:05 -04:00
Artiom Baloian
7098cdbc3a Move _vendor dir and split formats into the formats and tufformats 2016-10-28 18:37:28 -04:00
Vladimir Diaz
0324263988 Verify the changed behavior of status() 2016-10-27 16:30:30 -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
aad5c94b04 Add code coverage for load_repository 2016-10-25 17:20:44 -04:00
Vladimir Diaz
5ebef2db5c Cover remaining code coverage for repository_lib.py 2016-10-24 16:41:43 -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
e1debf8ea9 Improve code coverage for repository_tool.py 2016-09-21 09:17:37 -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
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
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
2380499029 Coverage for remaining lines of _log_status_of_top_level_roles() 2016-08-15 14:05:05 -04:00
Vladimir Diaz
f05fdd9c05 Fix remaining test failures 2016-08-04 15:37:49 -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
b777188a54 Update tests following the change to Ed25519 keys 2016-06-17 09:57:54 -04:00
Vladimir Diaz
a8a8b13864 Initial changes for prepended digests and version numbers 2016-04-28 08:57:07 -04:00
Vladimir Diaz
b8ce4bbfcd Implement changes to write and load the new format of snapshot.json
The repository tools should properly write and load consistent versions of root.json and snapshot.json.  Version numbers were previously prepended to these two roles.
2016-04-14 08:13:50 -04:00
Vladimir Diaz
9c0064e39d Fix remaining issues with add_target_to_bin() and remove_target_from_bin() 2016-03-24 13:55:44 -04:00
Vladimir Diaz
251bbaa93c Remove full name for hashed bin delegation, update comment, and remove outdated test condition 2016-03-24 13:16:43 -04:00
Vladimir Diaz
b982c063db Latest WIP 2016-03-22 11:26:55 -04:00
Vladimir Diaz
a111661a72 Fix roledb.get_delegated_roles() and test cases in test_repository_tool.py 2016-03-02 13:08:46 -05:00
Vladimir Diaz
987411ff04 Resolve remaining issues with writing / loading the new changes 2015-10-20 09:16:39 -04:00
Vladimir Diaz
47471db40f Add import statements for unvendored dependencies in the unit tests 2015-06-02 10:28:02 -04:00
Vladimir Diaz
3293745d05 Improve code coverage for repository_tool.py 2015-04-02 16:38:18 -04:00
Vladimir Diaz
b7cf7e6588 Improve each module's code coverage to at least 90%
Update unit tests for download.py, repository_lib.py, repository_tool.py, and updater.py.
Re-generate repository data so that compressed metadata may be tested.
2015-02-11 13:22:46 -05:00