Commit graph

72 commits

Author SHA1 Message Date
Vladimir Diaz
b10c9bec46
Do not test for an invalid consistent method in Windows
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-04-27 15:43:55 -04:00
Vladimir Diaz
6c0007d845
Replace os.stat().st_ino calls in test_repository_lib.py
os.stat().st_ino does not work as expected in Windows.

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-04-27 15:04:45 -04:00
Vladimir Diaz
e6c9e441c3
Add RepositoryError exception for the unexpected Travis behavior
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-04-20 13:36:49 -04:00
Vladimir Diaz
52aeeec8db
Use alternative way of testing for non-EEXIST exceptions
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-04-20 11:27:08 -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
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
72d7ebfd8d
Remove py26 conditional import statements 2017-09-21 17:16:29 -04:00
Vladimir Diaz
36042c1ff9
Add test condition for invalid metadata extension 2017-08-29 15:03:28 -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
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
467a1af5e9
Include missing argument to format_keyval_to_metadata() in test_repository_lib.py 2017-08-23 10:55:38 -04:00
Vladimir Diaz
4cc7c17232
Test that root.json.gz can be loaded 2017-07-13 14:40:52 -04:00
Vladimir Diaz
077313f0cb Edit remaining test cases for repository_lib.py 2017-02-08 15:15:07 -05:00
Vladimir Diaz
f9660b4797 More import statementment replacements to various modules 2017-01-10 17:05:12 -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
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
1bf7ec1135 Moved pycrypto_keys, now it is common 2016-11-02 12:35:02 -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
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
f12b5dbdda Add code coverage for code recently added to repository_lib.py 2016-10-26 17:04:06 -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
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
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
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
Evan Cordell
a11709000d Add root versioning for root key rotation 2016-09-19 15:18: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
e620b005a8 Add remaining code coverage for repository_lib.py 2016-09-01 11:07:02 -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
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
2ef5f3eb68 Add test case for _write_compressed_metadata() 2016-08-15 14:02:10 -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
a59008cf2b Use the 'clear_all' argument with clear_roledb.py and clear_keydb.py 2016-07-15 15:24:45 -04:00
Vladimir Diaz
65d23fa5a7 Reference all metadata in <version>.rolename.json format 2016-07-14 10:31:16 -04:00