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
Lukas Puehringer
647f712f06
roledb: Make get_dirty_roles() return sorted list
...
roledb.get_dirty_roles(repo_name) returns the list representation
of the global _dirty_roles[repo_name] set. To make the return value
deterministic this commit sorts the list before returning it.
The commit also removes calls to sorted on the return value of
get_dirty_roles in test_roledb.py and test_repository_tool.py.
Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-12-16 15:16:24 +01: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
9fe00756ef
Remove compression from roledb and update its unit tests
2017-08-25 13:46:31 -04:00
Vladimir Diaz
97f5e107df
Fix imports statements in roledb.py and test_roledb.py
2017-01-11 12:43:04 -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
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
986ffcb730
Add test case for unmark_dirty() in roledb
2016-10-27 15:15:50 -04:00
Vladimir Diaz
d4fc091da5
Add test case for newly-added tuf.roledb.mark_dirty()
2016-08-29 11:42:19 -04:00
Vladimir Diaz
e0a4f18223
Improve code coverage
2016-07-21 10:28:46 -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
1474dd8277
Update unit test for roledb following addition of 'clear_all_except_default' argument to clear_roledb()
2016-07-15 13:25:15 -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
e072cd9961
Verify non-None role name supplied to tuf.sig.get_signature_status()
2016-07-01 13:26:46 -04:00
Vladimir Diaz
2a9e4c28ad
Add latest repository example and unit test fixes
2016-06-27 17:02:27 -04:00
Vladimir Diaz
cc6609f3f6
Implement remaining test conditions in test_roledb.py
2016-05-11 17:50:19 -04:00
Vladimir Diaz
ad08f499e9
Add missing unit test, and update tests in roledb.py to verify 'repository_name' argument
2016-05-11 16:57:46 -04:00
Vladimir Diaz
8e4a036f56
Implement tests for create_roledb() and remove_roledb()
2016-05-09 18:00:28 -04:00
Vladimir Diaz
9d85b5f4b1
Update test_roledb.py following refactoring of roledb.py
...
refactored roledb.py to keep track of multiple sets of role info.
2016-05-06 16:54:45 -04:00
Vladimir Diaz
efc01f0007
Remove obsolete functions tested in test_roledb.py
2016-03-31 17:24:57 -04:00
Vladimir Diaz
f162b4b7e8
Update test_roledb following the changes to remove_delegated_roles()
2016-03-30 17:24:11 -04:00
Vladimir Diaz
aaf755e381
Delete remove_delegated_roles() and modify affected lines (including add_role())
...
We shouldn't remove delegated roles if the repository can resemble a graph of delegations, since the delegations of one role are independent of another
2016-03-30 16:43:51 -04:00
Vladimir Diaz
51adc771a0
More bug fixes
...
When loading roles from disk, ensure these roles are not marked as dirty. Add a boolean to relevant functions to provide the option to update the roledb without marking roles as dirty
2016-03-28 17:49:56 -04:00
Vladimir Diaz
8ccdff540f
Convert list of dirty roles to set to avoid duplicates
2016-03-28 16:25:49 -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
vladdd
88d686b258
Initial implementation of custom FILEINFO
2014-06-23 13:33:01 -04:00
Vladimir Diaz
fbb10a36c9
Refactor repository_tool.py and improve test coverage.
...
Created repository_lib.py.
2014-06-03 14:32:44 -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
08a2bad2c0
Add Travis CI, coveralls, and coverage-related updates.
2014-04-20 16:15:19 -04:00
vladdd
5f94d5be0d
Support ISO 8601, vendor iso8601, clean codebase.
2014-04-19 14:27:53 -04:00