Commit graph

268 commits

Author SHA1 Message Date
Vladimir Diaz
55f1a5bad3 Merge branch 'develop' of github.com:theupdateframework/tuf into 1.0-review 2016-01-27 17:11:16 -05:00
Vladimir Diaz
f38d99ab27 Add the new path to the SSL certificate used for testing 2016-01-27 16:35:23 -05:00
Vladimir Diaz
5ce17a3945 Add the newly-generated SSL cert and key to simple_https_server.py 2016-01-27 16:32:59 -05:00
Vladimir Diaz
dfbdc5aaea Add SSL certificate and key used to test https connections 2016-01-27 16:31:33 -05:00
Vladimir Diaz
1f06c656ea Remove certificates used to test https connections 2016-01-27 16:30:52 -05:00
Vladimir Diaz
50a65e56ba Merge branch 'develop' of github.com:theupdateframework/tuf into test_https_connection 2016-01-26 15:26:45 -05:00
Vladimir Diaz
b50960a056 Update the test case for create_rsa_signature()
Verify that ValueError is now raised
2016-01-25 11:42:15 -05:00
Vladimir Diaz
284e8008a4 Fix comment for generate_rsa_public_and_private test case
The incorrect comment  was previously written for PyCrypto.  Also remove a call to generate_rsa_public_and_private(2050) that is actually valid under pyca/cryptography
2016-01-21 16:57:42 -05:00
Vladimir Diaz
ddec8ab44a Update aggregate_tests.py
Decrease the verbosity of the test runner so that only test failures are shown.
2016-01-21 13:25:58 -05:00
Vladimir Diaz
c45ce4f060 Merge branch 'develop' of https://github.com/theupdateframework/tuf into test_https_connection 2016-01-21 11:12:22 -05:00
Vladimir Diaz
25ba4001c2 Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop 2016-01-20 10:52:26 -05:00
Vladimir Diaz
cb687b4c2f Import tuf.log in test_init and fix logger name. Issue #303.
In PR #307, tuf.log is no longer imported by __init__.py.  Add an import statement for tuf.log to fix missing handler warning in 'test_init.py.  The logger name specified is also incorrect.
2016-01-20 10:29:58 -05:00
Vladimir Diaz
47cae502fa Allow users to specify the path (via conf.py) to save log files 2016-01-14 17:25:08 -05:00
David Halls
c859eeb258 Address code review comments 2016-01-13 23:02:17 +00:00
Vladimir Diaz
b5f7a1aa8d Review test_updater.py 2015-10-28 14:26:49 -04:00
Vladimir Diaz
fab23480b3 Review 'test_repository_lib.py' 2015-10-28 11:45:01 -04:00
Vladimir Diaz
7bf14b3bc4 Review 'test_replay_attack' 2015-10-27 17:24:57 -04:00
Vladimir Diaz
2541276320 Review 'test_mix_and_match_attack.py 2015-10-27 17:22:14 -04:00
Vladimir Diaz
25d98780fb Review 'test_extraneous_dependencies_attack.py' 2015-10-27 17:15:46 -04:00
Vladimir Diaz
0912495b2b Review 'test_formats.py' 2015-10-27 16:55:51 -04:00
Vladimir Diaz
4cb851ca0a Fix remaining issues with unit tests after implementing version numbers in snapshot.json 2015-10-27 16:11:11 -04:00
Vladimir Diaz
987411ff04 Resolve remaining issues with writing / loading the new changes 2015-10-20 09:16:39 -04:00
Vladimir Diaz
14ca0d1565 Update the repository test data following the addition of the 'compression algorithms' key in root.json 2015-10-20 09:14:21 -04:00
Vladimir Diaz
d993ccf35e Generate a repository for the unit tests that contains the changes to the snapshot role 2015-10-15 09:53:54 -04:00
Vladimir Diaz
7bbdd87117 Update the unit test for updater.py after implementing versioninfo 2015-10-15 09:52:14 -04:00
Vladimir Diaz
3fc1e59000 Initial implementation of stored version numbers in snapshot.json 2015-09-22 07:31:30 -04:00
Vladimir Diaz
e9b2271e6d Check the format of 'data' arguments in pycrypto_keys.py 2015-08-31 15:33:51 -04:00
Vladimir Diaz
398555f32e Review edits up to create_rsa_encrypted_pem().
Add checks against invalid 'data' arguments in relevant functions.
2015-08-28 17:24:57 -04:00
Vladimir Diaz
bc0ba6b8d8 Add whitespace for readability 2015-08-26 17:31:21 -04:00
Vladimir Diaz
116f3b335b Remove incorrectly loaded 'snapshot' key in test case 2015-08-26 11:09:30 -04:00
Vladimir Diaz
97d6f5edb8 Remove status() checks used during debugging 2015-08-26 11:08:18 -04:00
Vladimir Diaz
6cbebc0606 Temporarily disable check for non-string arguments to the rsa signature methods
TODO: Modify these functions to check for non-string arguments.
2015-08-26 11:07:30 -04:00
Vladimir Diaz
115b2d2bce Ensure the PSS defaults used by PyCrypto match those set with pyca/cryptography's 2015-08-05 14:51:27 -04:00
Vladimir Diaz
b2132e3c72 Support enryption + decryption with pyca/cryptography 2015-07-30 10:19:44 -04:00
Vladimir Diaz
af85746713 Support for pyca/cryptography 2015-07-21 10:16:20 -04:00
Vladimir Diaz
7a07179279 Fix shebang statment in unit test module 2015-06-02 10:31:03 -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
1c8f41b0c0 Update import statements of unvendored dependencies 2015-06-02 08:29:22 -04:00
Vladimir Diaz
6b0d060c48 Update test_util.py
Remove print statements.
2015-05-04 23:52:20 -04:00
Vladimir Diaz
2f49561aa4 Protect against timing attacks when comparing digests
Thank you Marcin W. for spotting this.
2015-05-04 23:07:52 -04:00
Vladimir Diaz
16685d2ff3 Add configuration option for supported URI schemes
Support only 'http' and 'https' by default.  Thanks Marcin W.
2015-05-04 15:34:22 -04:00
Vladimir Diaz
d9e3ce4ce1 Expand comment for incomplete test case (testing consistent snapshots) in test_updater.py 2015-04-27 20:25:52 -04:00
Vladimir Diaz
c97d9a022d Force build failure if any of the unit tests fail 2015-04-27 18:32:09 -04:00
Vladimir Diaz
230920f74e Minor code coverage improvement to updater.py 2015-04-27 18:30:55 -04:00
Vladimir Diaz
98df2014b6 Fix minors issues with strings and remove print statements 2015-04-06 21:29:21 -04:00
Vladimir Diaz
110c8a196b Improve code coverage for updater.py 2015-04-06 20:05:41 -04:00
Vladimir Diaz
75eb79534c Improve code coverage for repository_lib.py 2015-04-03 13:46:43 -04:00
Vladimir Diaz
3293745d05 Improve code coverage for repository_tool.py 2015-04-02 16:38:18 -04:00
Vladimir Diaz
003847e73f Improve code coverage for download.py 2015-04-02 16:37:47 -04:00
Vladimir Diaz
23083fae12 Improve code coverage for repository_lib.py 2015-04-02 16:37:11 -04:00