Andrey Zelenkov
22de5fcddf
Style.
2019-03-11 17:31:59 +03:00
Andrey Zelenkov
ea844a4444
Tests: skip more alerts.
2019-03-01 18:58:16 +03:00
Andrey Zelenkov
ae36276cfc
Tests: made tests compatible with PHP 5.3.
2019-03-01 18:58:16 +03:00
Andrey Zelenkov
754b85c3ee
Tests: Perl streaming body and delayed response simple tests.
2019-03-01 17:13:51 +03:00
Andrey Zelenkov
c1751f9de6
Tests: specify ssl_version option.
...
TLS is explicitly selected to prevent using of SSL protocol
in ssl.get_server_certificate() call for Python 3.4 and older.
2019-02-28 21:19:32 +03:00
Andrey Zelenkov
38ea191fbb
Tests: fixed PHP "disable_functions" and "disable_classes" tests.
2019-02-28 21:18:33 +03:00
Andrey Zelenkov
4b92586530
Tests: "Host" header tests.
2019-02-27 20:41:30 +03:00
Andrey Zelenkov
8488666d60
Tests: routing.
2019-02-27 19:46:27 +03:00
Andrey Zelenkov
bd77c9a4d2
Tests: read_timeout option introduced.
...
Also, increased default select() timeout from 1s to 5s.
2019-02-27 19:43:14 +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
Andrey Zelenkov
499096a55a
Tests: one more alert skipped in test_json_application_many.
2019-02-20 20:46:23 +03:00
Andrey Zelenkov
955050aea3
Tests: skip sendmsg()/recvmsg() alerts for all tests.
...
Currently, these alerts may appear in the log when any application exits.
2019-02-20 20:28:29 +03:00
Andrey Zelenkov
09fb847cc7
Tests: removed test_http_header_transfer_encoding_chunked.
2019-02-20 20:24:05 +03:00
Andrey Zelenkov
b2ca342902
Tests: JSON array allowed.
2019-02-20 20:20:02 +03:00
Andrey Zelenkov
ac10bf8c7b
Tests: fixed ports range.
2019-02-20 20:19:55 +03:00
Andrey Zelenkov
ab40732c08
Tests: added tests for "Content-Length" header.
2019-02-14 16:09:58 +03:00
Andrey Zelenkov
0e5aaf60d4
Tests: headers with equal header fields allowed.
2019-02-14 16:09:54 +03:00
Andrey Zelenkov
7ce9f61cb6
Tests: minor fixes.
2019-02-14 16:09:19 +03:00
Andrey Zelenkov
d60fbc6d44
Tests: large configuration tests.
2019-01-28 17:17:23 +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
eced6bc972
Tests: removed blocking mode customization for sockets.
...
This customization was added in 0e12b17e512d and left unused.
Also, set blocking mode by default for all sockets.
2019-01-28 15:11:50 +03:00
Andrey Zelenkov
17068d2cdc
Tests: removed skipping Go tests on x86.
2018-12-25 21:28:02 +03:00
Andrey Zelenkov
5964413066
Tests: added delay to wait for error logging.
2018-12-25 17:22:32 +03:00
Andrey Zelenkov
4ccf0c8a17
Tests: fixed test_tls_reconfigure.
...
Previously, order of applying TLS configuration and sending partial request to
the application was uncertain. These changes make sure that client-application
connection was established before reconfiguration. Additionally, added test
to check that non-TLS connection works correctly after reconfiguration.
2018-12-25 16:35:35 +03:00
Andrey Zelenkov
f5b7fee128
Tests: set TCP_NODELAY option by default.
2018-12-25 16:35:35 +03:00
Andrey Zelenkov
d625691ff4
Tests: test_node_application_write_before_writeHead reworked.
...
Added res.end() call in application and response status check.
Also, renamed to test_node_application_write_before_write_head.
2018-12-25 16:35:35 +03:00
Andrey Zelenkov
f57e729a11
Tests: expectedFailure's removed from test_node_application.py.
...
Also removed alert skip in test_node_application_write_before_writeHead.
Fixes committed in 1340e3539362, 1e008ef94f43, 5df32621af19, dae402cb243f
and 41f561b3a178.
2018-12-25 16:35:35 +03:00
Andrey Zelenkov
f9a3328a25
Tests: more QUERY_STRING tests.
2018-12-24 20:35:18 +03:00
Andrey Zelenkov
aafa4bbaf9
Tests: more Node.js tests.
2018-12-11 18:30:58 +03:00
Andrey Zelenkov
37cd6d23b6
Tests: PHP directives "disable_classes" and "disable_functions".
2018-11-28 03:14:38 +03:00
Andrey Zelenkov
2ef5011236
Tests: fixed test_node_application_write_callback.
...
Fixed the write() callback order test.
Also introduced a separate test to verify the callback call itself.
2018-12-04 19:05:10 +03:00
Andrey Zelenkov
41d3d63758
Tests: class prefix made optional.
2018-11-15 21:26:15 +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
cf1f84b67c
Tests: print path to unit.log file when it was saved.
2018-11-13 18:56:18 +03:00
Andrey Zelenkov
4d7f708b25
Tests: leave unit.log in case of error or failure.
2018-11-13 18:51:55 +03:00
Andrey Zelenkov
4a77c447ba
Node.js: socket.js improvements.
...
- Fixed handling of the "options" parameter in Socket() constructor;
- Now the connect() method returns "this";
- Deduplicated the address() method;
- Added missing "callback" argument to the end() method;
- Now the destroy() method returns "this";
- Added "timeout" argument type check in the setTimeout() method.
2018-11-06 19:04:01 +03:00
Andrey Zelenkov
b7442743cf
Node.js: fixed typo in naming rawHeaders() method of request.
2018-11-01 19:10:32 +03:00
Andrey Zelenkov
d0e428aace
Tests: TLS tests.
2018-09-20 16:34:34 +03:00
Andrey Zelenkov
8065ba84aa
Tests: test_settings_header_read_timeout_update adjusted.
2018-09-17 19:07:29 +03:00
Andrey Zelenkov
511a0fa760
Tests: used relative path for configuration.
2018-09-06 20:18:33 +03:00
Andrey Zelenkov
58d23eb5b4
Tests: fixed test_settings_header_read_timeout_update.
2018-09-04 02:30:27 +03:00
Andrey Zelenkov
9f5349d347
Tests: "no_recv" option introduced.
2018-09-04 02:30:27 +03:00
Andrey Zelenkov
6bebbe3e8a
Tests: "/config" prefix used.
2018-09-04 02:30:27 +03:00
Andrey Zelenkov
dea7e0dc87
Tests: more timeout tests.
2018-08-21 20:49:23 +03:00
Andrey Zelenkov
a4e75be524
Tests: typo.
2018-08-21 20:41:36 +03:00
Andrey Zelenkov
6c0c3dcaa7
Tests: simple "Transfer-Encoding" client header test.
2018-08-08 15:36:30 +03:00
Andrey Zelenkov
eee6102a28
Tests: more reconfigure tests.
2018-08-08 15:30:05 +03:00
Andrey Zelenkov
09268676ef
Tests: remove unused function.
...
This function was accidentally added in e0f0cd7d244a.
2018-08-06 19:40:37 +03:00
Andrey Zelenkov
b6ce2da65c
Tests: expectedFailure removed from test_settings_idle_timeout.
...
Fix committed in f04b28aa6e02.
2018-07-30 20:07:31 +03:00
Andrey Zelenkov
7f57b6d984
Tests: fixed test_settings_idle_timeout.
2018-07-30 17:01:14 +03:00
Andrey Zelenkov
a458f50d59
Tests: fixed header value char tests.
...
Use byte strings to avoid problems with encoding.
2018-07-30 16:40:52 +03:00
Andrey Zelenkov
cfe91315eb
Tests: HTTP settings.
2018-07-13 20:15:50 +03:00
Andrey Zelenkov
96a4f9f032
Tests: more php.ini options tests.
2018-07-11 19:35:46 +03:00
Andrey Zelenkov
223ba37ab5
Tests: more chars in header values tests.
2018-07-11 19:35:36 +03:00
Andrey Zelenkov
b82954a5af
Tests: empty configuration.
2018-07-11 19:35:23 +03:00
Andrey Zelenkov
f2a856aa3b
Tests: Go application tests.
2018-06-08 18:32:55 +03:00
Andrey Zelenkov
2b39ed5dfb
Tests: added tests for "precision" option in php.ini.
2018-06-07 21:13:55 +03:00
Andrey Zelenkov
857bddeea6
Tests: added keep-alive with reconfiguration test.
2018-05-30 19:29:40 +03:00
Andrey Zelenkov
569a907dbb
Tests: configuration of environment variables.
2018-05-29 15:29:01 +03:00
Andrey Zelenkov
3b7238996a
Tests: initial PHP application tests.
2018-05-22 20:20:14 +03:00
Andrey Zelenkov
7d224bfc9e
Tests: added tests for SERVER_SOFTWARE variable.
2018-05-21 16:41:33 +03:00
Andrey Zelenkov
d9f8479375
Tests: response handling improved.
2018-04-26 17:37:24 +03:00
Andrey Zelenkov
a44d358f29
Tests: added test for callable write() in Python.
2018-04-26 17:37:24 +03:00
Andrey Zelenkov
0658f9bd71
Tests: added access log test with unix socket.
2018-04-23 15:26:52 +03:00
Andrey Zelenkov
b6226d6945
Tests: added delay to wait for requests logging.
2018-04-23 15:26:46 +03:00
Andrey Zelenkov
f264adeae9
Tests: removed alert skips after b6ca49c1da1b.
2018-04-23 15:15:09 +03:00
Andrey Zelenkov
961e8d800f
Tests: re-opening access log file.
2018-04-18 16:02:43 +03:00
Andrey Zelenkov
3e2326cff1
Tests: graceful shutdown.
2018-04-18 16:02:37 +03:00
Andrey Zelenkov
62aa3a5dae
Tests: access_log tests.
2018-04-11 18:34:11 +03:00
Andrey Zelenkov
f6c3ef7ed3
Tests: added Python test with not iterable object.
2018-04-05 17:55:06 +03:00
Andrey Zelenkov
43ba7aad6c
Tests: fixed unwanted comment in a11b80dedc6b.
2018-04-04 15:33:11 +03:00
Andrey Zelenkov
151160c110
Tests: Perl script with syntax error.
2018-04-02 19:20:11 +03:00
Andrey Zelenkov
1583d659ab
Tests: change alert skip in test_listeners_empty after RPC fixes.
2018-04-02 18:37:45 +03:00
Andrey Zelenkov
a01a98ce36
Tests: more Python tests.
2018-04-02 17:03:41 +03:00
Andrey Zelenkov
efb71121b9
Tests: added Python test with iterator context.
2018-04-02 17:03:41 +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
Andrey Zelenkov
f0df93ee3b
Tests: HTTP header field and value tests.
2018-03-16 17:45:25 +03:00
Andrey Zelenkov
30a32c2f09
Tests: detect alerts and Sanitizer errors.
2018-03-06 16:58:47 +03:00
Andrey Zelenkov
6aa00fa8d0
Tests: more configuration tests.
2018-02-26 20:18:24 +03:00
Andrey Zelenkov
a89747e97c
Tests: more perl tests.
2018-02-26 19:53:40 +03:00
Andrey Zelenkov
6d79c559b5
Tests: handle ConnectionRefusedError in TestUnitHTTP.http().
2018-02-20 20:34:46 +03:00
Andrey Zelenkov
09f2009df5
Tests: reworked python tests with application.
2018-02-20 20:34:41 +03:00
Andrey Zelenkov
ee39da0e00
Tests: removed unused code in unit.py.
2018-02-14 17:14:16 +03:00
Andrey Zelenkov
e2c3fa6304
Tests: perl module.
2018-02-12 19:32:54 +03:00
Andrey Zelenkov
0d032c1036
Tests: expectedFailure removed from test_python_keepalive.py.
...
Fix committed in 28a2b93de75f.
2018-02-08 16:29:37 +03:00
Andrey Zelenkov
949ba262cc
Style fixes.
2018-02-07 15:34:42 +03:00
Andrey Zelenkov
b4e467e669
Fixed configuration checks for "max" property.
2018-02-06 20:31:48 +03:00
Andrey Zelenkov
5c35d30cc8
Tests: more tests for processes.
2018-02-06 20:31:48 +03:00
Andrey Zelenkov
993f8f2d5c
Tests: changed process counting in test_python_procman.py.
2018-02-06 20:31:42 +03:00
Andrey Zelenkov
ff9fa11cd9
Tests: minor fixes in test_python_procman.py.
2018-02-06 20:17:09 +03:00
Andrey Zelenkov
91dc1303f5
Tests: added "Connection: close" header for default requests.
2018-02-05 15:39:23 +03:00
Andrey Zelenkov
0379f927b3
Tests: simplified test for query string.
2018-02-05 15:39:16 +03:00
Andrey Zelenkov
3faa154223
Tests: adjusted check_version()'s.
2018-02-05 15:39:11 +03:00
Andrey Zelenkov
a36babddef
Tests: added keep-alive test.
2018-01-30 16:17:08 +03:00
Andrey Zelenkov
afa0fd9a71
Tests: reworked TestUnitHTTP.
2018-01-30 16:17:01 +03:00
Andrey Zelenkov
9f48f2b3e7
Tests: added methods to manage unit configuration.
2018-01-30 16:16:52 +03:00
Andrey Zelenkov
f115cb7032
Tests: small fixes.
2018-01-30 16:16:42 +03:00
Andrey Zelenkov
cb80be00a5
Tests: fixed test for listener without port.
...
Broken after 879868522dbf.
2018-01-30 16:16:26 +03:00