summaryrefslogtreecommitdiffhomepage
path: root/test/test_http_header.py (unfollow)
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-404/+436
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-02-21Tests: switched to using f-strings.Andrei Zeliankou1-2/+2
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-04-11Tests: style.Andrei Zeliankou1-9/+7
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-04-05Tests: style.Andrei Zeliankou1-0/+1
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2020-11-19Tests: added tests for a "discard_unsafe_fields" option.Andrei Zeliankou1-0/+38
2020-11-19Tests: style.Andrei Zeliankou1-36/+40
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+2
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-174/+120
2020-05-15Tests: style.Andrei Zeliankou1-0/+1
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-05-30Tests: fixed tests without "Host" header.Andrey Zelenkov1-4/+3
2019-04-09Tests: simplified module checking.Andrey Zelenkov1-2/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-5/+4
2019-03-26Tests: style.Andrey Zelenkov1-177/+299
2019-02-27Tests: "Host" header tests.Andrey Zelenkov1-0/+147
2019-02-27Tests: added "Host" and "Connetion" headers where necessary.Andrey Zelenkov1-21/+43
Also minor header organizing.
2019-02-20Tests: removed test_http_header_transfer_encoding_chunked.Andrey Zelenkov1-17/+0
2019-02-18Rejecting requests with duplicate "Content-Length".Valentin Bartenev1-1/+0
2019-02-14Tests: added tests for "Content-Length" header.Andrey Zelenkov1-0/+46
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-08-08Tests: simple "Transfer-Encoding" client header test.Andrey Zelenkov1-0/+17
2018-08-06Python: decoding unicode strings as Latin1.Max Romanov1-1/+0
According to PEP 3333, header names and values should be decoded as Latin1.
2018-07-30Tests: fixed header value char tests.Andrey Zelenkov1-6/+13
Use byte strings to avoid problems with encoding.
2018-07-11Tests: more chars in header values tests.Andrey Zelenkov1-0/+20
2018-03-16Tests: HTTP header field and value tests.Andrey Zelenkov1-0/+123