Andrei Zeliankou
c183bd8749
Tests: get rid of classes in test files.
...
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-14 18:20:09 +01:00
Andrei Zeliankou
ce2405ec3d
Tests: prerequisites checking reworked.
...
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-06-12 14:16:59 +01:00
Andrei Zeliankou
31ff94add9
Tests: more fixtures.
...
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-29 16:45:49 +01:00
Andrei Zeliankou
3e4fa1e202
Tests: removed unused variables.
2023-05-25 14:26:12 +01:00
Andrei Zeliankou
28bdeec614
Tests: added Perl test with many responses using streaming body.
2023-03-14 11:06:09 +00:00
Andrei Zeliankou
8e1e047191
Tests: don't try to return response when "no_recv" is True.
2022-10-11 13:49:10 +01:00
Andrei Zeliankou
0f72534660
Tests: style.
2022-04-11 21:05:14 +01:00
Andrei Zeliankou
e53ce40c58
Tests: removed TestApplicationTLS.get_server_certificate().
...
distutils.version is replaced by packaging.version. Also minor style fixes.
2022-01-31 23:10:30 +00:00
Max Romanov
f845283820
Perl: creating input and error streams if closed.
...
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-12-27 16:37:35 +03:00
Andrei Zeliankou
39adb292d5
Tests: style.
2021-10-18 01:10:11 +01:00
Andrei Zeliankou
6c97a1a069
Tests: style.
2021-04-05 14:03:05 +01:00
Andrei Zeliankou
6dc9c47ccd
Tests: style.
2021-01-13 06:22:43 +00:00
Andrei Zeliankou
f5ac143246
Tests: unit_stop() removed where possible.
...
Since wait_for_record() was introduced there is no need
to stop Unit before parsing unit.log.
2021-01-12 06:20:23 +00:00
Andrei Zeliankou
b2e767819f
Tests: skip_alert() converted to the fixture.
2020-12-08 14:37:33 +00:00
Max Romanov
fc9a012ceb
Tests: added Perl threading tests.
2020-11-05 16:11:01 +03:00
Andrei Zeliankou
54837759f3
Tests: fixed unit.log print.
2020-10-19 22:25:29 +01:00
Andrei Zeliankou
6ec0ff3596
Tests: minor fixes.
2020-10-07 23:18:43 +01:00
Andrei Zeliankou
d5e9159340
Tests: migrated to the pytest.
2020-09-16 21:31:15 +01:00
Andrei Zeliankou
ce4a2bbd05
Tests: style.
2020-05-15 04:20:56 +01:00
Andrei Zeliankou
6a9a4fe0d4
Tests: introduced module version specification in prerequisites.
2020-04-24 05:08:56 +01:00
Andrei Zeliankou
0bfa09dfa0
Tests: minor fixes and style.
2020-04-14 02:35:04 +01:00
Tiago Natel
01103c5005
Tests: parsing of "Transfer-Encoding: chunked" responses.
2019-11-26 15:58:25 +00:00
Andrey Zelenkov
65ca2d7b19
Tests: refactored prerequisites model.
2019-09-14 14:44:35 +03:00
Andrey Zelenkov
90c5d3f5c0
Tests: adjusted skipping tests.
2019-05-30 16:46:04 +03:00
Andrey Zelenkov
29b4e4431f
Tests: speed up tests.
2019-04-09 20:59:35 +03:00
Andrey Zelenkov
549f0873c2
Tests: wait_for_record() introduced.
2019-04-09 16:14:42 +03:00
Andrey Zelenkov
af24e4dec4
Tests: simplified module checking.
2019-04-09 16:14:42 +03:00
Andrey Zelenkov
19eba1730a
Tests: unit module refactoring.
2019-03-28 18:43:13 +03:00
Andrey Zelenkov
281899fcef
Tests: style.
2019-03-26 23:38:30 +03:00
Andrey Zelenkov
754b85c3ee
Tests: Perl streaming body and delayed response simple tests.
2019-03-01 17:13:51 +03:00
Alexander Borisov
3b2c1d0eaa
Perl: added implementation delayed response and streaming body.
2019-03-01 16:50:25 +03:00
Andrey Zelenkov
4de2c8b567
Tests: added "Host" and "Connetion" headers where necessary.
...
Also minor header organizing.
2019-02-27 19:15:02 +03:00
Alexander Borisov
379e4c75fd
Perl: added processing for IO:Handle-like object.
...
The application can return the body as an IO:Handle-like object
without file descriptor.
2019-02-27 17:27:41 +03:00
Andrey Zelenkov
7dddfe2143
Tests: added test for reading body from IO::Handle-like object.
2019-01-28 17:16:50 +03:00
Andrey Zelenkov
f9a3328a25
Tests: more QUERY_STRING tests.
2018-12-24 20:35:18 +03:00
Andrey Zelenkov
eff760bd2b
Tests: added command line arguments parsing in tests.
...
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-11-15 21:26:15 +03:00
Andrey Zelenkov
7d224bfc9e
Tests: added tests for SERVER_SOFTWARE variable.
2018-05-21 16:41:33 +03:00
Andrey Zelenkov
151160c110
Tests: Perl script with syntax error.
2018-04-02 19:20:11 +03:00
Andrey Zelenkov
2028f3a04b
Tests: use "%Z" directive while parsing Date header.
2018-04-02 15:50:05 +03:00
Andrey Zelenkov
c7e67446a3
Tests: Ruby module.
2018-03-21 18:26:40 +03:00
Andrey Zelenkov
82bb66993e
Tests: more Perl tests.
2018-03-19 19:03:31 +03:00
Valentin Bartenev
bebc5845f8
Capitalization in the "Server" field.
2018-03-13 20:32:47 +03:00
Andrey Zelenkov
a89747e97c
Tests: more perl tests.
2018-02-26 19:53:40 +03:00
Andrey Zelenkov
e2c3fa6304
Tests: perl module.
2018-02-12 19:32:54 +03:00