Commit graph

1110 commits

Author SHA1 Message Date
Vladimir Diaz
09c3ceb993 Update README.md
Add extension to requirements file.
2014-06-26 09:31:09 -04:00
Vladimir Diaz
ae5c1d56df Update README.md
Remove extra whitespace.
2014-06-26 09:29:49 -04:00
Vladimir Diaz
1968191cb8 Update README.md
Add instructions for contributors and minor edits to installation section.
2014-06-26 09:28:09 -04:00
Vladimir Diaz
707d316491 Update README.md
Fix target path variable name in custom data example.
2014-06-25 10:41:56 -04:00
Vladimir Diaz
31fdd2fd79 Merge pull request #230 from vladimir-v-diaz/develop
Implementation of custom FILEINFO and documentation changes to repository_tool.py README
2014-06-25 10:30:56 -04:00
Vladimir Diaz
5d766d3d6f Review and update docstrings and README. 2014-06-25 09:45:55 -04:00
Vladimir Diaz
21cbaf8f63 Update README.md
Add example for accessing fileinfo and custom data of target objects.
2014-06-25 09:01:06 -04:00
Vladimir Diaz
2e3f6fb096 Update README.md
Add example of custom data included with repository.targets.add_target()
2014-06-25 08:43:52 -04:00
Vladimir Diaz
528e33dd77 Add test condition for custom data in test_updater.py.
The updater client may reference target information (including 'custom') by accessing the dictionary returned by updater.py.

Example:
target = updater.target('LICENSE.txt')
target['filepath']
target['fileinfo']['length']
target['fileinfo']['hashes']
target['fileinfo']['custom']
2014-06-24 10:31:05 -04:00
Vladimir Diaz
337c9f9ffc Regenerate '/tests/repository_data/' to include example of custom data. 2014-06-24 10:17:14 -04:00
Vladimir Diaz
f6a9b7fc58 Verify that generated Targets metadata can contain custom data. 2014-06-24 09:38:47 -04:00
Vladimir Diaz
d5c56e550d Add test condition for repository_tool.Target().add_target() custom data. 2014-06-24 08:58:29 -04:00
vladdd
88d686b258 Initial implementation of custom FILEINFO 2014-06-23 13:33:01 -04:00
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