Vladimir Diaz
9e93dab7b8
Update README.md
...
Fix links.
2014-07-07 20:05:42 -04:00
Vladimir Diaz
e11a87b2ec
Update client_setup_and_repository_example.md
...
Add formatting and reorganize
2014-07-07 19:24:11 -04:00
vladdd
20d5a6b3e4
Fix self.assertTrue() conditions in test_updater.py
...
A few test conditions in test_updater.py incorrectly used self.assertTrue() instead of self.assertEqual().
Fix updater.remove_obsolete_targets(), where targets in the destination directory were not being removed because target paths were treated as absolute paths by os.path.join().
2014-07-06 22:25:20 -04:00
vladdd
80a3c2deb4
Add links for diagram and client setup example.
...
Update headings and minor cosmetic edits to style.
2014-07-05 21:13:36 -04:00
Vladimir Diaz
aefb0172cf
Merge pull request #233 from vladimir-v-diaz/meskio-filepath
...
Review and Update Pull Request #232
2014-07-04 18:09:44 -04:00
vladdd
9cf9a6a8b5
Review and update Pull Request #232 .
...
Fix test conditions for updated_targets(), which incorrectly verified the expected number of updated targets with assertTrue().
Update comment for PR fix to clarify os.path.join() behavior and the expected file paths.
2014-07-04 17:50:22 -04:00
vladdd
7746b3f059
Merge branch 'filepath' of https://github.com/meskio/tuf into meskio-filepath
2014-07-04 16:45:00 -04:00
Ruben Pollan
d437964c42
Fix indentation
...
Indentation is with 2 spaces
2014-07-04 13:38:16 -05:00
Vladimir Diaz
2079ecd5d0
Merge pull request #231 from vladimir-v-diaz/SantiagoTorres-developer-tools
...
Review and update pull request #188
2014-07-03 08:47:49 -04:00
Vladimir Diaz
2371a70461
Merge branch 'developer-tools' of https://github.com/SantiagoTorres/tuf into SantiagoTorres-developer-tools
2014-07-03 07:39:53 -04:00
Vladimir Diaz
1985c450c9
Merge custom info changes, logger messages, and minor edits.
2014-07-02 11:10:50 -04:00
vladdd
48224f7274
Minor edits to basic_client.py.
2014-07-01 22:59:43 -04:00
Vladimir Diaz
f91ef52e19
Merge branch 'develop' of https://github.com/theupdateframework/tuf into SantiagoTorres-developer-tools
2014-07-01 12:56:49 -04:00
zanefisher
2463cc3cc1
Update README-developer-tools.md
2014-07-01 10:17:48 -04:00
Vladimir Diaz
59b45fdfe5
Merge branch 'SantiagoTorres-developer-tools' of https://github.com/vladimir-v-diaz/tuf into develop
2014-07-01 07:47:47 -04:00
Ruben Pollan
a74a14186b
Remove '/' from target filepath
...
os.path.join ignore previous parameters if one starts with '/'. All
targets start with '/', making updated_targets to try to open a file in
the root folder in case of a unix system.
2014-06-30 14:13:40 -05:00
vladdd
7711649469
Merge branch 'develop' of https://github.com/vladimir-v-diaz/tuf into develop
2014-06-30 14:06:27 -04:00
vladdd
2f520dd140
Review and update pull request #188 .
2014-06-30 14:04:01 -04:00
vladdd
fde19957a4
Merge branch 'developer-tools' of https://github.com/SantiagoTorres/tuf into SantiagoTorres-developer-tools
2014-06-30 07:10:56 -04:00
vladdd
7be31965e7
Minor edits.
2014-06-29 21:33:22 -04:00
vladdd
00b4c3500d
Add and fix links, move diagram to end, and rename heading.
2014-06-27 20:24:07 -04:00
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
Santiago Torres
26eb5b7e35
Added relative filepath support and increased coverage
...
After seeing the coveralls report I realized the projects were not
relocatable. While this might be convenient for some uses, moving a
project from one place to another might not be optimal. This has been
changed now.
The only place where absolute filepaths are handled now is with flat
project layouts. However, it is possible to overwrite this filepath if
the targets folder is to be changed.
2014-06-21 19:07:34 -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
Santiago Torres
d6cfb467e7
Merge branch 'developer-tools' of github.com:SantiagoTorres/tuf into developer-tools
2014-06-20 19:40:05 -04:00
Santiago Torres
f9ce4fcb36
Added the test_developer_tool module
...
All of the neccessary test cases for the developer tool
2014-06-20 19:39:11 -04:00
Santiago Torres
91579e9c15
Fixed developer tools to match the new repository_lib file
...
As of the current version, some functions that were provided by the
repository_tool have been moved to the repository_lib module. This
commit fixes those conflicts
2014-06-20 19:38:13 -04:00
Santiago Torres
07e8ef0be7
Added the generate_repository_data.py script and its produce
...
The generate_repository_data script works in the exact same way as the
generate script and it generates a fresh batch of pre-signed metadata to
test the load_project function.
2014-06-20 19:36:42 -04:00
Santiago Torres
915f07a88a
Merge branch 'develop' of github.com:theupdateframework/tuf into developer-tools
2014-06-20 17:35:17 -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