Commit graph

63 commits

Author SHA1 Message Date
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
Max Romanov
5bfdebb9e4 Introducing Java Servlet Container beta. 2019-02-28 18:02:42 +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
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
b2ca342902 Tests: JSON array allowed. 2019-02-20 20:20:02 +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
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
f5b7fee128 Tests: set TCP_NODELAY option by default. 2018-12-25 16:35:35 +03:00
Sergey Kandaurov
0fdc7c3a55 Tests: Node.js application tests. 2018-10-25 15:43:48 +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
Valentin Bartenev
029c1a9f50 Renamed "go" application type to "external".
There's nothing specific to Go language.  This type of application object can
be used to run any external application that utilizes libunit API.
2018-10-09 17:53:31 +03:00
Andrey Zelenkov
d0e428aace Tests: TLS tests. 2018-09-20 16:34:34 +03:00
Andrey Zelenkov
511a0fa760 Tests: used relative path for configuration. 2018-09-06 20:18:33 +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
09268676ef Tests: remove unused function.
This function was accidentally added in e0f0cd7d244a.
2018-08-06 19:40:37 +03:00
Max Romanov
1bb22d1e92 Unit application library.
Library now used in all language modules.
Old 'nxt_app_*' code removed.

See src/test/nxt_unit_app_test.c for usage sample.
2018-08-06 17:27:33 +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
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
3b7238996a Tests: initial PHP application tests. 2018-05-22 20:20:14 +03:00
Andrey Zelenkov
d9f8479375 Tests: response handling improved. 2018-04-26 17:37:24 +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
43ba7aad6c Tests: fixed unwanted comment in a11b80dedc6b. 2018-04-04 15:33:11 +03:00
Andrey Zelenkov
a01a98ce36 Tests: more Python tests. 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
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
91dc1303f5 Tests: added "Connection: close" header for default requests. 2018-02-05 15:39:23 +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
331514fcf7 Tests: using "expectedFailure" decorator instead of assertTry(). 2018-01-24 15:43:04 +03:00
Andrey Zelenkov
a949c2f088 Tests: using LF line ending for test files. 2018-01-17 15:52:01 +03:00
Andrey Zelenkov
819b43fc2d Tests: use "data" parameter in Request() to send body. 2018-01-15 19:59:47 +03:00
Andrey Zelenkov
263741fb44 Tests: style. 2018-01-15 19:57:28 +03:00
Andrey Zelenkov
d229549101 Tests: fixed arguments order in getattr() call. 2018-01-15 17:50:10 +03:00
Andrey Zelenkov
b217a1e058 Tests: simple python application. 2018-01-15 16:06:26 +03:00