Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-05-12 | Node.js: a shim for overriding "http" and "websocket" modules. | Oisin Canty | 2 | -5/+29 | |
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-05 | Tests: added tests for openat2() features. | Andrei Zeliankou | 1 | -0/+32 | |
2021-04-08 | Tests: preserving unit.log when run without restart. | Max Romanov | 2 | -6/+35 | |
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals. | |||||
2021-04-05 | Tests: style. | Andrei Zeliankou | 5 | -30/+40 | |
2021-03-26 | Tests: SNI. | Andrei Zeliankou | 2 | -4/+20 | |
2021-03-22 | Java: upgrading third-party components. | Sergey A. Osokin | 1 | -1/+1 | |
2021-02-18 | Tests: added regex check. | Andrei Zeliankou | 1 | -0/+13 | |
2021-02-10 | Tests: increased timeout in wait_for_record(). | Andrei Zeliankou | 1 | -2/+2 | |
2021-02-08 | Tests: added "--restart" option. | Andrei Zeliankou | 1 | -1/+1 | |
Now Unit do not restart after each test by default. | |||||
2021-01-13 | Tests: waitformount() and waitforunmount() introduced. | Andrei Zeliankou | 1 | -0/+32 | |
2020-12-21 | Tests: introduced a separate cache directory for Go builds. | Tiago Natel de Moura | 1 | -0/+1 | |
The Go compiler can't detect changes to C header files when compiling CGO applications, and then this leads to Go test samples being linked with wrong libunit. This patch creates a new cache directory reused throughout the test suite. | |||||
2020-12-15 | Tests: fixed bug that disabled isolation tests. | Tiago Natel de Moura | 1 | -1/+1 | |
2020-12-09 | Tests: TestUnit class removed. | Andrei Zeliankou | 2 | -38/+1 | |
Prerequisite checks moved to the fixture in conftest.py. | |||||
2020-12-09 | Tests: isolation check moved to the pytest_sessionstart(). | Andrei Zeliankou | 4 | -186/+190 | |
This change eliminates the need for some classes to run Unit one more time before running tests. | |||||
2020-12-08 | Tests: utils module introduced. | Andrei Zeliankou | 2 | -1/+51 | |
2020-12-06 | Tests: options moved to the separate class. | Andrei Zeliankou | 14 | -13/+29 | |
This change is necessary to separate the logic and prevent possible circular dependency. | |||||
2020-11-16 | Tests: fixing tests interrupt in terminal. | Max Romanov | 4 | -3/+24 | |
KeyboardInterrupt re-raised. | |||||
2020-11-10 | Python: supporting ASGI legacy protocol. | Max Romanov | 1 | -1/+2 | |
Introducing manual protocol selection for 'universal' apps and frameworks. | |||||
2020-11-10 | Tests: supporting instant app parameters in load(). | Max Romanov | 1 | -9/+13 | |
2020-11-03 | Tests: force applications to build for JVM 8. | Andrei Zeliankou | 1 | -0/+1 | |
This change is made to avoid situations when an application is compiled for a version newer than the Java module used. | |||||
2020-11-02 | Java: upgrading 3rd-party components. | Max Romanov | 1 | -1/+1 | |
2020-10-29 | Isolation: mounting of procfs by default when using "rootfs". | Tiago Natel de Moura | 1 | -0/+14 | |
2020-10-28 | Tests: improving get_application_type() and fixing its name. | Max Romanov | 6 | -27/+11 | |
This patch also enables multiversion tests running for Java. | |||||
2020-10-27 | Tests: fixed isolation detection. | Andrei Zeliankou | 3 | -27/+112 | |
2020-10-19 | Tests: fixed unit.log print. | Andrei Zeliankou | 10 | -219/+38 | |
2020-10-07 | Tests: minor fixes. | Andrei Zeliankou | 12 | -23/+23 | |
2020-10-07 | Tests: fixed loading selected module version. | Valentin Bartenev | 3 | -3/+15 | |
Previously, for PHP, Ruby, and Perl the latest version was always loaded in multi-version tests. | |||||
2020-10-01 | Tests: added ASGI WebSocket. | Max Romanov | 1 | -1/+1 | |
2020-10-01 | Tests: minor fixes. | Andrei Zeliankou | 8 | -69/+60 | |
Fixed temporary dir removing. Fixed printing path to log. Module checks moved to the separate file. | |||||
2020-09-22 | Tests: introduced module name configuration. | Max Romanov | 1 | -3/+10 | |
Also fixed problem with "/" in application name. | |||||
2020-09-22 | Tests: improved response receiving while upgrade. | Max Romanov | 1 | -4/+1 | |
The patch required to process non-101 response. | |||||
2020-09-22 | Tests: using dict.get() method with default value. | Max Romanov | 1 | -18/+9 | |
No functional changes. Only code readability improved. | |||||
2020-09-16 | Tests: migrated to the pytest. | Andrei Zeliankou | 14 | -305/+124 | |
2020-07-28 | Tests: fixed double stop() call for some tests. | Andrei Zeliankou | 1 | -6/+11 | |
2020-07-28 | Tests: style. | Andrei Zeliankou | 2 | -3/+2 | |
2020-07-22 | Tests: switching stdout to blocking before printing log. | Max Romanov | 1 | -3/+6 | |
This is another attempt to fix the following error message: BlockingIOError: [Errno 11] write could not complete without blocking | |||||
2020-05-28 | Tests: Added rootfs tests. | Tiago Natel de Moura | 3 | -31/+66 | |
2020-05-20 | Tests: print unit.log in case of errors. | Andrei Zeliankou | 1 | -1/+2 | |
Thanks to hongzhidao. | |||||
2020-05-15 | Tests: style. | Andrei Zeliankou | 10 | -19/+26 | |
2020-05-14 | Configuration: URI encoding in the "pass" option. | Valentin Bartenev | 1 | -1/+4 | |
This is useful to escape "/" in path fragments. For example, in order to reference the application named "foo/bar": { "pass": "applications/foo%2Fbar" } | |||||
2020-04-24 | Tests: introduced module version specification in prerequisites. | Andrei Zeliankou | 1 | -2/+14 | |
2020-04-14 | Tests: minor fixes and style. | Andrei Zeliankou | 1 | -6/+2 | |
2020-04-08 | Controller: improved handling of unix domain control socket. | Valentin Bartenev | 1 | -4/+1 | |
One of the ways to detect Unit's startup and subsequent readiness to accept commands relies on waiting for the control socket file to be created. Earlier, it was unreliable due to a race condition between the client's connect() and the daemon's listen() calls after the socket's bind() call. Now, unix domain listening sockets are created with a nxt_listen_socket_create() call as follows: s = socket(); unlink("path/to/socket.tmp") bind(s, "path/to/socket.tmp"); listen(s); rename("path/to/socket.tmp", "path/to/socket"); This eliminates a time-lapse when the socket file is already created but nobody is listening on it yet, which therefore prevents the condition described above. Also, it allows reliably detecting whether the socket is being used or simply wasn't cleaned after the daemon stopped abruptly. A successful connection to the socket file means the daemon has been started; otherwise, the file can be overwritten. | |||||
2020-04-03 | Tests: added notification on "read_timeout" expiration. | Andrei Zeliankou | 2 | -4/+30 | |
2020-04-03 | Tests: minor fixes. | Andrei Zeliankou | 1 | -8/+18 | |
2020-03-30 | Fixing application process infinite loop. | Max Romanov | 1 | -1/+0 | |
Main process exiting before app process init may have caused hanging. | |||||
2020-03-27 | Tests: increase default "read_timeout" to 60s in message_read(). | Andrei Zeliankou | 1 | -1/+1 | |
2020-03-23 | Tests: increase default "read_timeout" value to 60s. | Andrei Zeliankou | 2 | -15/+16 | |
This change is necessary to avoid errors on slow hosts. Also slightly reworked argument passing to the recvall() function. | |||||
2020-03-23 | Tests: added notification on unsuccessful connect(). | Andrei Zeliankou | 1 | -1/+1 | |
2020-03-23 | Tests: wait for unit.pid file before running tests. | Andrei Zeliankou | 1 | -1/+4 | |
Waiting for control.unit.sock was replaced by unit.pid due to current problem with race between connect() and listen() calls for control.unit.sock. This change should be reverted after fix. |