zanefisher
0ff714cd40
Merge remote-tracking branch 'upstream/demo2' into demo2
2013-09-14 16:47:36 -04:00
zanefisher
613cb19898
Bring back tuf/log.py from edec089965.
2013-09-14 16:47:04 -04:00
dachshund
e003db34c5
Add a log message.
2013-09-14 00:07:26 -04:00
dachshund
8187be5232
Simplify exception text in console handler.
2013-09-13 23:47:37 -04:00
zanefisher
4a08c0c25e
Redo accidentally undone changes.
2013-09-13 18:52:47 -04:00
dachshund
fe100ab80a
Remove executable bits on some non-executable files.
2013-09-13 17:59:31 -04:00
dachshund
b5263e4322
Fix variable shadow bug, use absolute import in two integration tests.
2013-09-13 17:39:57 -04:00
zanefisher
502a0102ec
More integration test tidying-up
2013-09-13 17:39:29 -04:00
dachshund
4c81247bc9
Offer option to remove console handler; fix variable shadow bug.
...
The rest of the integration tests will need updates due to the fix of
the variable shadow bug.
2013-09-13 17:34:51 -04:00
dachshund
e577b3500e
Add a filter to the logging console handler to simplify exception text.
2013-09-13 17:01:18 -04:00
zanefisher
f4eedf1d62
Rename boolean perameter 'TUF' to 'using_tuf' in every test.
2013-09-13 15:30:11 -04:00
zanefisher
419b1dc24e
Merge remote-tracking branch 'upstream/demo2' into demo2
2013-09-13 13:39:44 -04:00
zanefisher
32427505ac
Clean up extraneous dependencies test following Vlad's review.
2013-09-13 13:38:50 -04:00
vladdd
83ac535d32
Fix test_updater.py test case failure
...
Rebuild server repository in test_5_all_targets() - other test cases may not have properly restored the contents of the repository.
2013-09-13 09:54:10 -04:00
zanefisher
4f8054755c
Merge remote-tracking branch 'upstream/demo2' into demo2
2013-09-12 14:54:25 -04:00
zanefisher
a5692a1441
Update extraneous dependecies test to expect the new NoWorkingMirrorError.
2013-09-12 14:53:57 -04:00
vladdd
04c4ffe2e2
Merge branch 'demo2' of https://github.com/theupdateframework/tuf into demo2
2013-09-12 08:14:47 -04:00
vladdd
dc146f97a1
Fix test_util_test_tools.py test case failure
...
Clear the keystore before initializing the util_test_tools.py repository and again after every test case exits.
2013-09-12 08:14:18 -04:00
dachshund
dd0919c673
Merge remote-tracking branch 'origin/demo2' into demo2
2013-09-11 17:46:47 -04:00
dachshund
26551b95c9
Fix #102 .
2013-09-11 17:46:29 -04:00
vladdd
a749c1d6bf
Fix test_keystore.py unit test failure
...
Ensure the keystore is empty prior to running the test cases. The courtesy bug is spreading.
2013-09-11 13:33:28 -04:00
vladdd
b7d86eca36
Fix unit test failure in test_roledb.py
...
Ensure roledb is empty prior to running the test cases. roledb.py may have been modified by other unit tests that did not properly clean up.
2013-09-11 12:36:44 -04:00
vladdd
51997cba5d
Merge branch 'demo2' of https://github.com/theupdateframework/tuf into demo2
2013-09-11 11:04:48 -04:00
vladdd
793050be14
Continue self-review of PyCrypto changes to keystore.py
2013-09-11 11:03:52 -04:00
dachshund
96c0aaaa9e
Replace relative with absolute imports for tests.
2013-09-10 17:33:00 -04:00
vladdd
d826a8ac6a
Review and update crypto comments in rsa_key.py
2013-09-10 13:23:46 -04:00
dachshund
9cbffa1660
Merge unit test fix from @zanefisher; fix a unit test bug.
2013-09-10 00:56:30 -04:00
dachshund
a8d32a2220
Merge branch 'demo2' of https://github.com/zanefisher/tuf into demo2
...
Conflicts:
tests/unit/test_updater.py
2013-09-10 00:39:49 -04:00
dachshund
c20f0a1455
Even better organization of tests; remove evpy.
...
Require higher versions of PyCrypto.
2013-09-10 00:24:34 -04:00
zanefisher
dcd71ab1b7
Clean up download function patching in test_updater's module teardown.
2013-09-09 22:32:26 -04:00
dachshund
4bd5433c23
Much better organization of tests.
2013-09-09 22:14:01 -04:00
dachshund
04494ec657
Fix a bug in updater unit test.
2013-09-09 21:32:09 -04:00
dachshund
9ddd2617f5
Redundantly verify file length in updater.
...
You may argue that the redundancy is unnecessary (pun intended), but it
is there because redundancy means one safety check will work where
another fails. I introduced this redundant file length check because the
updater unit test is mocking the download functions, which means that
file length checks in the download functions are being bypassed.
Redundancy is a good thing for safety.
2013-09-09 21:21:32 -04:00
dachshund
a7f14e5334
Rename system->integration tests.
2013-09-09 17:00:11 -04:00
dachshund
6e27806b80
Use relative, instead of absolute, imports in system tests.
2013-09-09 16:54:27 -04:00
dachshund
3945520a67
Relative, instead of absolute, imports in unit tests.
2013-09-09 16:51:01 -04:00
dachshund
1efc1ee5b9
Remove console logging from the wrong place.
2013-09-09 16:05:51 -04:00
dachshund
9877d8b1b6
Fix #74 .
2013-09-09 15:48:43 -04:00
vladdd
43d11144e5
Add pycrypto requirement to setup.py
2013-09-09 14:40:08 -04:00
vladdd
41c9f8054f
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
dachshund
f90b4b72f9
Accurately account for slow server start grace period.
2013-09-09 13:50:17 -04:00
vladdd
20fd7cc73a
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
dachshund
5bc997117f
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
dachshund
801b4a1922
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
c7979f09e7
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