summaryrefslogtreecommitdiffhomepage
path: root/test/test_settings.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-0/+1
Also fixed various pylint errors and style issues.
2023-11-08Tests: 8XXX used as default port range.Andrei Zeliankou1-4/+4
After the launch of the project, the testing infrastructure was shared with nginx project in some cases. To avoid port overlap, a decision was made to shift the port range for Unit tests. This problem was resolved a long time ago and is no longer relevant, so it is now safe to use port 8XXX range as the default, as it is more appropriate for testing purposes.
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-408/+421
Class usage came from the unittest framework and it was always redundant after migration to the pytest. This commit removes classes from files containing tests to make them more readable and understandable.
2023-06-12Tests: prerequisites checking reworked.Andrei Zeliankou1-2/+2
Prerequisites check moved to the module level to simplify class structure. Discovery and prerequisites checks functions moved to the separate files. Introduced "require" fixture to provide per-test requirements check.
2023-05-29Tests: more fixtures.Andrei Zeliankou1-11/+21
Common methods from applications/proto.py converted to the fixtures. sysctl check moved to the specific file where it is using. Some options moved to the constructor to have early access.
2023-05-25Tests: removed unused variables.Andrei Zeliankou1-3/+3
2023-05-19Tests: added tests for "server_version" option.Andrei Zeliankou1-0/+15
2023-03-21Tests: added tests for the "log_route" option.Andrei Zeliankou1-0/+154
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-8/+5
Previously, it was necessary to support older versions of Python for compatibility. F-strings were released in Python 3.6. Python 3.5 was marked as unsupported by the end of 2020, so now it's possible to start using f-strings safely for better readability and performance.
2022-12-13Tests: added tests for the large header buffer settings.Andrei Zeliankou1-0/+60
Added tests for the "large_header_buffer_size" and "large_header_buffers" configuration options.
2022-10-11Tests: don't try to return response when "no_recv" is True.Andrei Zeliankou1-5/+3
2022-04-11Tests: style.Andrei Zeliankou1-15/+5
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-05-24Tests: added additional check in tests with timeouts.Andrei Zeliankou1-76/+119
2021-05-24Tests: test_settings_send_timeout improved.Andrei Zeliankou1-8/+17
Data length adjusts depending on socket buffer size when it's possible.
2021-04-05Tests: style.Andrei Zeliankou1-0/+1
2021-01-13Tests: style.Andrei Zeliankou1-2/+0
2020-11-12Tests: added a test for "body_buffer_size" option.Andrei Zeliankou1-0/+38
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-2/+2
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+3
2020-09-27Tests: tuned delay in test_settings_idle_timeout_2.Andrei Zeliankou1-1/+1
2020-09-21Tests: added test for "idle_timeout" with empty payload.Andrei Zeliankou1-0/+18
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-36/+25
2020-05-15Tests: style.Andrei Zeliankou1-1/+2
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2020-02-20Tests: more tests with "max_body_size".Andrei Zeliankou1-0/+25
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-05-30Tests: adjusted skipping tests.Andrey Zelenkov1-1/+1
2019-04-09Tests: speed up tests.Andrey Zelenkov1-2/+2
2019-04-09Tests: simplified module checking.Andrey Zelenkov1-2/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-4/+4
2019-03-26Tests: style.Andrey Zelenkov1-44/+99
2019-02-27Tests: read_timeout option introduced.Andrey Zelenkov1-9/+11
Also, increased default select() timeout from 1s to 5s.
2019-02-27Tests: added "Host" and "Connetion" headers where necessary.Andrey Zelenkov1-4/+5
Also minor header organizing.
2019-02-14Tests: minor fixes.Andrey Zelenkov1-2/+0
2018-11-15Tests: added command line arguments parsing in tests.Andrey Zelenkov1-1/+1
Added the following command line arguments: -d, --detailed: Show detailed output for tests Usage examples: ./test/run.py --detailed python3 test/test_access_log.py --detailed python3 test/test_access_log.py -d TestUnitAccessLog.test_access_log_ipv6 -l, --log: Save unit.log after the test execution Usage examples: ./test/run.py -l python3 test/test_access_log.py -l python3 test/test_access_log.py --log TestUnitAccessLog.test_access_log_ipv6
2018-09-17Tests: test_settings_header_read_timeout_update adjusted.Andrey Zelenkov1-4/+9
2018-09-06Tests: used relative path for configuration.Andrey Zelenkov1-10/+9
2018-09-04Tests: fixed test_settings_header_read_timeout_update.Andrey Zelenkov1-4/+7
2018-08-21Tests: more timeout tests.Andrey Zelenkov1-0/+51
2018-08-21Tests: typo.Andrey Zelenkov1-1/+1
2018-07-30Tests: expectedFailure removed from test_settings_idle_timeout.Andrey Zelenkov1-1/+0
Fix committed in f04b28aa6e02.
2018-07-30Tests: fixed test_settings_idle_timeout.Andrey Zelenkov1-2/+2
2018-07-30Tests: fixed header value char tests.Andrey Zelenkov1-1/+1
Use byte strings to avoid problems with encoding.
2018-07-13Tests: HTTP settings.Andrey Zelenkov1-0/+116