summaryrefslogtreecommitdiffhomepage
path: root/test/test_ruby_application.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-16Tests: added Ruby tests with array in header valuesAndrei Zeliankou1-0/+20
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-0/+1
Also fixed various pylint errors and style issues.
2023-11-17Tests: added more expected Ruby features.Andrei Zeliankou1-0/+14
2023-11-17Tests: Ruby input.rewind is no longer required.Andrei Zeliankou1-9/+0
For more information see: https://github.com/rack/rack/commit/42aff22f708123839ba706cbe659d108b47c40c7
2023-11-08Tests: 8XXX used as default port range.Andrei Zeliankou1-1/+1
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-298/+327
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-17/+14
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
2022-10-11Tests: don't try to return response when "no_recv" is True.Andrei Zeliankou1-2/+1
2022-09-07Tests: minor fixes.Andrei Zeliankou1-10/+1
2022-07-27Ruby: fixed contents of SCRIPT_NAME.Alejandro Colomar1-1/+1
Having the basename of the script pathname was incorrect. While we don't have something more accurate, the best thing to do is to have it empty (which should be the right thing most of the time). This closes #715 issue on GitHub. The bug was introduced in git commit 0032543fa65f454c471c968998190b027c1ff270 'Ruby: added the Rack environment parameter "SCRIPT_NAME".'.
2022-05-13Tests: added tests for Ruby stream IO.close().Andrei Zeliankou1-7/+5
2022-05-10Tests: added test for "SCRIPT_NAME" variable in Ruby.Andrei Zeliankou1-0/+1
2022-04-11Tests: style.Andrei Zeliankou1-5/+4
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-04-05Tests: style.Andrei Zeliankou1-4/+8
2021-04-01Tests: unset LC_ALL variable in Ruby encoding test.Andrei Zeliankou1-1/+2
This change is necessary to set Encoding.default_external value correctly.
2021-03-26Tests: added test for Ruby default encoding.Andrei Zeliankou1-0/+47
2021-01-14Tests: added missing checks for configuration results.Andrei Zeliankou1-1/+1
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2021-01-12Tests: unit_stop() removed where possible.Andrei Zeliankou1-12/+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 Ruby threading tests.Max Romanov1-0/+41
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-6/+7
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+3
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-151/+124
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-11-13Tests: added Ruby test with constants.Andrey Zelenkov1-0/+23
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-05-30Tests: adjusted skipping tests.Andrey Zelenkov1-7/+6
2019-04-09Tests: speed up tests.Andrey Zelenkov1-0/+3
2019-04-09Tests: wait_for_record() introduced.Andrey Zelenkov1-6/+6
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-80/+124
2019-02-27Tests: added "Host" and "Connetion" headers where necessary.Andrey Zelenkov1-5/+7
Also minor header organizing.
2019-02-20Tests: skip sendmsg()/recvmsg() alerts for all tests.Andrey Zelenkov1-1/+0
Currently, these alerts may appear in the log when any application exits.
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: use "%Z" directive while parsing Date header.Andrey Zelenkov1-2/+6
2018-03-21Tests: Ruby module.Andrey Zelenkov1-0/+281