Vladimir Diaz
26b92473b4
Remove print statements from updater.py
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:32:01 -05:00
Vladimir Diaz
2e0f84c486
Add test conditions and edit updater.py comments
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
* Test for missing local repository directories and Root file.
* Simplify comments
* Remove testing code"
2017-12-08 16:31:57 -05:00
Vladimir Diaz
ade2b777fe
Modify repository names in map.json
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:53 -05:00
Vladimir Diaz
ee0ef5d4c5
Add second local repository dir (for map file)
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:46 -05:00
Vladimir Diaz
79956676c7
Add test case get_one_valid_targetinfo
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:42 -05:00
Vladimir Diaz
2f3dd94456
Add test cases for MultiRepoUpdater.paths_match_target()
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:38 -05:00
Vladimir Diaz
8e0b2e02c0
Catch IOError when trying to load invalid JSON
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:33 -05:00
Vladimir Diaz
2eb81682c8
Edit unit test for multi repo updater
...
The multi repo updater now returns a list of updaters for each targetinfo when calling get_one_valid_targetinfo(). The unit test was updated to follow the change.
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:26 -05:00
Vladimir Diaz
d7e8754331
Fix parameter name and mapping schema
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-12-08 16:31:21 -05:00
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