History log of /unit/test/unit/applications/lang/node.py (Results 1 – 18 of 18)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1876:f85b85094541 24-May-2021 Oisin Canty

Node.js: renamed "require_shim" to "loader".


# 1865:3c551b9721df 12-May-2021 Oisin Canty

Node.js: a shim for overriding "http" and "websocket" modules.

Also added stubs for Server.address()
This was done to prevent crashes in some popular frameworks like express

Supports both CommonJS

Node.js: a shim for overriding "http" and "websocket" modules.

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"
]
}

show more ...


Revision tags: 1.23.0-1, 1.23.0, 1.22.0-1, 1.22.0
# 1735:a0e0d4f90e51 08-Dec-2020 Andrei Zeliankou

Tests: utils module introduced.


# 1730:44912af5b3e6 06-Dec-2020 Andrei Zeliankou

Tests: options moved to the separate class.

This change is necessary to separate the logic
and prevent possible circular dependency.


Revision tags: 1.21.0-1, 1.21.0
# 1657:0821c0c05a9f 27-Oct-2020 Andrei Zeliankou

Tests: fixed isolation detection.


# 1654:fc7d0578e124 19-Oct-2020 Andrei Zeliankou

Tests: fixed unit.log print.


Revision tags: 1.20.0-1, 1.20.0
# 1635:97afbb6c5a15 07-Oct-2020 Andrei Zeliankou

Tests: minor fixes.


# 1621:275b26bbd3ae 01-Oct-2020 Andrei Zeliankou

Tests: minor fixes.

Fixed temporary dir removing.
Fixed printing path to log.
Module checks moved to the separate file.


# 1596:b7e2d4d92624 16-Sep-2020 Andrei Zeliankou

Tests: migrated to the pytest.


Revision tags: 1.19.0-1, 1.19.0, 1.18.0-1, 1.18.0
# 1477:b93d1acf81bd 15-May-2020 Andrei Zeliankou

Tests: style.


# 1472:88536f5bd13f 14-May-2020 Valentin Bartenev

Configuration: URI encoding in the "pass" option.

This is useful to escape "/" in path fragments. For example, in order
to reference the application named "foo/bar":

{
"pass": "application

Configuration: URI encoding in the "pass" option.

This is useful to escape "/" in path fragments. For example, in order
to reference the application named "foo/bar":

{
"pass": "applications/foo%2Fbar"
}

show more ...


Revision tags: 1.17.0-1, 1.17.0, 1.16.0-1, 1.16.0, 1.15.0-1, 1.15.0, 1.14.0-1, 1.14.0
# 1303:248eeec4c272 11-Nov-2019 Tiago Natel

Tests: added support for testing "user" and "group".


# 1293:40251b822c85 09-Nov-2019 Tiago Natel

Tests: fixed tests to run as root.

- The mode of testdir was changed to allow reading from other users/groups.
- The java multipart test now uploads the file into an app writable dir.
- The build di

Tests: fixed tests to run as root.

- The mode of testdir was changed to allow reading from other users/groups.
- The java multipart test now uploads the file into an app writable dir.
- The build directory was made readable for other users.
- The python environment test now uses the HOME env var instead of PWD
because the latter is not set by the root shell (/bin/sh) by default.
- The node `node_modules` directory now is copied into the `testdir` instead
of using symlinks.

show more ...


Revision tags: 1.13.0-1, 1.13.0, 1.12.0-1, 1.12.0, 1.11.0-2, 1.11.0-1, 1.11.0
# 1165:998b521bbdb8 14-Sep-2019 Andrey Zelenkov

Tests: refactored prerequisites model.


# 1163:ec7aad540d72 16-Sep-2019 Andrey Zelenkov

Tests: style and minor fixes in java.py.


Revision tags: 1.10.0-2, 1.10.0-1, 1.10.0, 1.9.0-1, 1.9.0
# 1050:5b9ec6a8ae06 26-Apr-2019 Andrey Zelenkov

Tests: check application configuration loading.


# 1041:9bdd46610ea9 22-Apr-2019 Valentin Bartenev

Tests: using "pass" option instead of deprecated "application".


# 1019:61d90b4da691 28-Mar-2019 Andrey Zelenkov

Tests: unit module refactoring.