Commit graph

1112 commits

Author SHA1 Message Date
Santiago Torres
533fda5608 Merge branch 'develop' of github.com:theupdateframework/tuf into developer-tools 2014-06-13 15:40:39 -04:00
dachshund
ac38e5518e Acknowledge the NSF. 2014-06-13 11:44:46 +08:00
Vladimir Diaz
548663e389 Merge pull request #223 from vladimir-v-diaz/develop
Add missign test cases to download.py and updater.py.
2014-06-12 10:33:53 -04:00
Vladimir Diaz
e4c98d38ba Add missing test cases for download.py and and updater.py. 2014-06-12 09:33:12 -04:00
Vladimir Diaz
bd2f510b6e Merge pull request #222 from vladimir-v-diaz/develop
Add missing test conditions to test_repository_lib.py and minor edits to modules
2014-06-11 12:20:33 -04:00
Vladimir Diaz
0c6b360952 Add missing test conditions for test_repository_lib.py and minor edits to modules. 2014-06-11 11:29:00 -04:00
Vladimir Diaz
aa639d13f7 Merge pull request #220 from vladimir-v-diaz/develop
Allow proper loading of partial metadata, update requirement files, and minor edits to repository_lib.py and integration tests.
2014-06-10 10:21:03 -04:00
Vladimir Diaz
80915a194e Cosmetic edits to repository_lib.py. 2014-06-10 09:38:06 -04:00
Vladimir Diaz
74c0120ed4 Increase sleep time after starting simple server in integration tests. 2014-06-10 09:26:09 -04:00
Vladimir Diaz
cbde52c0f7 Allow partial metadata to be properly loaded with zero good signatures.
Previously, the repository tool allowed partial metadata to be written with zero good signatues and later successfully loaded.  However, the partial metadata was not properly marked by load_repository().  The 'partial_loaded' flag is now set (if partial metadata is written with zero good signatures) and matches the behavior of partial_write().
2014-06-10 08:47:10 -04:00
Vladimir Diaz
70a3510afc Minor updates to requirement files. 2014-06-10 08:28:29 -04:00
Vladimir Diaz
1b323474e0 Merge pull request #219 from vladimir-v-diaz/develop
Remove tox.ini dependency, improve pycrypto_keys test coverage, and add missing download.py docstrings.
2014-06-09 13:34:09 -04:00
vladdd
15592b2e15 Add missing docstrings. 2014-06-09 12:34:58 -04:00
vladdd
31bfc5fce5 Remove incorrect dependency from tox.ini.
Adding 'unittest' to tox.ini fails for Python > 3.0 installations.
2014-06-08 22:19:37 -04:00
vladdd
9e0392bb80 Add missing test coverage for pycrypto_keys.py. 2014-06-08 22:16:43 -04:00
Vladimir Diaz
5fc8285115 Merge pull request #218 from vladimir-v-diaz/develop
Initial implementation of authoritative delegations.
2014-06-07 21:02:34 -04:00
vladdd
744be00cbc Initial implementation of authoritative delegations. 2014-06-07 20:29:18 -04:00
vladdd
39e1e8b080 Add py26, py32, py33, py34 to setup.py. 2014-06-06 20:26:52 -04:00
Vladimir Diaz
61aecba391 Merge pull request #217 from vladimir-v-diaz/develop
Support Python 2 + 3
2014-06-06 20:24:03 -04:00
vladdd
546b1d69d6 Update py2.6 requirements in tox.ini. 2014-06-06 19:39:25 -04:00
vladdd
19c69487b0 Merge branch 'develop' of https://github.com/vladimir-v-diaz/tuf into develop 2014-06-06 18:57:32 -04:00
vladdd
17b230abdd Support Python 2.6. 2014-06-06 18:57:23 -04:00
Vladimir Diaz
1c1cd0f192 Update / fix remaining Python 2 + 3 doctests.
Remove test_slow_retrieval_attack.py print statements.
2014-06-06 08:37:31 -04:00
Vladimir Diaz
0e9a1de4b1 Merge branch 'develop' of https://github.com/vladimir-v-diaz/tuf into develop 2014-06-06 07:33:11 -04:00
Vladimir Diaz
091cfe9aeb Increase sleep time after starting simple server in affected tests. 2014-06-06 07:32:03 -04:00
vladdd
21bbbedbb8 Fix test_util.py test case failure in py2.7. 2014-06-05 19:09:45 -04:00
Vladimir Diaz
797bab5ddc Fix Python 2 + 3 JSON consistency issue and re-generate repository data.
Explicitly specify the JSON separators for Python 2 + 3 consistency.
2014-06-05 11:17:30 -04:00
Vladimir Diaz
66f4b88ef2 Update repository tool diagram and coverage.
Fix text box alignment in diagram.
Omit coverage of repository tool prompt and getpass.
Minor coverage update.
2014-06-03 14:59:56 -04:00
Vladimir Diaz
fbb10a36c9 Refactor repository_tool.py and improve test coverage.
Created repository_lib.py.
2014-06-03 14:32:44 -04:00
Vladimir Diaz
80ad012bc3 Re-generate repository data. 2014-06-03 14:28:46 -04:00
Vladimir Diaz
65f30a7bd8 Improve test coverage.
Update unit tests for pycrypto_keys, schema, ed25519_keys, and affected modules.
2014-05-30 12:47:33 -04:00
Vladimir Diaz
dc167e4a27 Address Python 3.2 byte-string compatibility issues. 2014-05-29 12:59:36 -04:00
Vladimir Diaz
71b1d38c1b Update slow retrieval server and fix integration tests.
Update the slow retrieval server, integration tests, and the download module to address issues with unexpected exceptions and bytes.
2014-05-28 12:11:31 -04:00
Santiago Torres
ce7316512c Merge branch 'develop' of github.com:theupdateframework/tuf into developer-tools 2014-05-28 11:44:28 -04:00
vladdd
6b8b2399a2 Finish unit tests for Python2 + 3 support.
All unit tests updated / running for Python 2 + 3.
TODO: Fix non-Python 3 issue with util.py.
2014-05-27 13:55:48 -04:00
vladdd
bc99524e2b Finish initial refactor of slow retrieval attack. 2014-05-13 12:53:50 -04:00
vladdd
e4bd9a7ba2 [WIP] Refactor download.py 2014-05-11 22:59:42 -04:00
vladdd
c5fd17ab3e Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop
Conflicts:
	tests/test_hash.py
	tests/test_keydb.py
	tuf/formats.py
	tuf/keydb.py
	tuf/repository_tool.py
