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
Vladimir Diaz
5e2d177f4d
Add test case for _load_top_level_metadata() and debug statements to missing else clauses
2016-08-30 17:09:03 -04:00
Vladimir Diaz
c369329d93
Log debug messages for missing else statements and cover branch case in _delete_obsolete_metadata()
2016-08-30 10:56:07 -04:00
Vladimir Diaz
d4fc091da5
Add test case for newly-added tuf.roledb.mark_dirty()
2016-08-29 11:42:19 -04:00
Julian Hille
e80f352259
Handles broken metadata files gracefully like they would be missing. Should be part of #366
2016-08-29 16:51:10 +02:00
Vladimir Diaz
6ec7197002
Fix issues with writting non-dirty'd consistent snapshots
...
Improve coverage for _delete_obsolete_metadata()
2016-08-26 16:42:21 -04:00
Vladimir Diaz
0673eb6ac5
Test coverage for _delete_obsolete_metadata()
2016-08-18 08:26:53 -04:00
Vladimir Diaz
6797db9d25
Finish coverage for sign_metadata() and generate_targets_metadata()
2016-08-17 09:55:25 -04:00
Vladimir Diaz
abbda071a1
Test for invalid keytype in sign_metadata()
2016-08-16 14:32:04 -04:00
Vladimir Diaz
90477a0517
Cover remaining test cases of _write_compressed_metadata() and remove code related to prepended digests
2016-08-16 12:20:28 -04:00
Vladimir Diaz
47d94c6fc4
Fix exception raised in _write_compressed_metadata()
2016-08-16 10:40:34 -04:00
Vladimir Diaz
4e8e8dca7f
Try to hit more lines of _write_compressed_metadata()
2016-08-15 17:13:18 -04:00
Vladimir Diaz
de63311a0c
Reference global temporary directory variable by correct name
2016-08-15 14:29:56 -04:00
Vladimir Diaz
c8ffd6f8b1
Write 'interposition.json' to temporary location so that it gets auto-removed after testing
2016-08-15 14:26:50 -04:00
Vladimir Diaz
2380499029
Coverage for remaining lines of _log_status_of_top_level_roles()
2016-08-15 14:05:05 -04:00
Vladimir Diaz
2ef5f3eb68
Add test case for _write_compressed_metadata()
2016-08-15 14:02:10 -04:00
Vladimir Diaz
5f7dc52fa4
Merge pull request #352 from vladimir-v-diaz/support_wildcards_in_trusted_paths
...
Support Unix shell-style wildcards in trusted paths
2016-08-05 15:53:40 -04:00
Vladimir Diaz
c2805cc628
Fix remaining unit test failure for test_updater.py
...
Make sure <digest>.target_filename can be requested by clients. Writing a new targets.json causes consistent target files to be written to disk.
2016-08-05 15:42:08 -04:00
Vladimir Diaz
f05fdd9c05
Fix remaining test failures
2016-08-04 15:37:49 -04:00
Vladimir Diaz
81a147614b
Add initial support for specifying Unix shell-style wildcards in paths
2016-08-04 10:59:15 -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
876ced3279
Remove invalid test case (hmm, only py35 caught this mistake)
2016-07-26 14:28:08 -04:00
Vladimir Diaz
fae1fb6965
Improve code coverage for __init__.py pyca_crypto_keys.py, repository_lib.py
2016-07-25 11:20:30 -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
9c659b633c
Clear keydb and roledb (using the 'clear_all' argument) in the teardown() calls of unit tests
2016-07-15 13:53:31 -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
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
65d23fa5a7
Reference all metadata in <version>.rolename.json format
2016-07-14 10:31:16 -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
e072cd9961
Verify non-None role name supplied to tuf.sig.get_signature_status()
2016-07-01 13:26:46 -04:00
Vladimir Diaz
5c7333b062
Fix unit tests for developer_tool.py
2016-07-01 12:52:04 -04:00
Vladimir Diaz
872ff7c1a1
Use correct key import function to load non-root keys in test_indefinite_freeze_attack.py
2016-06-28 17:01:38 -04:00
Vladimir Diaz
5a3f515c4a
Use correct key import statements from rest_replay_attack.py
2016-06-28 16:54:53 -04:00
Vladimir Diaz
bd5b398ee4
Remove repository.status() (used for testing) from generate.py
2016-06-28 16:54:18 -04:00
Vladimir Diaz
2a9e4c28ad
Add latest repository example and unit test fixes
2016-06-27 17:02:27 -04:00
Vladimir Diaz
80ade8f201
Minor fixes for key expiry and loading an rsa key in a test module
2016-06-17 16:05:25 -04:00
Vladimir Diaz
b777188a54
Update tests following the change to Ed25519 keys
2016-06-17 09:57:54 -04:00
Vladimir Diaz
8e0e5a19e8
Generate metadata following change to Ed25519 keys
2016-06-17 09:56:13 -04:00
Vladimir Diaz
c55f548551
Generate Ed25519 keys for tests/repository_data
2016-06-17 09:54:46 -04:00
Vladimir Diaz
ba0f9ca936
Initial changes for multihash keyid algorithms support on write
2016-06-08 16:49:13 -04:00
Vladimir Diaz
685e6a2d33
Proof of concept
...
Initial implementation: key IDs may be generated with multiple hash algorithms
2016-05-18 16:12:58 -04:00
Vladimir Diaz
005531d9eb
Finish implementing test_key_revocation
...
Following the design change to roledb and keydb (where multiple repositories are supported), test_key_revocation is updated to verify that outdated clients (e.g., root keys that are no longer trusted) are able to perform a software update, detect new keys, etc.
2016-05-16 16:05:24 -04:00