Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-06-14 | Tests: get rid of classes in test files. | Andrei Zeliankou | 1 | -361/+388 | |
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/+5 | |
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 | -3/+2 | |
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 | -3/+3 | |
2023-02-21 | Tests: switched to using f-strings. | Andrei Zeliankou | 1 | -6/+4 | |
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. | |||||
2022-12-14 | Python: Added "prefix" to configuration. | OutOfFocus4 | 1 | -0/+86 | |
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-09-07 | Tests: minor fixes. | Andrei Zeliankou | 1 | -9/+3 | |
2022-08-25 | Tests: added tests with abstract UNIX sockets. | Andrei Zeliankou | 1 | -0/+16 | |
2021-10-18 | Tests: style. | Andrei Zeliankou | 1 | -1/+0 | |
2021-07-03 | Tests: address configuration tests reworked. | Andrei Zeliankou | 1 | -58/+21 | |
2021-06-28 | Tests: renamed share to static. | Andrei Zeliankou | 1 | -1/+2 | |
Also minor style changes. | |||||
2021-05-18 | Tests: added test to check port release. | Andrei Zeliankou | 1 | -0/+28 | |
2021-04-05 | Tests: style. | Andrei Zeliankou | 1 | -0/+1 | |
2021-01-13 | Tests: style. | Andrei Zeliankou | 1 | -1/+0 | |
2020-12-08 | Tests: skip_alert() converted to the fixture. | Andrei Zeliankou | 1 | -2/+1 | |
2020-10-07 | Tests: minor fixes. | Andrei Zeliankou | 1 | -4/+4 | |
2020-09-16 | Tests: migrated to the pytest. | Andrei Zeliankou | 1 | -252/+166 | |
2020-08-13 | Tests: set root by unprivilaged user. | Tiago Natel de Moura | 1 | -0/+27 | |
2020-08-11 | Tests: reducing the number of generated applications. | Max Romanov | 1 | -1/+3 | |
Each application initializes a shared port with 2 file descriptors, so the test fails because the router reaches the open files limit. | |||||
2020-05-15 | Tests: style. | Andrei Zeliankou | 1 | -0/+1 | |
2020-04-24 | Tests: introduced module version specification in prerequisites. | Andrei Zeliankou | 1 | -1/+1 | |
2020-03-25 | Tests: added tests for comments in JSON. | Andrei Zeliankou | 1 | -0/+61 | |
2020-03-25 | Tests: UTF-8 BOM test. | Andrei Zeliankou | 1 | -0/+19 | |
2019-10-08 | Tests: default port number used. | Andrey Zelenkov | 1 | -1/+1 | |
2019-09-14 | Tests: refactored prerequisites model. | Andrey Zelenkov | 1 | -1/+1 | |
2019-05-30 | Tests: adjusted skipping tests. | Andrey Zelenkov | 1 | -33/+4 | |
2019-04-22 | Tests: using "pass" option instead of deprecated "application". | Valentin Bartenev | 1 | -8/+8 | |
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 | -165/+235 | |
2019-03-25 | Turning off port read event state after main process fork. | Max Romanov | 1 | -2/+0 | |
Master port stores two file descriptors and works as a read port on the master process side. After a fork, the port switches into write mode and the read socket closes, but the same event structure is used for the write socket. However, the inherited structure remained in read state, telling the epoll engine to use MOD operation instead of ADD. The patch resets read event state, so the engine may write using proper ADD operation. | |||||
2019-03-05 | Introducing one more large config test, but without sockets. | Max Romanov | 1 | -0/+25 | |
2019-03-01 | Tests: skip more alerts. | Andrey Zelenkov | 1 | -2/+2 | |
2019-02-20 | Tests: one more alert skipped in test_json_application_many. | Andrey Zelenkov | 1 | -0/+1 | |
2019-02-20 | Tests: skip sendmsg()/recvmsg() alerts for all tests. | Andrey Zelenkov | 1 | -1/+0 | |
Currently, these alerts may appear in the log when any application exits. | |||||
2019-02-20 | Tests: fixed ports range. | Andrey Zelenkov | 1 | -2/+2 | |
2019-01-28 | Tests: large configuration tests. | Andrey Zelenkov | 1 | -0/+47 | |
2018-11-15 | Tests: added command line arguments parsing in tests. | Andrey Zelenkov | 1 | -1/+1 | |
Added the following command line arguments: -d, --detailed: Show detailed output for tests Usage examples: ./test/run.py --detailed python3 test/test_access_log.py --detailed python3 test/test_access_log.py -d TestUnitAccessLog.test_access_log_ipv6 -l, --log: Save unit.log after the test execution Usage examples: ./test/run.py -l python3 test/test_access_log.py -l python3 test/test_access_log.py --log TestUnitAccessLog.test_access_log_ipv6 | |||||
2018-09-06 | Tests: used relative path for configuration. | Andrey Zelenkov | 1 | -15/+15 | |
2018-07-11 | Tests: empty configuration. | Andrey Zelenkov | 1 | -0/+3 | |
2018-04-02 | Tests: change alert skip in test_listeners_empty after RPC fixes. | Andrey Zelenkov | 1 | -1/+1 | |
2018-03-06 | Tests: detect alerts and Sanitizer errors. | Andrey Zelenkov | 1 | -0/+19 | |
2018-02-26 | Tests: more configuration tests. | Andrey Zelenkov | 1 | -10/+12 | |
2018-02-14 | Tests: removed unused code in unit.py. | Andrey Zelenkov | 1 | -4/+1 | |
2018-02-05 | Tests: adjusted check_version()'s. | Andrey Zelenkov | 1 | -1/+4 | |
2018-01-29 | Introducing extended app process management. | Max Romanov | 1 | -16/+14 | |
- Pre-fork 'processes.spare' application processes; - fork more processes to keep 'processes.spare' idle processes; - fork on-demand up to 'processes.max' count; - scale down idle application processes above 'processes.spare' after 'processes.idle_timeout'; - number of concurrently started application processes also limited by 'processes.spare' (or 1, if spare is 0). | |||||
2018-01-30 | Tests: added methods to manage unit configuration. | Andrey Zelenkov | 1 | -110/+94 | |
2018-01-30 | Tests: small fixes. | Andrey Zelenkov | 1 | -2/+2 | |
2018-01-30 | Tests: fixed test for listener without port. | Andrey Zelenkov | 1 | -2/+2 | |
Broken after 879868522dbf. | |||||
2018-01-24 | Tests: using "expectedFailure" decorator instead of assertTry(). | Andrey Zelenkov | 1 | -59/+128 | |