python-tuf/tests
Martin Vrachev 6f02646408 Log subproceses stdout and stderr in temp files
Logging the stdout and stderr from the test subprocesses into
temporary files clean the console from unnecessary messages from
the server-side such as "code 404, message File not found" or
"GET" queries.

I have decided to create TestServerProcess class that will handle
the server subprocess creation and redirection to a temporary file
object. That way that code can be reused in more than 10 files.

Also, I have cleaned some parts of the unit test to make them more
readable and efficient with the new abstraction.

The unit tests are executed in sequential order and that's why
we can reuse one temporary file object for multiple tests.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2020-10-01 12:22:08 +03:00
..
repository_data Remove redundant test logic 2020-05-12 22:16:38 +01:00
ssl_certs Test: add https test with expired server certificate 2018-09-26 14:15:36 -04:00
.coveragerc Move omit to run section in .coveragerc 2019-07-11 14:32:49 +02:00
__init__.py Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
aggregate_tests.py Install TUF in editable mode in tox builds 2019-07-11 14:32:49 +02:00
proxy_server.py tests: Use localhost consistently 2020-08-10 16:11:33 +03:00
simple_https_server.py Test: add proxy certs and reorganize certs in test data dir 2018-09-21 13:13:52 -04:00
simple_server.py tests: Remove unused imports 2020-08-10 16:11:33 +03:00
slow_retrieval_server.py DOC: Clarify and correct comments on download timeouts 2018-09-10 16:30:32 -04:00
test_api.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_arbitrary_package_attack.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_developer_tool.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_download.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_endless_data_attack.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_extraneous_dependencies_attack.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_formats.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_indefinite_freeze_attack.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_key_revocation_integration.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_keydb.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_log.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_mirrors.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_mix_and_match_attack.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_multiple_repositories_integration.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_proxy_use.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_replay_attack.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_repository_lib.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_repository_tool.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_roledb.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_root_versioning_integration.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_sig.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_slow_retrieval_attack.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_tutorial.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_unittest_toolbox.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_updater.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
test_updater_root_rotation_integration.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00
utils.py Log subproceses stdout and stderr in temp files 2020-10-01 12:22:08 +03:00