2014-05-10 20:26:06 -04:00
Vladimir Diaz
8684253675 [WIP] Python 2+3.
Mostly unicode-related changes for crypto modules.
2014-05-06 15:24:39 -04:00
Vladimir Diaz
3e2bcb1089 Merge pull request #213 from SantiagoTorres/expiration_timedelta_fix
Fixes wrong schema when adding an expiration that contains microseconds
2014-05-06 09:12:24 -04:00
Santiago Torres
13da4c5b4a Updated side effects in the repository tool expiration setter
The expiration setter's docstring now mentions the fact that the
microseconds value in the given datetime object will be discarded if it
is non-zero.
2014-05-05 11:12:23 -04:00
Santiago Torres
84d676192f Updated test case for the expiration setter (microseconds truncation)
The new test tries to make the fact that the datetime object given will
contain microseconds. It also tests for the fact that the microseconds
value is truncated after being set.
2014-05-05 11:10:40 -04:00
Vladimir Diaz
6f9b814a3e Update README.md 2014-05-03 19:06:07 -04:00
Vladimir Diaz
c12c802007 Update README.md 2014-05-03 19:01:59 -04:00
vladdd
c9e3b6046e Address Issue #214.
Allow validation of specific libraries rather than checking all of them in check_crypto_libraries().
Log warning if the repository tool is imported but has not been properly installed: $ pip install tuf[tools].
Modify format string of console log messages.
2014-05-03 18:03:25 -04:00
Santiago Torres
1d5c9a00f6 Updated test case for the expiration setter
The test case for the expiration setter now includes a set case in which
the microseconds value is forced to be one. This is likely to happen
when users try to set expirations using datetime.datetime.today() or
functions that return the actual clock, which have microsecond
resolution.
2014-05-03 12:11:10 -04:00
Santiago Torres
46fbfb3bc2 Fixes wrong schema when adding an expiration that contains microseconds
In the case we want a different expiration date on any role, we are
adviced to do this:

  repo.role.expiration = datetime.datetime(some value).

In the case we want to use a date somewhere in the future, a normal
approach would be to use time deltas:

  repo.role.expiration = datetime.today() + timedelta(weeks=x)

If we use this method we won't be able to set the value since we are
most probably producing a datetime object that contains *microseconds*.
According to the python specification, the timestamp produced will
contain the microseconds value unless it is 0.

The simple fix for this issue is to force the microseconds value to be 0
before working with the datetime object.
2014-05-02 19:30:02 -04:00
Santiago Torres
cc7f69ea30 Merge branch 'develop' of github.com:theupdateframework/tuf into developer-tools 2014-05-02 16:29:12 -04:00
vladdd
c16b1fdd80 Undo previous commit change to tox.ini 2014-05-01 14:15:49 -04:00
Vladimir Diaz
718b3df8b6 Improve test coverage.
Add missing 'test_log.py' [WIP]
2014-05-01 13:00:43 -04:00