Commit graph

3274 commits

Author SHA1 Message Date
Vladimir Diaz
edc53b165a
Fix mapping schema
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:17 -05:00
Vladimir Diaz
57313fbf6e
Fix map.json
The map file contains invalid elements.  Format map JSON similar to metadata for readability

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:07 -05:00
Vladimir Diaz
b75fcba618
Verify that the mapping attribute contains the required fields
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:02 -05:00
Vladimir Diaz
3207337578
Ensure a threshold of matching targetinfo
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:30:55 -05:00
Vladimir Diaz
937f737071
Add 'threshold' attribute to comments and fix line lengths
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:30:49 -05:00
Vladimir Diaz
1c8e9e4404
Add the missing 'threshold' attribute to map.json
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:30:44 -05:00
Vladimir Diaz
660a6b3f1a
Save downloaded test file to temporary directory
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:30:40 -05:00
Vladimir Diaz
56aa0e8aca
Fix remaining test cases for MultiRepoUpdater
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:30:34 -05:00
Vladimir Diaz
7f8a6b16f0
Add simple_server.py as a script to make testing easier
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:27:33 -05:00
Vladimir Diaz
38dada8a29
Add more of implementation for MultiRepoUpdater
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:27:26 -05:00
Vladimir Diaz
c53449c086
Add working copy of map.json
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:27:19 -05:00
Vladimir Diaz
dd713a7eeb
Add test case for MultiRepoUpdater and fix bugs
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:27:15 -05:00
Vladimir Diaz
03619a5378
Add remaining test conditions for multiple repository support for the repository tool
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:27:08 -05:00
Vladimir Diaz
b38858b0c9
Minor edits to MultiRepoUpdater and map.json
Incorrect variable names, expand comments, etc.

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:26:54 -05:00
Vladimir Diaz
28421ae2df
Add map.json (needed for testing TAP 4 behavior)
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:26:44 -05:00
Vladimir Diaz
7be12321c6
Implement MultiRepoUpdater
TODO: Unit testing still remains

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:26:12 -05:00
Vladimir Diaz
2a2ca3233a
Add pyup.io badges to README 2017-12-08 16:23:24 -05:00
pyup-bot
4f28525d1c
Pin tox to latest version 2.9.1 2017-12-08 16:23:23 -05:00
pyup-bot
c6b7e4b0e2
Update cryptography from 2.0.3 to 2.1.1 2017-12-08 16:23:23 -05:00
pyup-bot
a9e9d9d6f1
Update pynacl from 1.0.1 to 1.1.2 2017-12-08 16:23:23 -05:00
pyup-bot
d05cc5508a
Update cffi from 1.7.0 to 1.11.2 2017-12-08 16:23:23 -05:00
Vladimir Diaz
e274b23ba5
Add pyup.io configuration file
We use pyup.io to make sure all of our dependencies are up to date.
2017-12-08 16:23:23 -05:00
Vladimir Diaz
d03c7d5d6b
Remove PyCrypto dependency
Our crypto library dropped multi-library support and no longer uses PyCrypto.
2017-12-08 16:23:23 -05:00
Vladimir Diaz
202f6777cd
Link to the specifidation new location from README 2017-12-08 16:23:23 -05:00
Vladimir Diaz
2e71fb467c
Remove obsolete proposals director (which now lives in the taps repo) 2017-12-08 16:23:22 -05:00
Vladimir Diaz
9e6353fe91
Edit specifiation files to point to their new location 2017-12-08 16:23:22 -05:00
Vladimir Diaz
ad3249dc0b
Update Last Modified 2017-12-08 16:23:22 -05:00
Vladimir Diaz
ab6bac4e15
Add ecdsa-sha2-nistp256 to specification 2017-12-08 16:23:22 -05:00
Vladimir Diaz
b3c08b05c3
Ignore virtualenv and pyenv files 2017-12-08 16:23:22 -05:00
Vladimir Diaz
cf930d15ed
Fix link 2017-12-08 16:23:22 -05:00
Vladimir Diaz
eb23e586ab
Edit link to nested delegation example 2017-12-08 16:23:22 -05:00
Vladimir Diaz
727579f395
Edit METADATA.md to expand text that links to example metadata 2017-12-08 16:23:21 -05:00
Vladimir Diaz
787e5a1821
Remove example metadata
Instead of having duplicate metadata in examples/ and tests/repository_data, retain only the metadata in tests/repository_data and link to them from METADATA.md
2017-12-08 16:23:21 -05:00
Vladimir Diaz
7e46aa5d17
Add section for TAPs to README 2017-12-08 16:23:21 -05:00
Vladimir Diaz
d6e8289c6b
Fix 'schdemes' typo 2017-12-08 16:23:21 -05:00
Vladimir Diaz
87da0b09ce
Remove references to 'method' as proposed by TAP 9
TAP 9 removed the `method` attribute from metadata.
https://github.com/theupdateframework/taps/blob/master/tap9.md
2017-12-08 16:23:21 -05:00
goldenMetteyya
f32e29dca1
Update tuf-spec.md
minor fixes
2017-12-08 16:23:21 -05:00
Vladimir Diaz
86cb2bc4e2
Upgrade pyca/cryptography 2017-12-08 16:23:21 -05:00
Vladimir Diaz
64fb960c00
Fix incorrect use of json.dumps
All optional parameters to json.dumps() are now keyword-only in Python 3.6.  Although this is the error that's flag, the tests use of json.dumps is actually incorrect: it should write the json.dumps with write()
2017-12-08 16:23:20 -05:00
Vladimir Diaz
36b1780f74
Fix test failures under py3 2017-12-08 16:23:20 -05:00
Vladimir Diaz
9b7f60efd8
Add py3.6 to setup.py 2017-12-08 16:23:20 -05:00
Vladimir Diaz
e716cbbec8
Test all supported Python versions under Tox 2017-12-08 16:23:20 -05:00
Vladimir Diaz
5286c4e0ec
Test only py 2.7, 3.4, 3.6 under Travis 2017-12-08 16:23:20 -05:00
Vladimir Diaz
6b56770c03
Add issue and pull request templates 2017-12-08 16:23:20 -05:00
Vladimir Diaz
e904ccb957
Remove py26 conditional import statements 2017-12-08 16:23:19 -05:00
Vladimir Diaz
a0ede76794
Drop py26 from setup.py 2017-12-08 16:23:19 -05:00
Vladimir Diaz
29ae5a3b58
Drop py26 from tox.ini 2017-12-08 16:23:19 -05:00
Vladimir Diaz
c02edd8e70
Hit remaining lines in updater.py 2017-12-08 16:23:19 -05:00
Vladimir Diaz
479c4381e1
Refactor _visit_child_role, remove obsolete test conditions, and improve coverage 2017-12-08 16:23:19 -05:00
Vladimir Diaz
8eaef81689
Fix exception name 2017-12-08 16:23:19 -05:00