Commit graph

1590 commits

Author SHA1 Message Date
vladdd
41c9f8054f Remove unit and system tests from setup.py 2013-09-09 14:16:27 -04:00
vladdd
5d78f26907 Remove unit and system tests from setup.py 2013-09-09 14:16:27 -04:00
vladdd
51a2fe07ec Merge remote-tracking branch 'origin/demo2' into demo2 2013-09-09 14:01:42 -04:00
vladdd
43c48adec4 Merge remote-tracking branch 'origin/demo2' into demo2 2013-09-09 14:01:42 -04:00
dachshund
f90b4b72f9 Accurately account for slow server start grace period. 2013-09-09 13:50:17 -04:00
dachshund
772905a67e Accurately account for slow server start grace period. 2013-09-09 13:50:17 -04:00
vladimir-v-diaz
715ba55705 Merge branch 'demo2' of https://github.com/theupdateframework/tuf into demo2 2013-09-09 13:32:15 -04:00
vladimir-v-diaz
8bbb22d3c2 Merge branch 'demo2' of https://github.com/theupdateframework/tuf into demo2 2013-09-09 13:32:15 -04:00
vladdd
20fd7cc73a Merge branch 'demo2' of https://github.com/theupdateframework/tuf into demo2 2013-09-09 13:13:29 -04:00
vladdd
322ea5812d Merge branch 'demo2' of https://github.com/theupdateframework/tuf into demo2 2013-09-09 13:13:29 -04:00
vladdd
95126b9dfb Set a lower PBKDF count for some of the unit tests
The default tuf.keystore._PBKDF_ITERATIONS (90,510) slow down the unit tests considerably.  Reduce it temporarily for the unit tests depending on it and that do not test the strength of derived keys.  All 164 tests now run in approximately 2 minutes, down from approximately 17 minutes.  The lowered PBKDF count set for the unit tests is equal to the previous key derivation count used by evpy.
2013-09-09 12:19:48 -04:00
vladdd
f2a6d848a9 Set a lower PBKDF count for some of the unit tests
The default tuf.keystore._PBKDF_ITERATIONS (90,510) slow down the unit tests considerably.  Reduce it temporarily for the unit tests depending on it and that do not test the strength of derived keys.  All 164 tests now run in approximately 2 minutes, down from approximately 17 minutes.  The lowered PBKDF count set for the unit tests is equal to the previous key derivation count used by evpy.
2013-09-09 12:19:48 -04:00
dachshund
5bc997117f Fix #42. 2013-09-09 11:39:39 -04:00
dachshund
9a3820bfcf Fix #42. 2013-09-09 11:39:39 -04:00
vladdd
51f0206f42 Fix bug in test_signercli.py and update test case following PyCrypto changes
A bug in test_signercli.py prevents required keys from loading.  A password for a test keyid is modified but not properly restored.  This particular bug made it difficulty in adding a new feature (i.e., derived keys) and updating the unit tests.  We need to simplify the unit tests, specifically the removal of side effects, monkey patches, pseudo repositories/data structures, and dependency on scripts that expect user input.  'signerlib.py' should be called instead of the signer tools (e.g., signercli.py).
2013-09-09 10:19:36 -04:00
vladdd
21051f4971 Fix bug in test_signercli.py and update test case following PyCrypto changes
A bug in test_signercli.py prevents required keys from loading.  A password for a test keyid is modified but not properly restored.  This particular bug made it difficulty in adding a new feature (i.e., derived keys) and updating the unit tests.  We need to simplify the unit tests, specifically the removal of side effects, monkey patches, pseudo repositories/data structures, and dependency on scripts that expect user input.  'signerlib.py' should be called instead of the signer tools (e.g., signercli.py).
2013-09-09 10:19:36 -04:00
dachshund
801b4a1922 Upgrade TUF version number to reflect current status. 2013-09-08 17:49:07 -04:00
dachshund
a1ff2b197d Upgrade TUF version number to reflect current status. 2013-09-08 17:49:07 -04:00
dachshund
ded76410f4 Merge remote-tracking branch 'origin/demo2' into demo2 2013-09-08 12:16:11 -04:00
dachshund
1acf497e6d Merge remote-tracking branch 'origin/demo2' into demo2 2013-09-08 12:16:11 -04:00
dachshund
c7979f09e7 Merge branch 'develop' into demo2 2013-09-08 12:16:04 -04:00
dachshund
ad3a66cae3 Merge branch 'develop' into demo2 2013-09-08 12:16:04 -04:00
dachshund
8a38a1897c Update README to look better on GitHub. Read on for more on 9ff22ddd4e.
About 9ff22ddd4e: I was teaching a class of students about using GitHub,
and wanted to show that cloning a Git repository off an HTTPS url would
not give the cloner write permissions. Unfortunately, I had cloned off
the SSH url and was able to push my example modifications without
failure.
2013-09-08 12:11:40 -04:00
dachshund
f245eee707 Update README to look better on GitHub. Read on for more on 9ff22ddd4e.
About 9ff22ddd4e: I was teaching a class of students about using GitHub,
and wanted to show that cloning a Git repository off an HTTPS url would
not give the cloner write permissions. Unfortunately, I had cloned off
the SSH url and was able to push my example modifications without
failure.
2013-09-08 12:11:40 -04:00
dachshund
6d8b539f2b Recognize a possible endless data attack in the form of invalid JSON metadata. 2013-09-08 02:31:50 -04:00
dachshund
3d340de4e8 Recognize a possible endless data attack in the form of invalid JSON metadata. 2013-09-08 02:31:50 -04:00
dachshund
a96169d42a Address comments from 01db53dac6. 2013-09-08 02:14:22 -04:00
dachshund
9f1e4f60e9 Address comments from 01db53dac6. 2013-09-08 02:14:22 -04:00
dachshund
bcee1f852c Better output in slow retrieval test. 2013-09-08 02:00:45 -04:00
dachshund
dc504f0395 Better output in slow retrieval test. 2013-09-08 02:00:45 -04:00
dachshund
882bb95646 A way to mitigate #42. 2013-09-08 00:32:09 -04:00
dachshund
01db53dac6 A way to mitigate #42. 2013-09-08 00:32:09 -04:00
dachshund
4f88259ac6 A few fixes for the updater unit test. 2013-09-07 20:21:45 -04:00
dachshund
14364d01c7 A few fixes for the updater unit test. 2013-09-07 20:21:45 -04:00
dachshund
4e560bc8af Fix a bug. 2013-09-07 19:57:09 -04:00
dachshund
0c80f27cad Fix a bug. 2013-09-07 19:57:09 -04:00
dachshund
64e0987a40 Processes must wait longer for the slow retrieval test. 2013-09-07 18:33:04 -04:00
dachshund
c259b3edcb Processes must wait longer for the slow retrieval test. 2013-09-07 18:33:04 -04:00
dachshund
5c5055ccca Disable console logging in system tests. 2013-09-07 18:04:58 -04:00
dachshund
d92860c800 Disable console logging in system tests. 2013-09-07 18:04:58 -04:00
dachshund
871205a57e Fix a variable shadow bug in tuf.log. 2013-09-06 19:25:43 -04:00
dachshund
df9d9a9ad1 Fix a variable shadow bug in tuf.log. 2013-09-06 19:25:43 -04:00
dachshund
c0f8ecc75c Correctly check metadata of both compressed and uncompressed files. 2013-09-06 19:08:57 -04:00
dachshund
5b1daa5293 Correctly check metadata of both compressed and uncompressed files. 2013-09-06 19:08:57 -04:00
dachshund
561ad496b7 Rename UpdateError exception to NoWorkingMirrorError. 2013-09-06 16:58:18 -04:00
dachshund
e7704355a9 Rename UpdateError exception to NoWorkingMirrorError. 2013-09-06 16:58:18 -04:00
dachshund
fa9b7ab632 Document new functions in updater. 2013-09-06 16:34:27 -04:00
dachshund
54cab17f0a Document new functions in updater. 2013-09-06 16:34:27 -04:00
dachshund
cdffedb8fb Remove unnecessary code from test_updater. 2013-09-06 15:22:32 -04:00
dachshund
3b6bb586e2 Remove unnecessary code from test_updater. 2013-09-06 15:22:32 -04:00