Joshua Lock
292b18926b
Use __name__ for loggers, per convention
...
Replace hard-coded logger names with __name__. For the most part this just uses
the standard conventions to create the same logger hierarchy as existed before.
The only real difference is that loggers created for printing during tests are
no longer part of the 'tuf' hierarchy.
Signed-off-by: Joshua Lock <jlock@vmware.com>
2020-03-03 10:36:39 +00:00
Sebastien Awwad
a9d7053d78
Use TUF exceptions instead of SSL exceptions where appropriate
...
Removal of securesystemslib exceptions that are TUF-specific
occurs in securesystemslib PR #165
https://github.com/secure-systems-lab/securesystemslib/pull/165
This commit adapts to those changes. Exceptions that are specific
to TUF should be in TUF and not in securesystemslib. This commit
uses those already-existing TUF exceptions instead of pointing to
securesystemslib exceptions that will be removed.
For example, securesystemslib has no notion of repositories, so
it's ridiculous to have a RepositoryError in securesystemslib and
ridiculous for TUF to use
securesystemslib.exceptions.RepositoryError.
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-09-17 11:19:04 +02:00
Lukas Puehringer
9d201d1657
Update SPEC_VERSION to semver-compliant 1.0.0
...
Updates SPEC_VERSION definition in tuf/__init__.py, test files and
docstring in formats.build_dict_conforming_to_schema.
Test metadata will be updated in separate commits.
Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-09-16 15:43:39 +02:00
Sebastien Awwad
e7c822954b
Update testing following MetaFile(etc) class removals
...
Testing will now use (and test) build_dict_conforming_to_schema.
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-29 11:37:31 -04:00
Vladimir Diaz
8f65fa4154
Rename license files in modules
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-05 11:31:19 -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
1edc4d4b8a
Remove compression from unit tests for formats.py, keydb.py, and roledb.py
2017-08-25 15:56:41 -04:00
Vladimir Diaz
03d98b1cd3
Fix SSL statements in test_keydb.py
2017-01-09 16:53:23 -05:00
Vladimir Diaz
b1367430d7
Replace instances of tufformats in test modules
2016-11-09 17:10:05 -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
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
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
ae4bbfdbfc
Remove tuf.Error exception raised in create_keydb_from_root_metadata()
...
To simplify the addition of keys to keydb, add all of the valid keyids to keydb in the for loop instead of adding the default keyid separately
2016-07-27 16:33:35 -04:00
Vladimir Diaz
e0a4f18223
Improve code coverage
2016-07-21 10:28:46 -04:00
Vladimir Diaz
596969ab2e
Improve code coverage of keydb.py and util.py
2016-07-19 08:06:53 -04:00
Vladimir Diaz
a59008cf2b
Use the 'clear_all' argument with clear_roledb.py and clear_keydb.py
2016-07-15 15:24:45 -04:00
Vladimir Diaz
1c72cb2c20
Add 'clear_all' argument to clear_keydb() in keydb.py
2016-07-15 13:47:46 -04:00
Vladimir Diaz
70cc1b8abd
Clear roledb and keydb of 'test_repository' entries after each test case
2016-07-11 13:53:16 -04:00
Vladimir Diaz
80c3022edf
Fix mismatched key objects in test_keydb.py
2016-07-01 15:09:58 -04:00
Vladimir Diaz
99062dc27a
Minor edit to comment in test_keydb.py
2016-05-11 16:55:52 -04:00
Vladimir Diaz
9d57139aee
Implement remaining test functions for keydb.py
2016-05-09 16:31:37 -04:00
Vladimir Diaz
aa62fc5862
Verify the 'repository_name' argument in test_clear_keydb()
2016-05-09 15:10:42 -04:00
Vladimir Diaz
decfa5558e
Expand test conditions in test_keydb.py to verify named repositories
2016-05-09 14:19:53 -04:00
Vladimir Diaz
223993c43e
Update test_keydb.py following refactoring of keydb.py
...
keydb.py was refactored to allow multiple sets of keys to be tracked
2016-05-06 17:33:18 -04:00
Vladimir Diaz
4cb851ca0a
Fix remaining issues with unit tests after implementing version numbers in snapshot.json
2015-10-27 16:11:11 -04:00
Vladimir Diaz
3eb8f10710
More coverage improvements
2015-03-02 15:10:27 -05:00
Vladimir Diaz
fbb10a36c9
Refactor repository_tool.py and improve test coverage.
...
Created repository_lib.py.
2014-06-03 14:32:44 -04:00
vladdd
c5fd17ab3e
Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop
...
Conflicts:
tests/test_hash.py
tests/test_keydb.py
tuf/formats.py
tuf/keydb.py
tuf/repository_tool.py
2014-05-10 20:26:06 -04:00
Vladimir Diaz
d831187949
Improve test coverage.
2014-05-01 12:59:34 -04:00
Vladimir Diaz
ab95a4b3aa
[WIP] Python 2+3 support.
...
Python 2+3 unicode.
libraries.
The following modules (and their tests) work in PY2.7+3.3:
keydb, hash, formats, mirrors
2014-04-29 14:27:34 -04:00
vladdd
5d3664e5a4
[WIP] Python 2+3 support.
...
maxint and minor additions.
2014-04-28 23:21:16 -04:00
vladdd
5f94d5be0d
Support ISO 8601, vendor iso8601, clean codebase.
2014-04-19 14:27:53 -04:00