History log of /unit/test/ (Results 1 – 25 of 616)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: 1.32.1-1
2765:5e31d3ff500a27-Feb-2024 Dan Callahan

Merge tag '1.32.0' into branches/packaging

Unit 1.32.0 release.

2760:d21b2f76865e11-Mar-2024 Andrei Zeliankou

Tests: NJS cacheable variables with access log

Reproduces issue https://github.com/nginx/unit/issues/1169.

Revision tags: 1.32.0-1, 1.32.0
2700:859302d7f6a519-Feb-2024 Sergey A. Osokin

Update third-party java components to their recent versions

Acked-by: Timo Stark <t.stark@nginx.com>
[ Remove trailing '.' from subject line - Andrew ]
Signed-off-by: Andrew Clayton <a.clayton@nginx

Update third-party java components to their recent versions

Acked-by: Timo Stark <t.stark@nginx.com>
[ Remove trailing '.' from subject line - Andrew ]
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>

show more ...

2695:4c9ad19be66307-Feb-2024 Andrei Zeliankou

Tests: renamed test_python_procman.py since it's not Python-specific

Python applications are used only to generate responses here and can be
replaced by applications written in any other language.

Tests: renamed test_python_procman.py since it's not Python-specific

Python applications are used only to generate responses here and can be
replaced by applications written in any other language. While the
"_python" prefix is used to indicate that the file contains tests
specific to the Python module.

show more ...

2694:c1122391618307-Feb-2024 Andrei Zeliankou

Tests: skip some of TLS reconfiguration tests under AddressSanitizer

These tests cause router crash when run with AddressSanitizer:

=================================================================

Tests: skip some of TLS reconfiguration tests under AddressSanitizer

These tests cause router crash when run with AddressSanitizer:

=================================================================
==77196==ERROR: AddressSanitizer: heap-use-after-free on address 0x60c000079340 at pc 0x55d56b132d4b bp 0x7f8cc7f346b0 sp 0x7f8cc7f346a0
READ of size 1 at 0x60c000079340 thread T1
#0 0x55d56b132d4a in nxt_openssl_conn_io_shutdown src/nxt_openssl.c:1466
#1 0x55d56b0f6a25 in nxt_h1p_closing src/nxt_h1proto.c:2069
#2 0x55d56b1009a6 in nxt_h1p_shutdown src/nxt_h1proto.c:2038
#3 0x55d56b1014c3 in nxt_h1p_request_close src/nxt_h1proto.c:1718
#4 0x55d56b1045c0 in nxt_http_request_close_handler src/nxt_http_request.c:864
#5 0x55d56b104988 in nxt_http_request_done src/nxt_http_request.c:795
#6 0x55d56b0ba0c3 in nxt_event_engine_start src/nxt_event_engine.c:542
#7 0x55d56b0dcac2 in nxt_router_thread_start src/nxt_router.c:3645
#8 0x55d56b0b421b in nxt_thread_trampoline src/nxt_thread.c:126
#9 0x7f8ccab95ac2 (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2)
#10 0x7f8ccac2784f (/lib/x86_64-linux-gnu/libc.so.6+0x12684f)

show more ...

2693:0b7afe1ba8d807-Feb-2024 Andrei Zeliankou

Tests: check for the AddressSanitizer flag during discovery

This flag is necessary to either run or skip certain tests that have
specific behavior depending on whether AddressSanitizer is enabled.

Tests: check for the AddressSanitizer flag during discovery

This flag is necessary to either run or skip certain tests that have
specific behavior depending on whether AddressSanitizer is enabled.

For instance, some tests may fail only when the binary is compiled
with AddressSanitizer.

show more ...

2692:97b0a59051f107-Feb-2024 Andrei Zeliankou

Tests: Ruby hook tests unstable for version older 3.0

It can fail with reporting following alert:

[alert] 137462#137462 mount("none", "/tmp/unit-test-636e0uh8/proc", "proc", 2097162, "") (16: Devic

Tests: Ruby hook tests unstable for version older 3.0

It can fail with reporting following alert:

[alert] 137462#137462 mount("none", "/tmp/unit-test-636e0uh8/proc", "proc", 2097162, "") (16: Device or resource busy)

show more ...

2674:c055d68bbf4326-Jan-2024 Andrei Zeliankou

Python: bytearray body support for ASGI module.

@filiphanes requested support for bytearray
and memoryview in the request body here:
<https://github.com/nginx/unit/issues/648>

This patch implements

