summaryrefslogtreecommitdiffhomepage
path: root/test (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-12-01Tests: fixed skipping tests with disabled OPcache.Andrei Zeliankou1-1/+1
2021-11-15Tests: fixed session reuse tests.Andrei Zeliankou1-17/+13
Since SSL_CTX_sess_set_cache_size() can't guarantee the size of the cache there is no need to test edge "cache_size" values.
2021-11-15Tests: refactored working with processes.Andrei Zeliankou8-39/+39
2021-11-10Tests: added more tests for "query" routing pattern.Andrei Zeliankou1-8/+16
2021-11-09Tests: PHP shared opcache test added.Max Romanov4-9/+54
2021-11-09Tests: app prototype related fixes.Max Romanov5-3/+19
2021-11-05Router: matching query string support.Zhidao HONG1-0/+44
The "query" option matches decoded arguments, including plus ('+') to space (' '). Like "uri", it can be a string or an array of strings.
2021-11-04Tests: added "requirements.txt".Andrei Zeliankou1-0/+2
2021-11-04Tests: added migration test for "share".Andrei Zeliankou2-4/+52
2021-11-02Tests: added pyOpenSSL module check were necessary.Andrei Zeliankou2-0/+4
2021-11-02Tests: removed unused imports.Andrei Zeliankou11-12/+0
2021-10-28Tests: added tests for TLS session tickets.Andrei Zeliankou1-0/+195
2021-10-28Tests: added tests for TLS sessions.Andrei Zeliankou1-0/+129
2021-10-18Tests: style.Andrei Zeliankou51-74/+19
2021-10-05Tests: added tests for variables in "chroot".Andrei Zeliankou1-0/+116
2021-10-05Tests: added tests for variables in "share".Andrei Zeliankou1-0/+80
2021-10-05Tests: added tests for "share" option with arrays.Andrei Zeliankou1-0/+73
2021-09-30Static: variables in the "share" option.Zhidao HONG6-43/+48
This commit supports variable in the "share" option, the finding path to file serve is the value from "share". An example: { "share": "/www/data/static$uri" }
2021-09-20Fixed WebSocket connection hang issue after listener reconfigure.Max Romanov1-0/+17
Because the configuration values were read from the listener's configuration, an established WebSocket connection was unable to work properly (i. e. stuck) if the listener was removed. The correct source of configuration values is the request config joint. This is related to issue #581 on GitHub.
2021-08-12Java: upgrading third-party components.Max Romanov1-1/+1
2021-08-12Tests: client IP address replacement.Oisin Canty2-0/+133
2021-08-11Tests: initialising log params before first _print_log().Max Romanov1-2/+3
2021-08-11Tests: retrying directory remove if resource is busy.Max Romanov1-1/+8
2021-08-09Java: upgrading third-party components.Max Romanov1-1/+1
2021-08-05Router: fixed crash when matching an empty address pattern array.Oisin Canty1-0/+4
A crash would occur when the router tried to match an against an empty address pattern array. The following configuration was used to reproduce the issue: { "listeners": { "127.0.0.1:8082": { "pass": "routes" } }, "routes": [ { "match": { "source": [] }, "action": { "return": 200 } } ] }
2021-08-02Router: fixed segmentation fault.Zhidao HONG1-0/+19
In the case that routes or upstreams is empty and the pass option is a variable. If the resolved pass is routes or upstreams, a segment error occurred.
2021-07-29Application restart introduced.Max Romanov5-0/+104
When processing a restart request, the router sends a QUIT message to all existing processes of the application. Then, a new shared application port is created to ensure that new requests won't be handled by the old processes of the application.
2021-07-23Tests: added SNI test without hostname in request.Andrei Zeliankou2-1/+21
2021-07-21Tests: use mutex with multitthreaded Ruby hooks.Oisin Canty3-3/+15
This commit fixes a rare crash that can occur when File.write is called by many threads.
2021-07-06Tests: print_log_on_assert() decorator introduced.Andrei Zeliankou1-73/+82
2021-07-03Tests: address configuration tests reworked.Andrei Zeliankou1-58/+21
2021-07-02Tests: Ruby hooks.Oisin Canty11-22/+183
2021-07-02Tests: run Ruby applications inside temporary directory.Oisin Canty3-10/+20
2021-07-01Tests: fixing racing condition in respawn tests.Max Romanov1-5/+10
A race may occur between the router process restart and the main process sending a notification to the running controller. For example, a test script detects the new process and starts performing a smoke test, but the controller has not yet received the 'remove PID' notification, so the connection to the router is broken and any attempt to update the configuration will cause an error. The solution is to perform several attempts to reconfigure Unit with a short delay between failures.
2021-07-01Fixing multiple TLS-enabled listeners initialization.Max Romanov1-0/+13
Because of the incorrect 'last' field assignment, multiple listeners with a TLS certificate did not initialize properly, which caused a router crash while establishing a connection. Test with multiple TLS listeners added. The issue was introduced in the c548e46fe516 commit. This closes #561 issue on GitHub.
2021-05-27Tests: added tests for TLS "conf_commands" option.Andrei Zeliankou1-0/+112
2021-05-26Tests: added TLS test without close notify.Andrei Zeliankou1-0/+23
2021-05-26Static: handled unknown MIME types when MIME-filtering active.Oisin Canty1-1/+1
2021-05-25Go: fixing tests for Go 1.16.Max Romanov2-0/+2
In Go 1.16, the module-aware mode is enabled by default; to fall back to previous behavior, the GO111MODULE environment variable should be set to 'auto'. Details: https://golang.org/doc/go1.16
2021-05-24Tests: added additional check in tests with timeouts.Andrei Zeliankou1-76/+119
2021-06-28Tests: renamed share to static.Andrei Zeliankou8-62/+57
Also minor style changes.
2021-06-24Tests: chroot test with permissions skipped under root.Andrei Zeliankou1-1/+4
2021-05-24Tests: test_settings_send_timeout improved.Andrei Zeliankou3-8/+34
Data length adjusts depending on socket buffer size when it's possible.
2021-05-24Node.js: renamed "require_shim" to "loader".Oisin Canty12-13/+13
2021-05-24Tests: minor fixes.Andrei Zeliankou2-77/+25
2021-05-20Tests: Python targets.Oisin Canty7-32/+295
2021-05-18Tests: added test to check port release.Andrei Zeliankou1-0/+28
2021-05-17Tests: fixed incorrect "--restart" mode performing.Andrei Zeliankou1-4/+6
2021-05-12Tests: added test for TLS with IP in SAN.Andrei Zeliankou2-2/+30
2021-05-12Node.js: a shim for overriding "http" and "websocket" modules.Oisin Canty39-66/+210
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express Supports both CommonJS and the new ES Modules system syntax e.g: app.js: const http = require('http') app.mjs: import http from "http" Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] } Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] }