Vladimir Diaz
dd8a7eb0dd
Review test_indefinite_freeze_attack.py and updater.py. Minor edits made
2016-03-17 11:36:11 -04:00
Sebastien Awwad
1ee1f92a4d
added clarifying comments to repo and key loading
2016-03-16 14:27:40 -04:00
Sebastien Awwad
4d8732bee8
removing unnecessary loading of root keys in test
2016-03-16 14:23:58 -04:00
Sebastien Awwad
9137986301
Removing superstitious 0.1s sleeps.
2016-03-16 14:14:26 -04:00
Sebastien Awwad
893911614a
fixing minor comment wording
2016-03-16 11:54:18 -04:00
Sebastien Awwad
85a7502603
- Tweaked the sleep durations to be more minimal, based on time that had passed. (updater.refresh() can take a while.)
...
- Put code back into working state after some failure mode debugging of a separate bug by Vlad and me.
- Expanded some comments, added explanations, and made a few others more readable.
- Removed an unnecessary path recalculation and an unnecessary sleep.
2016-03-16 11:50:11 -04:00
Sebastien Awwad
ab4cbdde52
guaranteed test failure: unprintable on 3, printable on 2
2016-03-14 18:08:24 -04:00
Sebastien Awwad
fee25a44cd
sharing bug with Vlad
2016-03-14 17:39:04 -04:00
Sebastien Awwad
8250223207
removed unnecessary temp variable reload line; switched names of Test 1 and Test 2
2016-03-14 16:30:12 -04:00
Sebastien Awwad
08e005330a
Minor log message improvements.
2016-03-14 15:51:58 -04:00
Sebastien Awwad
6a4982fa8a
Improving comments in test_indefinite_freeze_attack
2016-03-14 12:59:46 -04:00
Sebastien Awwad
0fa4518929
comment improvement in indefinite freeze attack test
2016-03-11 17:01:35 -05:00
Sebastien Awwad
66f56271d2
This is a manual squash commit of detect_expiry_322, to avoid merge conflicts.
...
Comment lines from the individual commits include:
1. Fix #322 by detecting expiry of stale files. initial attempt
2. temp commit of files from Soma
3. removing freeze_attack_stale_expiry and leaving the test added to indefinite freeze attack
4. fixing indefinite freeze attack test: now incorporates old reject-freshly-downloaded-but-expired-timestamp test as well as reject-stale-already-present-but-expired-snapshot test
5. small refinements to indefinite freeze attack test
6. Pulled the recursion out of the except block in refresh() to avoid unprintable nested exceptions.
7. Added comments to the last commit (retry_once)
8. Merge pull request #1 from awwad/detect_expiry_322_temp (removing cruft in another branch)
2016-03-10 15:01:12 -05:00
Vladimir Diaz
c6ffcf0d83
Update the unit tests for _versioninfo_has_been_updated() (to use the renamed function)
2016-02-26 13:35:37 -05:00
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