Python: bytearray body support for ASGI module.

@filiphanes requested support for bytearray
and memoryview in the request body here:
<https://github.com/nginx/unit/issues/648>

This patch implements bytearray body support only.
Memoryview body still need to be implemented.

show more ...

2666:cda59a5a20c417-Jan-2024 Andrei Zeliankou

Tests: NJS request variables

2642:d92e92c69c5d14-Feb-2024 Gabor Javorszky

fix: Take options as well as requestListener (#1091)

* Take options as well as requestListener

Unit-http have not kept up with the signature of nodejs's http package
development. Nodejs allows an o

fix: Take options as well as requestListener (#1091)

* Take options as well as requestListener

Unit-http have not kept up with the signature of nodejs's http package
development. Nodejs allows an optional `options` object to be passed to
the `createServer` function, we didn't. This resulted in function
signature errors when user code that did make use of the options arg
tried to call unit's replaced function.

This change changes the signature to be more in line with how nodejs
does it discarding it and printing a message to stdout.

* Add test file to start node application with options

* Add changes to docs/changes.xml

Closes: https://github.com/nginx/unit/issues/1043

show more ...

2627:36afea93a67824-Jan-2024 Andrei Zeliankou

Tests: "if" option in access logging.

Conditional access logging was introduced here:
https://github.com/nginx/unit/commit/4c91bebb50d06b28e369d68b23022caa072cf62d

2623:15a457cb829e25-Jan-2024 Andrei Zeliankou

Node.js: fixed "httpVersion" variable format

According to the Node.js documenation this variable
should only include numbering scheme.

Thanks to @dbit-xia.

Closes: https://github.com/nginx/unit/is

Node.js: fixed "httpVersion" variable format

According to the Node.js documenation this variable
should only include numbering scheme.

Thanks to @dbit-xia.

Closes: https://github.com/nginx/unit/issues/1085

show more ...

2618:3ba1a53cba0715-Jan-2024 Andrei Zeliankou

Tests: added Ruby tests with array in header values

2616:ab2896c980ab15-Jan-2024 Andrei Zeliankou

Tests: pathlib used where appropriate

Also fixed various pylint errors and style issues.


conftest.py
python/body_generate/wsgi.py
python/delayed/asgi.py
python/environment/wsgi.py
python/iter_exception/wsgi.py
python/legacy/asgi.py
python/legacy_force/asgi.py
python/lifespan/empty/asgi.py
python/lifespan/failed/asgi.py
python/restart/longstart.py
python/unicode/wsgi.py
python/user_group/wsgi.py
test_access_log.py
test_asgi_application.py
test_asgi_application_unix_abstract.py
test_asgi_lifespan.py
test_asgi_targets.py
test_asgi_websockets.py
test_client_ip.py
test_configuration.py
test_forwarded_header.py
test_go_application.py
test_go_isolation.py
test_http_header.py
test_java_application.py
test_java_isolation_rootfs.py
test_java_websockets.py
test_njs.py
test_node_application.py
test_node_es_modules.py
test_node_websockets.py
test_perl_application.py
test_php_application.py
test_proxy.py
test_proxy_chunked.py
test_python_application.py
test_python_isolation.py
test_python_procman.py
test_reconfigure.py
test_reconfigure_tls.py
test_respawn.py
test_response_headers.py
test_return.py
test_rewrite.py
test_routing.py
test_ruby_application.py
test_settings.py
test_static.py
test_static_chroot.py
test_static_fallback.py
test_static_mount.py
test_static_share.py
test_static_symlink.py
test_static_types.py
test_static_variables.py
test_tls.py
test_tls_conf_command.py
test_tls_sni.py
test_upstreams_rr.py
test_usr1.py
test_variables.py
unit/applications/lang/go.py
unit/applications/lang/php.py
unit/applications/lang/python.py
unit/applications/tls.py
unit/applications/websockets.py
unit/check/check_prerequisites.py
unit/check/isolation.py
unit/check/node.py
unit/control.py
unit/http.py
unit/status.py
2604:a732c666131229-Nov-2023 Sergey A. Osokin

Update third-party components for the Java module.

2600:53b7a9e422b417-Nov-2023 Andrei Zeliankou

Tests: added more expected Ruby features.

2599:df47c93ae67917-Nov-2023 Andrei Zeliankou

Tests: Ruby input.rewind is no longer required.

For more information see:
https://github.com/rack/rack/commit/42aff22f708123839ba706cbe659d108b47c40c7

2598:d431669a493a17-Nov-2023 Andrei Zeliankou

Node.js: ServerResponse.flushHeaders() implemented.

This closes #1006 issue on GitHub.

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

2592:e079c44a834008-Nov-2023 Andrei Zeliankou

Tests: 8XXX used as default port range.

After the launch of the project, the testing infrastructure was shared with
nginx project in some cases. To avoid port overlap, a decision was made
to shift

Tests: 8XXX used as default port range.

After the launch of the project, the testing infrastructure was shared with
nginx project in some cases. To avoid port overlap, a decision was made
to shift the port range for Unit tests. This problem was resolved a long time
ago and is no longer relevant, so it is now safe to use port 8XXX range as the
default, as it is more appropriate for testing purposes.

show more ...


go/404/app.go
go/command_line_arguments/app.go
go/cookies/app.go
go/empty/app.go
go/get_variables/app.go
go/mirror/app.go
go/ns_inspect/app.go
go/post_variables/app.go
go/variables/app.go
node/404/app.js
node/basic/app.js
node/double_end/app.js
node/get_header_names/app.js
node/get_header_type/app.js
node/get_variables/app.js
node/has_header/app.js
node/header_name_case/app.js
node/header_name_valid/app.js
node/header_value_object/app.js
node/loader/es_modules_http/app.mjs
node/loader/es_modules_http_indirect/module.mjs
node/loader/es_modules_websocket/app.mjs
node/loader/es_modules_websocket_indirect/module.mjs
node/loader/transitive_dependency/transitive_http.js
node/loader/unit_http/app.js
node/mirror/app.js
node/post_variables/app.js
node/promise_end/app.js
node/promise_handler/app.js
node/remove_header/app.js
node/set_header_array/app.js
node/status_message/app.js
node/update_header/app.js
node/variables/app.js
node/websockets/mirror/app.js
node/websockets/mirror_fragmentation/app.js
node/write_array/app.js
node/write_before_write_head/app.js
node/write_buffer/app.js
node/write_callback/app.js
node/write_multiple/app.js
node/write_return/app.js
test_access_log.py
test_asgi_application.py
test_asgi_lifespan.py
test_asgi_targets.py
test_client_ip.py
test_configuration.py
test_forwarded_header.py
test_http_header.py
test_java_application.py
test_njs.py
test_njs_modules.py
test_perl_application.py
test_php_application.py
test_php_basic.py
test_php_targets.py
test_proxy.py
test_proxy_chunked.py
test_python_application.py
test_python_basic.py
test_python_isolation.py
test_python_targets.py
test_reconfigure.py
test_reconfigure_tls.py
test_response_headers.py
test_return.py
test_rewrite.py
test_routing.py
test_routing_tls.py
test_ruby_application.py
test_settings.py
test_static.py
test_static_chroot.py
test_static_fallback.py
test_static_mount.py
test_static_share.py
test_static_symlink.py
test_static_types.py
test_static_variables.py
test_status.py
test_status_tls.py
test_tls.py
test_tls_conf_command.py
test_tls_session.py
test_tls_sni.py
test_tls_tickets.py
test_unix_abstract.py
test_upstreams_rr.py
test_variables.py
unit/applications/lang/go.py
unit/applications/lang/java.py
unit/applications/lang/node.py
unit/applications/lang/perl.py
unit/applications/lang/php.py
unit/applications/lang/python.py
unit/applications/lang/ruby.py
unit/applications/tls.py
unit/check/chroot.py
unit/check/isolation.py
unit/http.py
2590:909122130e0608-Nov-2023 Andrei Zeliankou

Var: $request_id variable.

This variable contains a string that is formed using random data and
can be used as a unique request identifier.

This closes #714 issue on GitHub.

Revision tags: 1.31.1-1, 1.31.1
2578:4abe14ad558117-Oct-2023 Sergey A. Osokin

Update third-party components for the Java module.

2574:98b67e77114c11-Oct-2023 Andrei Zeliankou

Tests: added PHP test with rewrite and query string.

This test reproduces https://github.com/nginx/unit/issues/964.

2571:59a0b60a5cdb10-Oct-2023 Sergey A. Osokin

Update third-party components for the Java module.

2568:117ca233e22506-Oct-2023 Sergey A. Osokin

Update third-party components for the Java module.

2563:6c93cbc9282102-Oct-2023 Andrei Zeliankou

Tests: added Java test with multiple headers.

This test reproduce https://github.com/nginx/unit/issues/923.

12345678910>>...25