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
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
e904ccb957
Remove py26 conditional import statements
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
afe8b3a63a
Fix unit test failures in test_updater.py
2017-12-08 16:23:19 -05:00
Vladimir Diaz
9564732f5e
Test condition for unequal path hash prefixes
...
Test condition verifies that unequal path hash prefixes are ignored by _visit_child_role()
2017-12-08 16:23:18 -05:00
Vladimir Diaz
3e0197c4f9
Fix comment and ensure None is returned for a circular delegation
2017-12-08 16:23:18 -05:00
Vladimir Diaz
2d19450f72
Add test condition for cycles in preorder_depth_first_walk()
...
This was a particularly time-consuming test to implement/debug. Glad that's over
2017-12-08 16:23:18 -05:00
Vladimir Diaz
90af97274a
Add test condition for detection of max number of delegations
2017-12-08 16:23:18 -05:00
Vladimir Diaz
e75f1860f6
Finish test condition for _get_file() and test unsafe download
2017-12-08 16:23:18 -05:00
Vladimir Diaz
f54ef60321
Test for specific exception in invalid spec_version test condition
...
The test condition currently tests for the general NoWorkingMirrorError exception, which encapsulates the actual exceptions
2017-12-08 16:23:18 -05:00
Vladimir Diaz
ef5b9e7ad4
Add test condition for invalid metadata extension
2017-12-08 16:23:17 -05:00
Vladimir Diaz
d0f66f9ef7
Remove obsolete test condition for metadata compression
2017-12-08 16:23:17 -05:00
Vladimir Diaz
75e883d18f
Remove print statements used for testing
2017-12-08 16:23:17 -05:00
Vladimir Diaz
95ff6f6d17
Test _visit_child_roles
2017-12-08 16:23:16 -05:00
Vladimir Diaz
cad6cd16f2
Add test conditions
...
for _refresh_targets_metadata(), _fileinfo_has_changed(), and _update_versioninfo()
2017-12-08 16:18:49 -05:00
Vladimir Diaz
71c9760349
Add test cases for _get_file() and _targets_of_role()
2017-12-08 16:18:49 -05:00
Vladimir Diaz
b9440d6286
Add test condition for _verify_root_chain_link()
2017-12-08 16:18:48 -05:00
Vladimir Diaz
65937f3ac6
Add test condition for _verify_uncompressed_metadata_file()
2017-12-08 16:18:48 -05:00
Vladimir Diaz
f2514bdc4d
Add copyright and license to test-related files
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-30 13:33:11 -05:00
Vladimir Diaz
25ccb769b5
Add copyright and license to unit test scripts
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-30 13:26:44 -05:00
Vladimir Diaz
8da3857551
Edit unit test for developer_tool after changes
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-27 11:38:49 -05:00
Vladimir Diaz
e814345179
Minor cosmetic edit of test_repository_tool.py
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-20 14:10:29 -05:00
Vladimir Diaz
94f10e6c12
Remove test_interpose_updater.py
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-16 13:08:45 -05:00
Vladimir Diaz
a0852f6965
Remove 'check_crypto_libraries' from list of excluded coverage
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-16 12:32:18 -05:00
Vladimir Diaz
c7036a9d08
Remove interposition from list of excluded coverage
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-16 12:28:21 -05:00
Vladimir Diaz
32b5b92444
Remove tufcli.py from the list of omitted coverage
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-16 12:07:16 -05:00
Vladimir Diaz
3b38a268dc
Remove obsolete calls to SSL functions in unit tests
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-09 10:54:46 -05:00
Vladimir Diaz
4126fc8945
Merge branch 'tap4' of github.com:theupdateframework/tuf into tap4
2017-10-13 12:29:16 -04:00
Vladimir Diaz
20d7cd2ac8
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-09-22 11:04:47 -04:00
Vladimir Diaz
c7b611c1b3
Fix test failures under py3
2017-09-21 17:27:51 -04:00
Vladimir Diaz
72d7ebfd8d
Remove py26 conditional import statements
2017-09-21 17:16:29 -04:00
Vladimir Diaz
baa4da9ca6
Hit remaining lines in updater.py
2017-09-06 17:30:29 -04:00
Vladimir Diaz
bcabe0072b
Refactor _visit_child_role, remove obsolete test conditions, and improve coverage
2017-09-06 16:54:13 -04:00
Vladimir Diaz
66e2ed8071
Fix unit test failures in test_updater.py
2017-08-31 17:14:32 -04:00
Vladimir Diaz
3ea1c48904
Test condition for unequal path hash prefixes
...
Test condition verifies that unequal path hash prefixes are ignored by _visit_child_role()
2017-08-31 13:43:47 -04:00
Vladimir Diaz
c811494663
Fix comment and ensure None is returned for a circular delegation
2017-08-30 17:31:47 -04:00
Vladimir Diaz
e1ba30ae6f
Add test condition for cycles in preorder_depth_first_walk()
...
This was a particularly time-consuming test to implement/debug. Glad that's over
2017-08-30 17:16:54 -04:00
Vladimir Diaz
3ccb68cd41
Add test condition for detection of max number of delegations
2017-08-29 17:23:42 -04:00
Vladimir Diaz
c5125e4dd3
Finish test condition for _get_file() and test unsafe download
2017-08-29 16:35:18 -04:00
Vladimir Diaz
6aa8854e07
Test for specific exception in invalid spec_version test condition
...
The test condition currently tests for the general NoWorkingMirrorError exception, which encapsulates the actual exceptions
2017-08-29 15:42:43 -04:00
Vladimir Diaz
36042c1ff9
Add test condition for invalid metadata extension
2017-08-29 15:03:28 -04:00
Vladimir Diaz
d9e2078c63
Remove obsolete test condition for metadata compression
2017-08-29 15:01:44 -04:00
Vladimir Diaz
72fdbc53ea
Resolve merge conflicts
2017-08-29 12:14:00 -04:00
Vladimir Diaz
c897a43238
Add valid developer_tool.py metadata
2017-08-29 09:54:31 -04:00
Vladimir Diaz
6f8511a1a7
Add test condition for unsupported spec version number
2017-08-28 16:59:13 -04:00
Vladimir Diaz
d4f6362dcf
Add metadata that contains 'spec_version'
2017-08-28 15:12:57 -04:00
Vladimir Diaz
924b97d1d7
Resolve conflicts
2017-08-28 13:07:54 -04:00
Vladimir Diaz
419569c6d6
Re-generate metadata that doesn't reference compressed metadata
2017-08-25 17:26:02 -04:00
Vladimir Diaz
b7c3b7c198
Fix remaining unit test failures for repository_tool.py
2017-08-25 17:25:32 -04:00
Vladimir Diaz
15777a309f
Remove compression from test_root_versioning_integration.py
2017-08-25 17:16:12 -04:00
Vladimir Diaz
d5f933b18d
Remove compression from developer_tool.py's unit test
2017-08-25 17:04:50 -04:00
Vladimir Diaz
bd754d595a
Remove compression from updater.py and its unit test
2017-08-25 16:59:41 -04:00
Vladimir Diaz
134bf073a1
Remove compression from repository tool and its unit test
2017-08-25 16:13:05 -04:00
Vladimir Diaz
33721556ed
Do not generate compressed top-level repository data
2017-08-25 15:59:08 -04:00
Vladimir Diaz
1edc4d4b8a
Remove compression from unit tests for formats.py, keydb.py, and roledb.py
2017-08-25 15:56:41 -04:00
Vladimir Diaz
60cd55229f
Remove compression logic from repository_lib.py and edit its unit tests
2017-08-25 15:38:40 -04:00
Vladimir Diaz
9fe00756ef
Remove compression from roledb and update its unit tests
2017-08-25 13:46:31 -04:00
Vladimir Diaz
3bfa9f68ed
Remove compression code from exceptions and update unit tests
2017-08-25 13:27:03 -04:00
Vladimir Diaz
1afd968725
Remove schemeta related to compression and update unit tests
2017-08-25 12:52:11 -04:00
Vladimir Diaz
52e2cd4e03
Remove print statements used for testing
2017-08-24 11:53:37 -04:00
Vladimir Diaz
d1132b377f
Merge branch 'develop' into coverage
2017-08-23 16:05:26 -04:00
Vladimir Diaz
e4f597d2fa
Attempt to fix irregular build failure
...
Occasionally, the roledb and keydb modules unexpectedly encounter an already existing repository
2017-08-23 12:52:23 -04:00
Vladimir Diaz
f463ad64ab
Edit schemas in formats.py
2017-08-23 12:48:40 -04:00
Vladimir Diaz
bcf43e63a2
Edit metadata and code for developer_tool.py
2017-08-23 12:47:20 -04:00
Vladimir Diaz
3933232efc
Add new metadata that includes the signing scheme
2017-08-23 10:57:34 -04:00
Vladimir Diaz
467a1af5e9
Include missing argument to format_keyval_to_metadata() in test_repository_lib.py
2017-08-23 10:55:38 -04:00
Vladimir Diaz
f4fd98b851
Incorporate securesystemslib changes into sig.py and test_sig.py
2017-08-23 10:53:36 -04:00
Vladimir Diaz
508c092ec7
Test _visit_child_roles
2017-08-03 10:10:33 -04:00
Vladimir Diaz
5364480ec3
Add test conditions
...
for _refresh_targets_metadata(), _fileinfo_has_changed(), and _update_versioninfo()
2017-07-31 15:46:37 -04:00
Vladimir Diaz
ca52527360
Add test cases for _get_file() and _targets_of_role()
2017-07-27 15:56:07 -04:00
Vladimir Diaz
99a3f99c84
Add test condition for _verify_root_chain_link()
2017-07-26 16:58:01 -04:00
Vladimir Diaz
fb5391e631
Add test condition for _verify_uncompressed_metadata_file()
2017-07-26 15:42:52 -04:00
Vladimir Diaz
4eee116c41
Add test conditions for append_signature()
2017-07-26 12:30:10 -04:00
Vladimir Diaz
1acd440199
Add test conditions for dump_signable_metadata()
2017-07-24 17:16:43 -04:00
Vladimir Diaz
7408da683a
Add test case for _soft_check_file_length
2017-07-18 16:58:58 -04:00
Vladimir Diaz
70bdfb9c78
Fix syntax error in import_delegations and improve coverage
2017-07-18 16:09:22 -04:00
Vladimir Diaz
cab5514027
Edit test cases after bug fix in _get_keyid()
...
Modify _import_delegations() and rebuild_key_and_role_db() so that the correct number of keyids are detected
2017-07-17 16:36:31 -04:00
Vladimir Diaz
d8b020c427
Clear role and key db in setup
...
to protect against test cases that did not clean up properly
2017-07-17 16:31:32 -04:00
Vladimir Diaz
8fe78f5ca8
Fix/uncomment tests for rebuild_key_and_role_db() and import_delegations()
...
These two unit tests were previously commented because they weren't working as expected. A bug in securesystemslib._get_keydb() was the cause of the issue, where the hash_algorithm argument wasn't being used and didn't allow multiple keyids to be generated.
2017-07-17 11:44:17 -04:00
Vladimir Diaz
64fdc399a5
Add test case for loading malformed metadata
2017-07-14 15:28:59 -04:00
Vladimir Diaz
30109fbbb1
Add unit test for unittest_toolbox.py
2017-07-14 11:26:52 -04:00
Vladimir Diaz
a1b61e9d6f
Add test case for tuf.exceptions.DecompressionError
2017-07-14 11:23:45 -04:00
Vladimir Diaz
48e412dee8
Add test_exceptions.py
2017-07-13 17:04:15 -04:00
Vladimir Diaz
4cc7c17232
Test that root.json.gz can be loaded
2017-07-13 14:40:52 -04:00
Vladimir Diaz
a384933195
Edit the format of _type entries, which are now lowercase
2017-07-12 15:05:17 -04:00
Vladimir Diaz
639818a529
Add new project metadata that uses lowercase _type entries
2017-07-12 15:04:06 -04:00
Vladimir Diaz
41954acc5b
Remove obsolete backup files (used by developer tool)
2017-07-12 15:00:39 -04:00
Vladimir Diaz
25e23d4910
Import correct key files in generate_project_data.py
2017-07-12 14:59:02 -04:00
Vladimir Diaz
6e26c31f70
Add metadata where _type = lowercase
2017-07-12 14:56:01 -04:00
Vladimir Diaz
f6d0d07a0e
Add missing root.json.gz metadata
2017-07-11 10:19:32 -04:00
Vladimir Diaz
ee5c4fee08
Add new repository metadata
2017-07-10 17:08:35 -04:00
Vladimir Diaz
ef6716321e
Edits to PR
...
Use securesystemslib v0.10.5 dependency (includes Lukas' contributions and a fix).
Add blank line between function docstring and beginning of code.
2017-06-15 13:29:01 -04:00
Vladimir Diaz
07b8225a64
Save downloaded test file to temporary directory
2017-02-15 15:47:55 -05:00
Vladimir Diaz
bcf3bcebd7
Fix remaining test cases for MultiRepoUpdater
2017-02-15 15:13:54 -05:00
Vladimir Diaz
45c780c06e
Add more of implementation for MultiRepoUpdater
2017-02-13 17:44:30 -05:00
Vladimir Diaz
4672d51908
Add working copy of map.json
2017-02-13 17:42:42 -05:00
Vladimir Diaz
e9abd76c33
Add test case for MultiRepoUpdater and fix bugs
2017-02-13 16:04:18 -05:00
Vladimir Diaz
ad29eee3aa
Add remaining test conditions for multiple repository support for the repository tool
2017-02-13 16:03:26 -05:00
Vladimir Diaz
7eb49c46ad
Minor edits to MultiRepoUpdater and map.json
...
Incorrect variable names, expand comments, etc.
2017-02-10 15:59:19 -05:00
Vladimir Diaz
89942aaad8
Add map.json (needed for testing TAP 4 behavior)
2017-02-10 15:19:59 -05:00
Vladimir Diaz
1f70402967
Add test condition for repository tool and support for multiple repositories
2017-02-08 17:16:30 -05:00
Vladimir Diaz
077313f0cb
Edit remaining test cases for repository_lib.py
2017-02-08 15:15:07 -05:00
Vladimir Diaz
5cdb0a27d8
Fix remaining unit test failures for repository_tool.py
...
Update repository_lib.py to support multiple repositories (TODO: fix remaining unit tests failures for this module)
2017-02-08 11:56:17 -05:00
Vladimir Diaz
bd2bdee39d
Update repository_tool unit tests to support multiple repositories (repository_lib.py remains)
2017-02-07 16:48:33 -05:00
Vladimir Diaz
7aff0572ba
Add missing unit tests for last commit
2017-02-06 16:20:28 -05:00
Vladimir Diaz
90155962a7
Fix unit tests to use tuf.settings.repositories_directory
2017-02-06 16:19:58 -05:00
Vladimir Diaz
17ea827e76
Add repository data where the client directory is reorganized
2017-02-06 16:14:35 -05:00
Vladimir Diaz
71525d0187
Add test conditions
2017-02-03 14:25:08 -05:00
Vladimir Diaz
802644cb61
[WIP] Add a unit test for multiple repositories support
2017-02-03 10:32:45 -05:00
Lukas Puehringer
c161020fb2
Updates repository_lib to use securesystemslib
...
securesystemslib.interface copies functions to generate and
import keys from repository_lib.
This commit replaces those function implementations with calls
to securesystemslib.
Removes internal _prompt and _get_password from repository_lib
because they were only used by the removed function bodies and
also exist in securesystemslib.interface
2017-01-27 17:07:43 -05:00
Vladimir Diaz
9579a1a0d8
Fix import statements for test_slow_retrieval_attack.py
2017-01-12 15:23:53 -05:00
Vladimir Diaz
5e22d02b17
Fix import statements for the repository_data tools
2017-01-12 15:23:16 -05:00
Vladimir Diaz
0b4d4d25f1
Fix import statements for the tools
2017-01-12 15:22:24 -05:00
Vladimir Diaz
6080a4f3b3
Remove simple-settings dependency from aggregate_tests.py
2017-01-12 15:20:03 -05:00
Vladimir Diaz
b9cd2853ea
Fix import statements in the root rotation integration tests
2017-01-12 10:52:05 -05:00
Vladimir Diaz
b79db21d9a
Fix import statements in interposition modules
2017-01-12 10:50:13 -05:00
Vladimir Diaz
23339f3554
Remove ssl_crypto entry from coverage configuration file
2017-01-12 10:49:40 -05:00
Vladimir Diaz
4abe845daf
Fix import statements in various test modules
2017-01-11 17:05:46 -05:00
Vladimir Diaz
3ebf76182d
Fix imports statements in test_arbitrary_package_attack.py
2017-01-11 16:41:13 -05:00
Vladimir Diaz
e5c002695b
Fix import statements in test_extraneous_dependencies_attack.py
2017-01-11 16:36:07 -05:00
Vladimir Diaz
361eee1bbf
Fix imports statements in test_replay_attack.py
2017-01-11 16:00:04 -05:00
Vladimir Diaz
657e1fa382
Fix import statements in updater.py and test_endless_data_attack.py
2017-01-11 15:55:36 -05:00
Vladimir Diaz
fb0ea0b836
Fix more import statements for various modules
2017-01-11 15:41:13 -05:00
Vladimir Diaz
bf26aa38f2
Fix import statements in log.py and test_log.py
2017-01-11 12:51:04 -05:00
Vladimir Diaz
97f5e107df
Fix imports statements in roledb.py and test_roledb.py
2017-01-11 12:43:04 -05:00
Vladimir Diaz
94bb9d6d9f
Fix import statements in sig.py and test_sig.py
2017-01-11 12:23:21 -05:00
Vladimir Diaz
6ada1d352d
Fix import statements in test_init.py
2017-01-11 11:43:19 -05:00
Vladimir Diaz
a15c413975
Move tuf-related schemata from securesystemslib to tuf.formats.py
2017-01-11 11:32:08 -05:00
Vladimir Diaz
301965ff2e
Fix import statements for download.py and test_download.py
2017-01-11 10:46:22 -05:00
Vladimir Diaz
f9660b4797
More import statementment replacements to various modules
2017-01-10 17:05:12 -05:00
Vladimir Diaz
ae59f8ff5b
Remove test_schema.py
2017-01-09 17:03:16 -05:00
Vladimir Diaz
a285f06689
Remove crypto-related tests (they now exist in the SSL module)
2017-01-09 17:02:13 -05:00
Vladimir Diaz
03d98b1cd3
Fix SSL statements in test_keydb.py
2017-01-09 16:53:23 -05:00
Vladimir Diaz
2bfc799439
Add test metadata that includes the spec version number
2016-12-01 11:28:42 -05:00
Vladimir Diaz
ea63aafec6
Use SCHEMA.AnyString() rather than SCHEMA.String('')
...
Also update test_formats.py
2016-12-01 11:24:14 -05:00
Vladimir Diaz
8da0d92f44
Update ssl_crypto submodule and propogate changes to TUF
2016-11-16 11:08:22 -05:00
Vladimir Diaz
fe3aa99d59
Add coverage for remove_obsolete_targets()
2016-11-14 16:40:26 -05:00
Vladimir Diaz
f15b03ddb0
Cover remaining code coverage for repository_tool.py
2016-11-11 17:19:22 -05:00
Vladimir Diaz
fd816a69ac
Cosmetic edits and minor code coverage improvement to repository_tool.py
2016-11-11 12:30:24 -05:00
Vladimir Diaz
4845e8c54d
Code coverage for 4 more methods
2016-11-11 11:52:14 -05:00
Vladimir Diaz
5e8bef7c72
Add some coverage for repository_tool.py
2016-11-10 16:58:59 -05:00
Vladimir Diaz
acf5bfddac
Add coverage for _delete_obsolete_metadata()
...
This function was recently updated to ignore root.json (and continue). Add coverage for it now
2016-11-10 16:21:57 -05:00
Vladimir Diaz
cfaf865186
Force Coverage to ignore the scripts like basic_client.py and vendor'd modules
2016-11-10 16:17:13 -05:00
Vladimir Diaz
0e34e06d89
Add a test condition for the previously added feature for issue #319
2016-11-10 14:40:47 -05:00
Vladimir Diaz
0d59cac627
Fix remaining issues
2016-11-10 09:49:08 -05:00
Vladimir Diaz
e999f55a5d
Fix remaining test modules that try to import tufformats.
2016-11-10 09:24:33 -05:00
Vladimir Diaz
b1367430d7
Replace instances of tufformats in test modules
2016-11-09 17:10:05 -05:00
Vladimir Diaz
ddde0d700b
Remove tufformats from test_formats.py
2016-11-09 15:58:29 -05:00
Vladimir Diaz
5d14de8a61
Merge branch 'tuf_merge' of https://github.com/baloyan/tuf into baloyan-tuf_merge
...
Conflicts:
tests/test_formats.py
tests/test_updater.py
tuf/client/updater.py
tuf/formats.py
tuf/repository_lib.py
2016-11-09 14:32:59 -05:00
Vladimir Diaz
c65129ad7e
Update tests following rename of target()
2016-11-07 12:33:08 -05:00
Vladimir Diaz
e6a4b5eef0
Rename TARGETFILE_SCHEMA to TARGETINFO_SCHEMA
2016-11-07 11:41:34 -05:00
Artiom Baloian
299ff68edd
Now crypto related files are in ssl_crypto and ssl_commons
2016-11-02 17:44:32 -04:00
Artiom Baloian
1bf7ec1135
Moved pycrypto_keys, now it is common
2016-11-02 12:35:02 -04:00
Artiom Baloian
a4dae8e1ff
Moved pyca_crypto_keys, now it is common
2016-11-02 11:50:21 -04:00
Artiom Baloian
b0156944bb
Moved util.py, now it is common
2016-11-02 09:49:37 -04:00
Artiom Baloian
b793c81739
Added simple_settings, now it is a requirement of TuF.
...
Rename conf.py into the settings.py an changed import call.
2016-11-01 15:38:40 -04:00
Artiom Baloian
b21ad871b9
Now ed25519_keys.py and hash.py modules are common for
...
TuF and in-toto
2016-11-01 10:55:23 -04:00
Artiom Baloian
812a85c393
Finish splitinf formats.py file, now there is formats.py for commons
...
and tufformats which is TuF specific
2016-10-31 20:02:29 -04:00
Artiom Baloian
b07d9a5d0f
Move some part of tufformats into the common formats
2016-10-31 19:04:14 -04:00
Artiom Baloian
8247a02737
Moved TuF exceptions and schem into the ssl_commons
2016-10-31 11:58:05 -04:00
Artiom Baloian
7098cdbc3a
Move _vendor dir and split formats into the formats and tufformats
2016-10-28 18:37:28 -04:00
Vladimir Diaz
0e6e3418d2
Add code coverage for non-dirty roles given to role.db.unmark_dirty()
2016-10-27 16:38:07 -04:00
Vladimir Diaz
0324263988
Verify the changed behavior of status()
2016-10-27 16:30:30 -04:00
Vladimir Diaz
986ffcb730
Add test case for unmark_dirty() in roledb
2016-10-27 15:15:50 -04:00
Vladimir Diaz
f12b5dbdda
Add code coverage for code recently added to repository_lib.py
2016-10-26 17:04:06 -04:00
Vladimir Diaz
c81fa37683
Fix unit test failure in Python 3 and add remaining code coverage for load_repository()
2016-10-26 15:46:41 -04:00
Vladimir Diaz
485eabc5a9
Reset invalid tuf.conf.CONSISTENT_METHOD in unit test
...
The invalid value should be removed so that subsequent tests work as expected
2016-10-26 13:07:04 -04:00
Vladimir Diaz
5f2956a09d
Edit to comments
2016-10-26 12:01:09 -04:00
Vladimir Diaz
18f7e65ab6
Merge branch 'develop' of https://github.com/FelixWang1994/tuf into FelixWang1994-develop
2016-10-26 10:31:54 -04:00
Kwang100
ffe2384ec9
Correct teardown function: remove temporary directory after test completed
2016-10-26 00:30:34 -04:00
Kwang100
df93e46b3b
1、minor bug correction: Now we will remove the current metadata before we link it to the consistent metadata if it exists.
...
2、import the tuf.conf into the test file; finish all the tests for link current file to the latest consistent metadata file.
2016-10-25 18:28:06 -04:00
Vladimir Diaz
aad5c94b04
Add code coverage for load_repository
2016-10-25 17:20:44 -04:00
Vladimir Diaz
d6b13cd1f2
Cover remaining code coverage for sig.py and edit comments
2016-10-25 11:49:58 -04:00
Vladimir Diaz
5ebef2db5c
Cover remaining code coverage for repository_lib.py
2016-10-24 16:41:43 -04:00
Vladimir Diaz
e58c01a96c
Catch SlowRetrievalError for download requests that expect a greater download length that the actual file
...
A slow retrieval error is eventually raised for the request that cannot be satisfied
2016-10-21 11:57:21 -04:00
Vladimir Diaz
70fc8dce36
Resolve merge conflicts with upstream and ecordell-root-versioning
2016-10-18 10:28:04 -04:00
Vladimir Diaz
58370a5a2f
Append '_integration.py' to the module name of the integration tests.
2016-10-17 16:56:08 -04:00
Vladimir Diaz
8882dc5b7b
Merge branch 'root-versioning' of https://github.com/ecordell/tuf into ecordell-root-versioning
...
Conflicts:
tests/test_key_revocation.py
tests/test_replay_attack.py
tests/test_repository_tool.py
tests/test_updater.py
tuf/formats.py
tuf/repository_lib.py
2016-10-17 15:57:48 -04:00
Vladimir Diaz
b03deee874
Modify the way slow retrieval errors are raised and detected.
...
Potential slow retrieval errors are raised for safe downloads (strict check on file size) and not for unsafe (a file size less than an upper limit). Slow retrieval errors should always be prevented
2016-10-10 17:34:00 -04:00
Vladimir Diaz
e1debf8ea9
Improve code coverage for repository_tool.py
2016-09-21 09:17:37 -04:00
Vladimir Diaz
070c9e0149
Test for invalid keyid in remove_invalid_and_duplicate_signatures()
2016-09-20 11:40:38 -04:00
Vladimir Diaz
35d478f1c2
Cover remaining code coverage for repository_lib.py
2016-09-20 11:02:53 -04:00
Vladimir Diaz
d75d25a4e6
Implement pyca_crypto_keys.py's create_rsa_encrypted_pem and improve code coverage for it
2016-09-19 17:21:33 -04:00
Evan Cordell
0e93c3a7d2
Enforce root version signature chaining in client updater
2016-09-19 15:18:33 -04:00
Evan Cordell
a11709000d
Add root versioning for root key rotation
2016-09-19 15:18:20 -04:00
Vladimir Diaz
b5a0cc413b
Add test repository
...
compressed metadata was incorrectly listed in snapshot.json. List on roles with '.json' extension
2016-09-15 16:33:20 -04:00
Vladimir Diaz
feb2cd0df4
Update tests to improve code coverage and following the changes to repository write and backtracking
2016-09-15 15:24:00 -04:00
Vladimir Diaz
26016479e9
Add test repository following changes to repository writing and backtracking
2016-09-15 15:19:27 -04:00
Vladimir Diaz
daa79ea640
Add code coverage for en(de)cryption functions of pyca_crypto_keys.py
2016-09-01 16:39:03 -04:00
Vladimir Diaz
2876702f48
Add code coverage for keys.extract_pem()
2016-09-01 12:53:28 -04:00
Vladimir Diaz
e620b005a8
Add remaining code coverage for repository_lib.py
2016-09-01 11:07:02 -04:00
Vladimir Diaz
5a35e797fc
Improve code coverage for test_signature()
2016-09-01 10:12:56 -04:00
Vladimir Diaz
13e118b7d2
Merge branch 'develop' of github.com:theupdateframework/tuf into develop
2016-09-01 10:11:09 -04:00
Vladimir Diaz
98c386083a
Improve code coverage for pyca_crypto_keys.py (functions for encrypted PEMs)
2016-08-31 16:11:07 -04:00
Vladimir Diaz
2a0365d332
Add test cases for _decrypt() and encrypt_key()
2016-08-31 16:09:00 -04:00
Vladimir Diaz
37dcfba999
Improve test coverage for keys.py and pyca_cryptography.py
2016-08-31 15:20:02 -04:00
Vladimir Diaz
a3c482691c
Add code coverage for pyca_cryptography via keys.py
2016-08-31 13:38:00 -04:00