History log of /unit/test/test_node_application.py (Results 1 – 25 of 34)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2598:d431669a493a 17-Nov-2023 Andrei Zeliankou

Node.js: ServerResponse.flushHeaders() implemented.

This closes #1006 issue on GitHub.

Reviewed-by: Andrew Clayton <a.clayton@nginx.com>


Revision tags: 1.31.1-1, 1.31.1
# 2559:a5edcf1bf614 25-Sep-2023 Andrei Zeliankou

Node.js: response body chunk can now be a Uint8Array.

Starting from Node.js 15.0.0 the chunk parameter of the response.write()
can be a Uint8Array.

This closes #870 issue on GitHub.


Revision tags: 1.31.0-1, 1.31.0
# 2491:aae60837ac20 14-Jun-2023 Andrei Zeliankou

Tests: get rid of classes in test files.

Class usage came from the unittest framework and it was always redundant
after migration to the pytest. This commit removes classes from files
containing te

Tests: get rid of classes in test files.

Class usage came from the unittest framework and it was always redundant
after migration to the pytest. This commit removes classes from files
containing tests to make them more readable and understandable.

show more ...


# 2488:55440e02a873 12-Jun-2023 Andrei Zeliankou

Tests: prerequisites checking reworked.

Prerequisites check moved to the module level to simplify class structure.
Discovery and prerequisites checks functions moved to the separate files.
Introduce

Tests: prerequisites checking reworked.

Prerequisites check moved to the module level to simplify class structure.
Discovery and prerequisites checks functions moved to the separate files.
Introduced "require" fixture to provide per-test requirements check.

show more ...


# 2482:88df458ead6d 29-May-2023 Andrei Zeliankou

Tests: more fixtures.

Common methods from applications/proto.py converted to the fixtures.
sysctl check moved to the specific file where it is using.
Some options moved to the constructor to have ea

Tests: more fixtures.

Common methods from applications/proto.py converted to the fixtures.
sysctl check moved to the specific file where it is using.
Some options moved to the constructor to have early access.

show more ...


Revision tags: 1.30.0-1, 1.30.0, 1.29.1-1, 1.29.1
# 2330:4b1f175f9c88 21-Feb-2023 Andrei Zeliankou

Tests: switched to using f-strings.

Previously, it was necessary to support older versions of Python for
compatibility. F-strings were released in Python 3.6. Python 3.5 was
marked as unsupported

Tests: switched to using f-strings.

Previously, it was necessary to support older versions of Python for
compatibility. F-strings were released in Python 3.6. Python 3.5 was
marked as unsupported by the end of 2020, so now it's possible to start
using f-strings safely for better readability and performance.

show more ...


Revision tags: 1.29.0-1, 1.29.0, 1.28.0-1, 1.28.0
# 2190:fbfec2aaf4c3 07-Sep-2022 Andrei Zeliankou

Tests: minor fixes.


Revision tags: 1.27.0-1, 1.27.0
# 2073:bc6ad31ce286 11-Apr-2022 Andrei Zeliankou

Tests: style.


Revision tags: 1.26.1-1, 1.26.1, 1.26.0-1, 1.26.0
# 1971:3410f9d2a662 18-Oct-2021 Andrei Zeliankou

Tests: style.


Revision tags: 1.25.0-1, 1.25.0, 1.24.0-1, 1.24.0
# 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 ...


# 1848:4bd548074e2c 05-Apr-2021 Andrei Zeliankou

Tests: style.


Revision tags: 1.23.0-1, 1.23.0, 1.22.0-1, 1.22.0
# 1771:94cf6c5fafbd 13-Jan-2021 Andrei Zeliankou

Tests: style.


# 1766:9ec17030b67e 29-Dec-2020 Max Romanov

Node.js: ServerRequest and ServerResponse compliance to Stream API.

ServerRequest now inherit stream Readable object. ServerResponse
provides 'writable' property.

Thanks to Wu Jian Ping (@wujjpp).

Node.js: ServerRequest and ServerResponse compliance to Stream API.

ServerRequest now inherit stream Readable object. ServerResponse
provides 'writable' property.

Thanks to Wu Jian Ping (@wujjpp).

This closes #274, closes #317 issues and closes #502 PR on GitHub.

show more ...


# 1735:a0e0d4f90e51 08-Dec-2020 Andrei Zeliankou

Tests: utils module introduced.


Revision tags: 1.21.0-1, 1.21.0
# 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.


# 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.


# 1467:195fe0a92670 24-Apr-2020 Andrei Zeliankou

Tests: introduced module version specification in prerequisites.


Revision tags: 1.17.0-1, 1.17.0
# 1453:71af60a59338 14-Apr-2020 Andrei Zeliankou

Tests: minor fixes and style.


Revision tags: 1.16.0-1, 1.16.0, 1.15.0-1, 1.15.0, 1.14.0-1, 1.14.0
# 1295:f60a68728306 26-Nov-2019 Tiago Natel

Tests: parsing of "Transfer-Encoding: chunked" responses.


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.


Revision tags: 1.10.0-2, 1.10.0-1, 1.10.0, 1.9.0-1, 1.9.0
# 1064:75a64629661f 30-May-2019 Andrey Zelenkov

Tests: adjusted skipping tests.


# 1029:687f7cc7aae2 09-Apr-2019 Andrey Zelenkov

Tests: speed up tests.


12