History log of /unit/test/unit/applications/lang/python.py (Results 1 – 20 of 20)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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
# 2273:a13c26f62477 14-Nov-2021 OutOfFocus4

Python: Added "prefix" to configuration.

This patch gives users the option to set a `"prefix"` attribute
for Python applications, either at the top level or for specific
`"target"`s. If the attribut

Python: Added "prefix" to configuration.

This patch gives users the option to set a `"prefix"` attribute
for Python applications, either at the top level or for specific
`"target"`s. If the attribute is present, the value of `"prefix"`
must be a string beginning with `"/"`. If the value of the `"prefix"`
attribute is longer than 1 character and ends in `"/"`, the
trailing `"/"` is stripped.

The purpose of the `"prefix"` attribute is to set the `SCRIPT_NAME`
context value for WSGI applications and the `root_path` context
value for ASGI applications, allowing applications to properly route
requests regardless of the path that the server uses to expose the
application.

The context value is only set if the request's URL path begins with
the value of the `"prefix"` attribute. In all other cases, the
`SCRIPT_NAME` or `root_path` values are not set. In addition, for
WSGI applications, the value of `"prefix"` will be stripped from
the beginning of the request's URL path before it is sent to the
application.

Reviewed-by: Andrei Zeliankou <zelenkov@nginx.com>
Reviewed-by: Artem Konev <artem.konev@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>

show more ...


Revision tags: 1.28.0-1, 1.28.0, 1.27.0-1, 1.27.0, 1.26.1-1, 1.26.1, 1.26.0-1, 1.26.0
# 1984:06514cd08a35 02-Nov-2021 Andrei Zeliankou

Tests: removed unused imports.


Revision tags: 1.25.0-1, 1.25.0
# 1926:6e85d6c0b8bb 29-Jul-2021 Max Romanov

Application restart introduced.

When processing a restart request, the router sends a QUIT message to all
existing processes of the application. Then, a new shared application port is
created to en

Application restart introduced.

When processing a restart request, the router sends a QUIT message to all
existing processes of the application. Then, a new shared application port is
created to ensure that new requests won't be handled by the old processes of
the application.

show more ...


Revision tags: 1.24.0-1, 1.24.0
# 1873:d0cc4fd78d43 20-May-2021 Oisin Canty

Tests: Python targets.


Revision tags: 1.23.0-1, 1.23.0, 1.22.0-1, 1.22.0
# 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
# 1697:73a335d2911d 10-Nov-2020 Max Romanov

Python: supporting ASGI legacy protocol.

Introducing manual protocol selection for 'universal' apps and frameworks.


# 1695:48cd8f20dea4 10-Nov-2020 Max Romanov

Tests: supporting instant app parameters in load().


# 1670:099c23b00eaf 27-Oct-2020 Max Romanov

Tests: improving get_application_type() and fixing its name.

This patch also enables multiversion tests running for Java.


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


# 1610:ee2f7cc0f36c 22-Sep-2020 Max Romanov

Tests: introduced module name configuration.

Also fixed problem with "/" in application name.


# 1596:b7e2d4d92624 16-Sep-2020 Andrei Zeliankou

Tests: migrated to the pytest.


Revision tags: 1.19.0-1, 1.19.0
# 1527:89bc2fef480b 28-Jul-2020 Andrei Zeliankou

Tests: style.


Revision tags: 1.18.0-1, 1.18.0
# 1490:cecf6b11a1e3 28-May-2020 Tiago Natel de Moura

Tests: Added rootfs tests.


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


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, 1.10.0-2, 1.10.0-1, 1.10.0
# 1116:5e429a7f133c 06-Aug-2019 Andrey Zelenkov

Tests: rerun tests for each module version.

Rerun supported for Python, PHP, Perl, Ruby, and Java modules.


Revision tags: 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.