Commit graph

1097 commits

Author SHA1 Message Date
vladdd
4e3b40cd95 Minor edits to repository_tool.py. 2014-06-22 20:01:28 -04:00
vladdd
a370c1e93b Add links and Python prompts. 2014-06-21 20:18:46 -04:00
vladdd
136b45ab7d Reorder load_signing_key() calls.
The Targets section of the README separated import_rsa_privatekey_from_file() from load_signing_key().  To improve readability, reorder them so that load_signing_key() calls come immediately after the key import method calls.
2014-06-20 21:28:00 -04:00
Vladimir Diaz
2358830c37 Merge pull request #229 from vladimir-v-diaz/develop
Improve test coverage for repository_lib.py
2014-06-19 13:11:41 -04:00
Vladimir Diaz
c0a61e14e0 Add test coverage for repository_lib._log_status_of_top_level_roles().
Verify that status() does not raise 'tuf.InsufficientKeysError' nor 'tuf.UnsignedMetadataError'.
2014-06-19 11:24:07 -04:00
Vladimir Diaz
b105c7853c Add test condition for repository_lib.create_tuf_client_directory().
Verify that non-OSError.EEXist exceptions are re-raised.
2014-06-19 09:50:20 -04:00
Vladimir Diaz
f6f5cc3d75 Merge pull request #228 from vladimir-v-diaz/develop
Review, update, document, and test #216.
2014-06-18 16:02:16 -04:00
vladdd
c22a3a5307 Fix expected format of the 'method_name' argument. 2014-06-18 15:17:38 -04:00
Vladimir Diaz
5102dda144 Merge branch 'dachshund-remove_target_from_bin' into develop 2014-06-18 12:45:20 -04:00
Vladimir Diaz
882871ccfc Add missing test case for remove_target_from_bin(). 2014-06-18 12:39:39 -04:00
Vladimir Diaz
9a90a808e9 Update comments and add missing docstrings in PR #216.
Update add_target_to_bin() and remove_target_from_bin().
2014-06-18 12:39:01 -04:00
Vladimir Diaz
fd60208782 Merge branch 'remove_target_from_bin' of https://github.com/dachshund/tuf into dachshund-remove_target_from_bin 2014-06-18 09:22:42 -04:00
Vladimir Diaz
49a3a4990b Fix comment / typo in unsafe_download() test condition 2014-06-18 09:06:49 -04:00
Vladimir Diaz
2ff17021df Merge pull request #227 from vladimir-v-diaz/develop
Update test_download.py comments and test case.
2014-06-17 14:25:25 -04:00
Vladimir Diaz
a57c97749a Fix test_download.py comments for the test case dealing with incorrect file lengths. 2014-06-17 13:45:42 -04:00
Vladimir Diaz
5487a5b497 Merge pull request #226 from vladimir-v-diaz/develop
Add self-signed certificates, simple_https_server.py, and a test case for https downloads
2014-06-17 13:38:51 -04:00
Vladimir Diaz
6dafddc10f Add test case for https connection. 2014-06-17 10:28:56 -04:00
Vladimir Diaz
9d087389a9 Add the simple https server module. 2014-06-17 10:25:16 -04:00
Vladimir Diaz
e83045f162 Add self-signed certificates to be used by simple_https_server.py 2014-06-17 10:20:57 -04:00
JustinCappos
3279e465df Update README.md 2014-06-16 16:22:58 -04:00
JustinCappos
643ff87c88 Update README.md 2014-06-16 16:22:22 -04:00
JustinCappos
5745de44a6 Update README.md 2014-06-16 16:21:57 -04:00
JustinCappos
8edd0ddfe1 Update METADATA.md 2014-06-16 16:19:25 -04:00
JustinCappos
766f27f885 Update METADATA.md 2014-06-16 16:18:45 -04:00
Vladimir Diaz
68b2337fbf Merge pull request #225 from vladimir-v-diaz/develop
Santiago's #224 pull request (with minor edit) and cosmetic edits to miscellaneous modules
2014-06-16 13:28:35 -04:00
vladdd
40a6539f45 Merge branch 'SantiagoTorres-generate_switches' into develop 2014-06-16 13:18:52 -04:00
vladdd
f0ac659110 Move optparse import statement.
Organize import statements of standard Python and TUF modules into separate blocks.
2014-06-16 13:11:35 -04:00
vladdd
f26f6dc4b2 Merge branch 'generate_switches' of https://github.com/SantiagoTorres/tuf into SantiagoTorres-generate_switches 2014-06-16 13:04:21 -04:00
vladdd
8a47f5fe4d Minor cosmetic edits to formats.py 2014-06-15 22:02:07 -04:00
vladdd
b8578cfd37 Minor cosmetic edits to sig.py and util.py. 2014-06-14 20:31:21 -04:00
vladdd
3481586c87 Minor cosmetic edits to schema.py. 2014-06-13 18:27:57 -04:00
Santiago Torres
5a097faaf8 Added switches to the generate script
Added two switches to the generate script:

  -k (or --keys), which forces the creation of new keys.
  -d (or --dry-run), which skips the actual writing or copying phases

The second option might be useful in the future, and helped me debug the
optparse module, so I left it there.
2014-06-13 15:33:07 -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