Andrei Zeliankou
b47415fb72
Prepearing for 1.31.1 release.
2023-10-19 11:41:25 +01:00
Andrei Zeliankou
e78ada0140
Tests: added PHP test with rewrite and query string.
...
This test reproduces https://github.com/nginx/unit/issues/964 .
2023-10-11 16:42:55 +01:00
Andrei Zeliankou
c433a3c914
Rewrite and response headers mentioned in OpenAPI.
2023-10-11 15:21:09 +01:00
Andrei Zeliankou
37b0f34fb5
Proxy mentioned in OpenAPI.
2023-10-04 12:53:03 +01:00
Andrei Zeliankou
135160934a
Tests: added Java test with multiple headers.
...
This test reproduce https://github.com/nginx/unit/issues/923 .
2023-10-02 15:59:00 +01:00
Andrei Zeliankou
2d0e502d2a
Node.js: ServerRequest.destroy() implemented.
...
This closes #871 issue on GitHub.
2023-09-26 12:49:39 +01:00
Andrei Zeliankou
e0c2675774
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.
2023-09-26 12:49:39 +01:00
Andrei Zeliankou
34cf6e770b
Version file bump.
...
Forgotten in f717dc15b47e.
2023-09-04 14:06:21 +01:00
Andrei Zeliankou
8fae346836
Tests: added tests for the "response_headers" option.
2023-09-04 12:25:36 +01:00
Andrei Zeliankou
44f3886456
Version bump.
2023-09-04 12:03:39 +01:00
Andrei Zeliankou
75e96cb3e7
Unit 1.31.0 release.
2023-08-28 17:54:48 +01:00
Andrei Zeliankou
fd43b1b0ce
Generated Dockerfiles for Unit 1.31.0.
2023-08-23 11:29:07 +00:00
Andrei Zeliankou
13ee1d725c
Added version 1.31.0 CHANGES.
2023-08-28 17:51:45 +01:00
Andrei Zeliankou
4c0d0123ab
Mention WebAssembly application module in changes.xml.
...
Also separate header variables and "response_headers" option features.
2023-08-28 17:33:26 +01:00
Andrei Zeliankou
989e8cd9c8
Edited changes.xml for the 1.31.0 release.
2023-08-22 11:03:02 +01:00
Andrei Zeliankou
2ad03caf32
Tests: added tests for response header variables.
2023-07-11 15:51:53 +01:00
Andrei Zeliankou
075c6a7038
Tests: check TLS methods availability more carefully.
2023-07-10 15:24:15 +01:00
Andrei Zeliankou
3c7743344b
Tests: fixed exception handling.
2023-07-10 01:57:12 +01:00
Andrei Zeliankou
0461e804c1
Tests: no caching for $uri variable.
2023-06-14 18:30:40 +01:00
Andrei Zeliankou
c183bd8749
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.
2023-06-14 18:20:09 +01:00
Andrei Zeliankou
c6d05191a0
Tests: removed alert skip, unnecessary after 1a48ea61fec8.
2023-06-12 17:28:42 +01:00
Andrei Zeliankou
ce2405ec3d
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.
2023-06-12 14:16:59 +01:00
Andrei Zeliankou
31ff94add9
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.
2023-05-29 16:45:49 +01:00
Andrei Zeliankou
f55818059c
Tests: Log reworked.
...
All log-related code moved to the log.py.
2023-05-29 14:23:52 +01:00
Andrei Zeliankou
b034bf6703
Tests: assertion related fixes.
2023-05-25 16:56:14 +01:00
Andrei Zeliankou
0132e552d0
Tests: "temp_dir" fixture used were possible.
2023-05-25 16:56:14 +01:00
Andrei Zeliankou
18fcc07c77
Tests: unified setup method usage.
...
To make fixtures accessible inside of setup methods in tests all these methods
are renamed to the "setup_method_fixture" and decorated by autouse flag.
Also all setup methods moved to the top of the files.
2023-05-25 16:56:14 +01:00
Andrei Zeliankou
3e4fa1e202
Tests: removed unused variables.
2023-05-25 14:26:12 +01:00
Andrei Zeliankou
71f8c58f7f
Updated copyright notice.
2023-05-24 16:27:24 +01:00
Andrei Zeliankou
3f655cbd07
Version bump.
2023-05-24 16:24:42 +01:00
Andrei Zeliankou
5f8d58d2a4
Tests: added tests for "server_version" option.
2023-05-19 18:27:41 +01:00
Andrei Zeliankou
aa57254674
Tests: added ASGI application with IPv6 address test.
2023-05-19 18:27:07 +01:00
Andrei Zeliankou
faf97dc060
Unit 1.30.0 release.
2023-05-10 17:44:20 +01:00
Andrei Zeliankou
fcf1628b2c
Merged with the 1.29 branch.
2023-05-10 17:22:28 +01:00
Andrei Zeliankou
03718e0bdf
Added version 1.30.0 CHANGES.
2023-05-10 16:53:01 +01:00
Andrei Zeliankou
ec275200f7
Edited "changes.xml" for the 1.30.0 release.
2023-05-10 16:07:25 +01:00
Andrei Zeliankou
e88e16d11e
Tests: added tests for NJS loadable modules.
2023-05-10 13:02:52 +01:00
Andrei Zeliankou
56af7bb825
Tests: added tests for the URI rewrite.
2023-05-09 13:52:09 +01:00
Andrei Zeliankou
d5382aebb7
Unit 1.29.1 release.
2023-02-28 16:18:19 +00:00
Andrei Zeliankou
0af1253c17
Generated Dockerfiles for Unit 1.29.1.
2023-02-28 14:52:32 +00:00
Andrei Zeliankou
32f9c3d6f9
Added version 1.29.1 CHANGES.
2023-02-28 16:16:27 +00:00
Andrei Zeliankou
8295a0eb08
Changes moved to the correct section.
2023-02-28 16:01:54 +00:00
Andrei Zeliankou
ca9988171b
Added missing fixes in changes.xml.
2023-02-28 13:09:06 +00:00
Andrei Zeliankou
1b7cf1f3d0
Tests: added Python tests with encoding.
2023-02-21 15:35:38 +00:00
Andrei Zeliankou
b24257c8f6
Tests: added tests for the "log_route" option.
2023-03-21 19:20:23 +00:00
Andrei Zeliankou
28bdeec614
Tests: added Perl test with many responses using streaming body.
2023-03-14 11:06:09 +00:00
Andrei Zeliankou
4ed4283cff
Tests: _clear_temp_dir() function introduced.
...
Also added temporary directory clearing after checking available
modules to prevent garbage environment when tests start.
2023-03-07 14:47:39 +00:00
Andrei Zeliankou
814815a3c5
Merged with the 1.29 branch.
2023-03-01 18:25:52 +00:00
Andrei Zeliankou
32c9b8c3cd
Added missing fixes in changes.xml.
2023-02-28 13:42:39 +00:00
Andrei Zeliankou
7934dcabbc
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.
2023-02-21 17:21:29 +00:00
Andrei Zeliankou
fcabbf09d8
Tests: added Python tests with encoding.
2023-02-21 15:35:38 +00:00
Andrei Zeliankou
7f046c80b9
Tests: removed list usage as default argument.
...
Mutable types as default arguments is bad practice since
they are evaluated only once when the function is defined.
2023-02-21 14:40:47 +00:00
Andrei Zeliankou
05c5639458
Tests: added NJS iteration tests.
2023-01-24 01:12:22 +00:00
Andrei Zeliankou
6dad38f655
Tests: NJS tests reworked.
2023-01-24 01:11:44 +00:00
Andrei Zeliankou
aaba6fdcc9
Version bump.
2022-12-16 12:42:53 +00:00
Andrei Zeliankou
4409a10ff0
Unit 1.29.0 release.
2022-12-15 12:52:00 +00:00
Andrei Zeliankou
87a1a9c0d2
Generated Dockerfiles for Unit 1.29.0.
2022-12-15 12:42:01 +00:00
Andrei Zeliankou
edd7ebaf60
Added version 1.29.0 CHANGES.
2022-12-15 12:32:46 +00:00
Andrei Zeliankou
f65efe73a4
Reordered changes for 1.29.0 by significance (subjective).
2022-12-15 12:30:38 +00:00
Andrei Zeliankou
4b39cb1fc7
Tests: added tests for "path" option in isolation/cgroup.
2022-12-14 19:00:14 +00:00
Andrei Zeliankou
6313cffd26
Tests: added tests for the large header buffer settings.
...
Added tests for the "large_header_buffer_size" and
"large_header_buffers" configuration options.
2022-12-13 14:51:11 +00:00
Andrei Zeliankou
12e2cbae8a
Tests: stop execution if can't unmount any filesystem.
2022-12-12 16:27:02 +00:00
Andrei Zeliankou
648e91a623
Tests: pretty output.
...
Hide expected alerts by default.
Silence succesfull "go build" information.
2022-12-12 16:24:54 +00:00
Andrei Zeliankou
55b9a5307d
Tests: fixed tests to run as privileged user.
2022-12-09 14:17:49 +00:00
Andrei Zeliankou
d862f581db
Node.js: added "shortCircuit" option for ES modules hook.
...
Starting from Node.js v18.6.0 return value from all hooks must have
"shortCircuit: true" option specified. For more information see:
https://github.com/nodejs/node/commit/10bcad5c6e
2022-12-06 14:30:13 +00:00
Andrei Zeliankou
190691ade8
Tests: NJS.
2022-11-29 01:02:08 +00:00
Andrei Zeliankou
b5952edcc6
Version bump.
2023-02-27 19:13:56 +00:00
Andrei Zeliankou
9ea5ed2813
Tests: fixed _check_processes() checks in "--restart" mode.
2022-11-15 01:07:41 +00:00
Andrei Zeliankou
bb11ef694c
Tests: removed migration test.
...
Migration of "share" behaviour was dropped after b57b4749b993.
2022-11-15 00:56:49 +00:00
Andrei Zeliankou
2c2156e236
Tests: fixed assertion in test_variables_dynamic.
2022-11-15 00:42:12 +00:00
Andrei Zeliankou
0d3b31e671
Tests: features and options checks improved.
...
Now version output evaluates only once.
OpenSSL checks more carefully.
2022-11-15 00:39:21 +00:00
Andrei Zeliankou
40d75c94a0
Optimization for the "--no-unix-sockets" case.
2022-11-15 00:17:32 +00:00
Andrei Zeliankou
af5903ff4e
Tests: added tests for the $request_time variable.
2022-10-13 10:13:57 +01:00
Andrei Zeliankou
08dab702cb
Tests: reworked "test_variables.py".
...
Access log used for the variables testing instead of limited routing.
Added missed test for $status variable.
Some tests moved from "test_access_log.py" to "test_variables.py".
2022-10-11 13:49:44 +01:00
Andrei Zeliankou
8e1e047191
Tests: don't try to return response when "no_recv" is True.
2022-10-11 13:49:10 +01:00
Andrei Zeliankou
97fa587c9f
Tests: added test with proxy for status.
2022-09-27 12:08:36 +01:00
Andrei Zeliankou
5354e05b2f
Version bump.
2022-09-19 11:59:59 +01:00
Andrei Zeliankou
0cf0e76a74
Unit 1.28.0 release.
2022-09-13 09:30:30 +01:00
Andrei Zeliankou
38bd7e76a1
Generated Dockerfiles for Unit 1.28.0.
2022-09-13 07:26:26 +08:00
Andrei Zeliankou
a03894df61
Added version 1.28.0 CHANGES.
2022-09-13 09:27:13 +01:00
Andrei Zeliankou
ff9054af10
Reordered changes for 1.28.0 by significance (subjective).
2022-09-13 09:16:55 +01:00
Andrei Zeliankou
ac5c0f1f03
Capitalize "HTTP" in "changes.xml" to match common style.
2022-09-13 00:31:32 +01:00
Andrei Zeliankou
c65e04682e
Tests: minor fixes.
2022-09-07 01:11:04 +01:00
Andrei Zeliankou
b25ffe2bf3
Fixed minor issues in "changes.xml".
2022-09-05 23:55:15 +01:00
Andrei Zeliankou
6915ce1d1c
Tests: added tests for basic statistics.
2022-09-05 23:06:16 +01:00
Andrei Zeliankou
d1cb8ab2bb
Tests: added tests with abstract UNIX sockets.
2022-08-25 15:50:49 +01:00
Andrei Zeliankou
6ddf14a6c1
Tests: added test for ASGI with UNIX socket.
2022-08-16 03:12:12 +01:00
Andrei Zeliankou
c1ae86e930
Fixed UNIX sockets support for ASGI.
...
This change was forgotten in the original implementation 282123ba4f7b.
2022-08-16 03:11:36 +01:00
Andrei Zeliankou
e5d835e159
Tests: added tests with UNIX sockets in "source".
2022-08-08 10:32:24 +01:00
Andrei Zeliankou
698680d894
Tests: added tests for the log format.
...
Also added tests for the following variables:
$request_line, $time_local, $bytes_sent, and $status.
2022-07-28 14:13:03 +01:00
Andrei Zeliankou
69e690affe
Tests: added flags to search functions in proto.py.
...
Also removed unnesessary re.compile() calls.
2022-07-28 14:12:19 +01:00
Andrei Zeliankou
a1cda6455f
Tests: added tests for more HTTP variables.
2022-07-19 17:34:32 +01:00
Andrei Zeliankou
d358b1d448
Tests: added tests for dynamic variables.
2022-07-14 11:50:41 +01:00
Andrei Zeliankou
a3699557a3
Tests: minor improvements.
...
Added "go" availability check before trying to build an application.
update_action() method used were possible and fixed bug with
the relative path determination in test_static_chroot.py.
Templates optimization and style fixes.
2022-06-30 14:40:17 +01:00
Andrei Zeliankou
7e64971cbe
Version bump.
2022-06-17 09:46:30 +01:00
Andrei Zeliankou
862f51bcd8
Specified date of 1.27.0 release in changes.xml.
2022-06-08 13:12:51 +01:00
Andrei Zeliankou
0d48fe73c4
Unit 1.27.0 release.
2022-06-02 13:37:14 +01:00
Andrei Zeliankou
3d1fa29f1d
Generated Dockerfiles for Unit 1.27.0.
2022-06-02 12:31:55 +00:00
Andrei Zeliankou
cf9b5bdb35
Added version 1.27.0 CHANGES.
2022-06-02 13:30:52 +01:00
Andrei Zeliankou
bd80039e07
Node.js: fixed ES modules format in loader.mjs.
...
Before Node.js v16.14.0 the "format" value in defaultResolve
was ignored so error was hidden. For more information see:
https://github.com/nodejs/node/pull/40980
2022-06-02 11:48:27 +01:00