Revision tags: 1.32.1-1, 1.32.0-1, 1.32.0 |
|
#
2616:ab2896c980ab |
| 15-Jan-2024 |
Andrei Zeliankou |
Tests: pathlib used where appropriate
Also fixed various pylint errors and style issues.
|
#
2592:e079c44a8340 |
| 08-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 ...
|
Revision tags: 1.31.1-1, 1.31.1, 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 ...
|
#
2477:4633c7db7fb5 |
| 25-May-2023 |
Andrei Zeliankou |
Tests: removed unused variables.
|
Revision tags: 1.30.0-1, 1.30.0, 1.29.1-1, 1.29.1 |
|
#
2353:c7875ab2fcd6 |
| 21-Feb-2023 |
Andrei Zeliankou |
Tests: added Python tests with encoding.
|
#
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 ...
|
#
2329:163d6e322d32 |
| 21-Feb-2023 |
Andrei Zeliankou |
Tests: added Python tests with encoding.
|
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 ...
|
#
2212:975ab1624784 |
| 11-Oct-2022 |
Andrei Zeliankou |
Tests: don't try to return response when "no_recv" is True.
|
Revision tags: 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 |
|
#
2086:3baca957c0dd |
| 09-May-2022 |
Andrei Zeliankou |
Tests: added more tests with reconfiguration.
|
#
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 |
|
#
1850:839024ce4a6a |
| 08-Apr-2021 |
Max Romanov |
Tests: preserving unit.log when run without restart.
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send
Tests: preserving unit.log when run without restart.
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals.
show more ...
|
#
1848:4bd548074e2c |
| 05-Apr-2021 |
Andrei Zeliankou |
Tests: style.
|
Revision tags: 1.23.0-1, 1.23.0 |
|
#
1804:ed698edaaf1e |
| 10-Feb-2021 |
Andrei Zeliankou |
Tests: increased timeout in wait_for_record().
|
Revision tags: 1.22.0-1, 1.22.0 |
|
#
1791:f841507f27f2 |
| 04-Feb-2021 |
Andrei Zeliankou |
Tests: added tests for "path" option in Python application.
|
#
1775:4b4991514356 |
| 14-Jan-2021 |
Andrei Zeliankou |
Tests: added missing checks for configuration results.
|
#
1771:94cf6c5fafbd |
| 13-Jan-2021 |
Andrei Zeliankou |
Tests: style.
|
#
1770:e4ece1ff4413 |
| 12-Jan-2021 |
Andrei Zeliankou |
Tests: unit_stop() removed where possible.
Since wait_for_record() was introduced there is no need to stop Unit before parsing unit.log.
|
#
1736:22db875fda34 |
| 08-Dec-2020 |
Andrei Zeliankou |
Tests: skip_alert() converted to the fixture.
|
#
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 |
|
#
1706:a1da56837554 |
| 16-Nov-2020 |
Max Romanov |
Tests: fixing tests interrupt in terminal.
KeyboardInterrupt re-raised.
|