Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-06-14 | Tests: get rid of classes in test files. | Andrei Zeliankou | 1 | -628/+666 | |
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-12 | Tests: prerequisites checking reworked. | Andrei Zeliankou | 1 | -5/+4 | |
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-05-29 | Tests: more fixtures. | Andrei Zeliankou | 1 | -41/+30 | |
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-25 | Tests: removed unused variables. | Andrei Zeliankou | 1 | -1/+1 | |
2023-02-21 | Tests: switched to using f-strings. | Andrei Zeliankou | 1 | -20/+15 | |
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 | Tests: added Python tests with encoding. | Andrei Zeliankou | 1 | -0/+78 | |
2022-12-14 | Python: Added "prefix" to configuration. | OutOfFocus4 | 1 | -0/+38 | |
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> | |||||
2022-10-11 | Tests: don't try to return response when "no_recv" is True. | Andrei Zeliankou | 1 | -2/+1 | |
2022-09-07 | Tests: minor fixes. | Andrei Zeliankou | 1 | -40/+4 | |
2022-05-09 | Tests: added more tests with reconfiguration. | Andrei Zeliankou | 1 | -30/+0 | |
2022-04-11 | Tests: style. | Andrei Zeliankou | 1 | -3/+1 | |
2021-10-18 | Tests: style. | Andrei Zeliankou | 1 | -1/+0 | |
2021-04-08 | Tests: preserving unit.log when run without restart. | Max Romanov | 1 | -5/+0 | |
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals. | |||||
2021-04-05 | Tests: style. | Andrei Zeliankou | 1 | -2/+8 | |
2021-02-10 | Tests: increased timeout in wait_for_record(). | Andrei Zeliankou | 1 | -1/+1 | |
2021-02-04 | Tests: added tests for "path" option in Python application. | Andrei Zeliankou | 1 | -0/+37 | |
2021-01-14 | Tests: added missing checks for configuration results. | Andrei Zeliankou | 1 | -2/+2 | |
2021-01-13 | Tests: style. | Andrei Zeliankou | 1 | -1/+0 | |
2021-01-12 | Tests: unit_stop() removed where possible. | Andrei Zeliankou | 1 | -13/+0 | |
Since wait_for_record() was introduced there is no need to stop Unit before parsing unit.log. | |||||
2020-12-08 | Tests: skip_alert() converted to the fixture. | Andrei Zeliankou | 1 | -4/+3 | |
2020-12-06 | Tests: options moved to the separate class. | Andrei Zeliankou | 1 | -1/+1 | |
This change is necessary to separate the logic and prevent possible circular dependency. | |||||
2020-11-16 | Tests: fixing tests interrupt in terminal. | Max Romanov | 1 | -2/+2 | |
KeyboardInterrupt re-raised. | |||||
2020-11-10 | Tests: supporting instant app parameters in load(). | Max Romanov | 1 | -43/+11 | |
2020-11-05 | Tests: added Python threading tests. | Max Romanov | 1 | -0/+41 | |
2020-10-19 | Tests: fixed unit.log print. | Andrei Zeliankou | 1 | -7/+9 | |
2020-10-07 | Tests: minor fixes. | Andrei Zeliankou | 1 | -2/+3 | |
2020-09-21 | Tests: added multiple headers concatenation test. | Max Romanov | 1 | -9/+13 | |
2020-09-21 | Tests: changing Python application callable name. | Max Romanov | 1 | -0/+28 | |
2020-09-16 | Tests: migrated to the pytest. | Andrei Zeliankou | 1 | -293/+221 | |
2020-08-13 | Tests: added test with error on loading application. | Andrei Zeliankou | 1 | -0/+11 | |
2020-05-15 | Tests: style. | Andrei Zeliankou | 1 | -2/+2 | |
2020-04-24 | Tests: introduced module version specification in prerequisites. | Andrei Zeliankou | 1 | -1/+1 | |
2020-04-14 | Tests: added test with rescheduling requests. | Andrei Zeliankou | 1 | -0/+32 | |
2020-04-14 | Tests: minor fixes and style. | Andrei Zeliankou | 1 | -6/+10 | |
2020-03-12 | Tests: added Python input readline and iterator tests. | Max Romanov | 1 | -3/+70 | |
2019-11-11 | Tests: added tests for setting user and group. | Tiago Natel | 1 | -0/+77 | |
2019-11-26 | Tests: parsing of "Transfer-Encoding: chunked" responses. | Tiago Natel | 1 | -11/+9 | |
2019-11-14 | Tests: Python exception tests. | Andrei Zeliankou | 1 | -0/+157 | |
2019-11-13 | Tests: added Python test with threading. | Andrei Zeliankou | 1 | -0/+13 | |
2019-10-23 | Tests: added test with invalid "working_directory" value. | Andrey Zelenkov | 1 | -0/+12 | |
2019-09-17 | HTTP parser: fixed parsing of target after literal space character. | Valentin Bartenev | 1 | -0/+31 | |
In theory, all space characters in request target must be encoded; however, some clients may violate the specification. For the sake of interoperability, Unit supports unencoded space characters. Previously, if there was a space character before the extension or arguments parts, those parts weren't recognized. Also, quoted symbols and complex target weren't detected after a space character. | |||||
2019-09-14 | Tests: refactored prerequisites model. | Andrey Zelenkov | 1 | -1/+1 | |
2019-05-30 | Tests: adjusted skipping tests. | Andrey Zelenkov | 1 | -5/+5 | |
2019-04-22 | Tests: read_timeout increased for incomplete requests. | Andrey Zelenkov | 1 | -1/+1 | |
Also fixed test without \"Host\" header. | |||||
2019-04-09 | Tests: speed up tests. | Andrey Zelenkov | 1 | -0/+15 | |
2019-04-09 | Tests: wait_for_record() introduced. | Andrey Zelenkov | 1 | -8/+8 | |
2019-04-09 | Tests: style. | Andrey Zelenkov | 1 | -12/+3 | |
2019-04-09 | Tests: simplified module checking. | Andrey Zelenkov | 1 | -2/+1 | |
2019-03-28 | Tests: unit module refactoring. | Andrey Zelenkov | 1 | -4/+4 | |
2019-03-26 | Tests: style. | Andrey Zelenkov | 1 | -144/+236 | |