summaryrefslogtreecommitdiffhomepage
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-12-25Tests: removed skipping Go tests on x86.Andrey Zelenkov1-6/+1
2018-12-25Tests: added delay to wait for error logging.Andrey Zelenkov1-0/+3
2018-12-25Tests: fixed test_tls_reconfigure.Andrey Zelenkov1-9/+11
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-25Tests: set TCP_NODELAY option by default.Andrey Zelenkov1-0/+3
2018-12-25Tests: test_node_application_write_before_writeHead reworked.Andrey Zelenkov2-2/+3
Added res.end() call in application and response status check. Also, renamed to test_node_application_write_before_write_head.
2018-12-25Tests: expectedFailure's removed from test_node_application.py.Andrey Zelenkov1-7/+0
Also removed alert skip in test_node_application_write_before_writeHead. Fixes committed in 1340e3539362, 1e008ef94f43, 5df32621af19, dae402cb243f and 41f561b3a178.
2018-12-24Tests: more QUERY_STRING tests.Andrey Zelenkov5-0/+88
2018-12-11Tests: more Node.js tests.Andrey Zelenkov11-2/+200
2018-11-28Tests: PHP directives "disable_classes" and "disable_functions".Andrey Zelenkov3-0/+118
2018-12-04Tests: fixed test_node_application_write_callback.Andrey Zelenkov2-3/+9
Fixed the write() callback order test. Also introduced a separate test to verify the callback call itself.
2018-10-25Tests: Node.js application tests.Sergey Kandaurov18-0/+342
2018-11-15Tests: class prefix made optional.Andrey Zelenkov1-2/+6
2018-11-15Tests: added command line arguments parsing in tests.Andrey Zelenkov15-17/+55
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-13Tests: print path to unit.log file when it was saved.Andrey Zelenkov1-3/+14
2018-11-13Tests: leave unit.log in case of error or failure.Andrey Zelenkov1-1/+21
2018-10-18Tests: provide openssl.conf in test_tls_certificate_key_ec.Sergey Kandaurov1-0/+3
Previously, test failed if openssl was unable to load config info, or the system's openssl.cnf was picked up, which is wrong as well.
2018-10-09Renamed "go" application type to "external".Valentin Bartenev1-1/+1
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-09-28Disabled chunked transfer encoding for 204 responses.Igor Sysoev1-1/+0
2018-09-20Tests: TLS tests.Andrey Zelenkov2-4/+505
2018-09-20Python: adjusted input.read(size) argument value interpretation.Valentin Bartenev1-1/+0
Previously, passing 0 resulted in reading the whole body and all negative values raised an exception. Now the behaviour is in consistentance with io.RawIOBase.read() interface, and passing 0 returns empty (byte) string, while -1 results in reading the whole body.
2018-09-17Tests: test_settings_header_read_timeout_update adjusted.Andrey Zelenkov1-4/+9
2018-09-06Tests: used relative path for configuration.Andrey Zelenkov11-126/+125
2018-09-04Tests: fixed test_settings_header_read_timeout_update.Andrey Zelenkov1-4/+7
2018-09-04Tests: "no_recv" option introduced.Andrey Zelenkov1-2/+5
2018-09-04Tests: "/config" prefix used.Andrey Zelenkov1-3/+12
2018-08-21Tests: more timeout tests.Andrey Zelenkov1-0/+51
2018-08-21Tests: typo.Andrey Zelenkov1-1/+1
2018-08-10Introducing app joint to accurate app release.Max Romanov1-1/+1
For accurate app descriptor release, it is required to count the number of use counts. Use count increased when: - app linked to configuration app queue; - socket conf stores pointer to app; - request for start app process posted to router service thread; Application port has pointer to app, but it does not increase use count to avoid use count loop. Timer needs a pointer to nxt_timer_t which is stored in engine timers tree. nxt_timer_t now resides in nxt_app_joint_t and does not lock the application. Start process port RPC handlers is also linked to nxt_app_joint_t. App joint (nxt_app_joint_t) is a 'weak pointer': - single threaded; - use countable; - store pointer to nxt_app_t (which can be NULL); nxt_app_t has pointer to nxt_app_joint_t and update its pointer to app.
2018-08-08Tests: simple "Transfer-Encoding" client header test.Andrey Zelenkov1-0/+17
2018-08-08Tests: more reconfigure tests.Andrey Zelenkov1-0/+53
2018-08-06Tests: remove unused function.Andrey Zelenkov1-6/+0
This function was accidentally added in e0f0cd7d244a.
2018-08-06Python: decoding unicode strings as Latin1.Max Romanov1-1/+0
According to PEP 3333, header names and values should be decoded as Latin1.
2018-08-06Unit application library.Max Romanov4-4/+13
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2018-07-30Tests: expectedFailure removed from test_settings_idle_timeout.Andrey Zelenkov1-1/+0
Fix committed in f04b28aa6e02.
2018-07-30Tests: fixed test_settings_idle_timeout.Andrey Zelenkov1-2/+2
2018-07-30Tests: fixed header value char tests.Andrey Zelenkov3-9/+17
Use byte strings to avoid problems with encoding.
2018-07-13Tests: HTTP settings.Andrey Zelenkov2-3/+124
2018-07-11Tests: more php.ini options tests.Andrey Zelenkov2-0/+78
2018-07-11Tests: more chars in header values tests.Andrey Zelenkov1-0/+20
2018-07-11Tests: empty configuration.Andrey Zelenkov1-0/+3
2018-06-08Tests: Go application tests.Andrey Zelenkov11-5/+377
2018-06-07Tests: added tests for "precision" option in php.ini.Andrey Zelenkov4-0/+18
2018-05-30Tests: added keep-alive with reconfiguration test.Andrey Zelenkov1-0/+52
2018-05-29Tests: configuration of environment variables.Andrey Zelenkov2-0/+141
2018-05-22Tests: initial PHP application tests.Andrey Zelenkov11-0/+193
2018-05-21Tests: added tests for SERVER_SOFTWARE variable.Andrey Zelenkov6-6/+15
2018-04-26Tests: response handling improved.Andrey Zelenkov3-10/+14
2018-04-26Tests: added test for callable write() in Python.Andrey Zelenkov2-0/+10
2018-04-23Tests: added access log test with unix socket.Andrey Zelenkov1-0/+20
2018-04-23Tests: added delay to wait for requests logging.Andrey Zelenkov1-0/+33