summaryrefslogtreecommitdiffhomepage
path: root/test/test_perl_application.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-204/+230
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-10/+7
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-1/+1
2023-03-14Tests: added Perl test with many responses using streaming body.Andrei Zeliankou1-0/+5
2022-10-11Tests: don't try to return response when "no_recv" is True.Andrei Zeliankou1-2/+1
2022-04-11Tests: style.Andrei Zeliankou1-2/+1
2022-01-31Tests: removed TestApplicationTLS.get_server_certificate().Andrei Zeliankou1-8/+2
distutils.version is replaced by packaging.version. Also minor style fixes.
2021-12-27Perl: creating input and error streams if closed.Max Romanov1-0/+22
Application handler can do anything with a stream object (including close it). Once the stream is closed, Unit creates a new stream. This closes #616 issue on GitHub.
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-04-05Tests: style.Andrei Zeliankou1-0/+1
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2021-01-12Tests: unit_stop() removed where possible.Andrei Zeliankou1-3/+0
Since wait_for_record() was introduced there is no need to stop Unit before parsing unit.log.
2020-12-08Tests: skip_alert() converted to the fixture.Andrei Zeliankou1-2/+1
2020-11-05Tests: added Perl threading tests.Max Romanov1-0/+41
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-1/+2
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+3
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-106/+83
2020-05-15Tests: style.Andrei Zeliankou1-0/+1
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2020-04-14Tests: minor fixes and style.Andrei Zeliankou1-4/+6
2019-11-26Tests: parsing of "Transfer-Encoding: chunked" responses.Tiago Natel1-1/+1
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-05-30Tests: adjusted skipping tests.Andrey Zelenkov1-5/+4
2019-04-09Tests: speed up tests.Andrey Zelenkov1-0/+3
2019-04-09Tests: wait_for_record() introduced.Andrey Zelenkov1-3/+3
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-60/+97
2019-03-01Tests: Perl streaming body and delayed response simple tests.Andrey Zelenkov1-0/+16
2019-03-01Perl: added implementation delayed response and streaming body.Alexander Borisov1-1/+1
2019-02-27Tests: added "Host" and "Connetion" headers where necessary.Andrey Zelenkov1-5/+7
Also minor header organizing.
2019-02-27Perl: added processing for IO:Handle-like object.Alexander Borisov1-1/+0
The application can return the body as an IO:Handle-like object without file descriptor.
2019-01-28Tests: added test for reading body from IO::Handle-like object.Andrey Zelenkov1-0/+14
2018-12-24Tests: more QUERY_STRING tests.Andrey Zelenkov1-0/+19
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-05-21Tests: added tests for SERVER_SOFTWARE variable.Andrey Zelenkov1-2/+4
2018-04-02Tests: Perl script with syntax error.Andrey Zelenkov1-0/+10
2018-04-02Tests: use "%Z" directive while parsing Date header.Andrey Zelenkov1-2/+6
2018-03-21Tests: Ruby module.Andrey Zelenkov1-8/+6
2018-03-19Tests: more Perl tests.Andrey Zelenkov1-1/+27
2018-03-13Capitalization in the "Server" field.Valentin Bartenev1-1/+1
2018-02-26Tests: more perl tests.Andrey Zelenkov1-1/+13
2018-02-12Tests: perl module.Andrey Zelenkov1-0/+118