summaryrefslogtreecommitdiffhomepage
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-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" ] }
2021-05-11Tests: temporary dir removed after tests execution.Andrei Zeliankou1-0/+6
2021-05-07Tests: added test for TLS with empty Subject field.Andrei Zeliankou1-109/+130
2021-05-07Tests: PHP test with getting variable before the script is loaded.Andrei Zeliankou3-2/+18
2021-05-06Tests: MIME filteringOisin Canty1-0/+170
2021-05-05Tests: added tests for openat2() features.Andrei Zeliankou6-8/+380
2021-04-14Tests: fixed "skip" descriptors check flag for controller.Andrei Zeliankou1-1/+1
2021-04-08Tests: preserving unit.log when run without restart.Max Romanov9-96/+94
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals.
2021-04-05Tests: style.Andrei Zeliankou67-623/+698
2021-04-01Tests: unset LC_ALL variable in Ruby encoding test.Andrei Zeliankou1-1/+2
This change is necessary to set Encoding.default_external value correctly.
2021-03-31Tests: removed skip_alert().Andrei Zeliankou1-4/+1
2021-03-31Tests: added file descriptor leak detection.Andrei Zeliankou2-2/+132
2021-03-26Tests: SNI.Andrei Zeliankou3-4/+306
2021-03-26Tests: added test for Ruby default encoding.Andrei Zeliankou2-0/+55