Commit graph

431 commits

Author SHA1 Message Date
Vladimir Diaz
ae59f8ff5b Remove test_schema.py 2017-01-09 17:03:16 -05:00
Vladimir Diaz
a285f06689 Remove crypto-related tests (they now exist in the SSL module) 2017-01-09 17:02:13 -05:00
Vladimir Diaz
03d98b1cd3 Fix SSL statements in test_keydb.py 2017-01-09 16:53:23 -05:00
Vladimir Diaz
8da0d92f44 Update ssl_crypto submodule and propogate changes to TUF 2016-11-16 11:08:22 -05:00
Vladimir Diaz
fe3aa99d59 Add coverage for remove_obsolete_targets() 2016-11-14 16:40:26 -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
acf5bfddac Add coverage for _delete_obsolete_metadata()
This function was recently updated to ignore root.json (and continue).  Add coverage for it now
2016-11-10 16:21:57 -05:00
Vladimir Diaz
cfaf865186 Force Coverage to ignore the scripts like basic_client.py and vendor'd modules 2016-11-10 16:17:13 -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
0d59cac627 Fix remaining issues 2016-11-10 09:49:08 -05:00
Vladimir Diaz
e999f55a5d Fix remaining test modules that try to import tufformats. 2016-11-10 09:24:33 -05:00
Vladimir Diaz
b1367430d7 Replace instances of tufformats in test modules 2016-11-09 17:10:05 -05:00
Vladimir Diaz
ddde0d700b Remove tufformats from test_formats.py 2016-11-09 15:58:29 -05:00
Vladimir Diaz
5d14de8a61 Merge branch 'tuf_merge' of https://github.com/baloyan/tuf into baloyan-tuf_merge
Conflicts:
	tests/test_formats.py
	tests/test_updater.py
	tuf/client/updater.py
	tuf/formats.py
	tuf/repository_lib.py
2016-11-09 14:32:59 -05:00
Vladimir Diaz
c65129ad7e Update tests following rename of target() 2016-11-07 12:33:08 -05:00
Vladimir Diaz
e6a4b5eef0 Rename TARGETFILE_SCHEMA to TARGETINFO_SCHEMA 2016-11-07 11:41:34 -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
1bf7ec1135 Moved pycrypto_keys, now it is common 2016-11-02 12:35:02 -04:00
Artiom Baloian
a4dae8e1ff Moved pyca_crypto_keys, now it is common 2016-11-02 11:50:21 -04:00
Artiom Baloian
b0156944bb Moved util.py, now it is common 2016-11-02 09:49:37 -04:00
Artiom Baloian
b793c81739 Added simple_settings, now it is a requirement of TuF.
Rename conf.py into the settings.py an changed import call.
2016-11-01 15:38:40 -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
812a85c393 Finish splitinf formats.py file, now there is formats.py for commons
and tufformats which is TuF specific
2016-10-31 20:02:29 -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
0e6e3418d2 Add code coverage for non-dirty roles given to role.db.unmark_dirty() 2016-10-27 16:38:07 -04:00
Vladimir Diaz
0324263988 Verify the changed behavior of status() 2016-10-27 16:30:30 -04:00
Vladimir Diaz
986ffcb730 Add test case for unmark_dirty() in roledb 2016-10-27 15:15:50 -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
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
5f2956a09d Edit to comments 2016-10-26 12:01:09 -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
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
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
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