Commit graph

476 commits

Author SHA1 Message Date
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
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
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