summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_procman.py (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-196/+213
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-12Tests: prerequisites checking reworked.Andrei Zeliankou1-2/+2
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-25Tests: unified setup method usage.Andrei Zeliankou1-2/+3
To make fixtures accessible inside of setup methods in tests all these methods are renamed to the "setup_method_fixture" and decorated by autouse flag. Also all setup methods moved to the top of the files.
2023-05-25Tests: removed unused variables.Andrei Zeliankou1-1/+1
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-14/+14
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.
2021-11-09Tests: app prototype related fixes.Max Romanov1-1/+3
2021-10-18Tests: style.Andrei Zeliankou1-2/+2
2021-07-29Application restart introduced.Max Romanov1-0/+79
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.
2021-04-05Tests: style.Andrei Zeliankou1-0/+1
2021-01-14Tests: added missing checks for configuration results.Andrei Zeliankou1-1/+1
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-3/+2
2020-10-07Tests: minor fixes.Andrei Zeliankou1-1/+2
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-80/+56
2020-08-11Tests: skipping idle zero timeout.Max Romanov1-0/+1
This is a temporary solution after the 'shared port' patch. The application process becomes idle immediately after creation. Even if it starts processing a request (without acknowledging it yet), it is stopped by the router because an 'out-of-idle-time' event occurs.
2020-05-15Tests: style.Andrei Zeliankou1-1/+2
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2020-04-14Tests: minor fixes and style.Andrei Zeliankou1-3/+3
2020-03-19Tests: test_python_procman.py refactored.Andrei Zeliankou1-115/+58
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-05-30Tests: adjusted skipping tests.Andrey Zelenkov1-1/+1
2019-04-09Tests: simplified module checking.Andrey Zelenkov1-2/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-4/+4
2019-03-26Tests: style.Andrey Zelenkov1-77/+112
2019-02-27Tests: read_timeout option introduced.Andrey Zelenkov1-1/+1
Also, increased default select() timeout from 1s to 5s.
2018-11-15Tests: added command line arguments parsing in tests.Andrey Zelenkov1-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-06Tests: used relative path for configuration.Andrey Zelenkov1-17/+17
2018-02-26Tests: more configuration tests.Andrey Zelenkov1-0/+16
2018-02-20Tests: reworked python tests with application.Andrey Zelenkov1-32/+4
2018-02-14Tests: removed unused code in unit.py.Andrey Zelenkov1-5/+2
2018-02-06Fixed configuration checks for "max" property.Andrey Zelenkov1-0/+5
2018-02-06Tests: more tests for processes.Andrey Zelenkov1-0/+93
2018-02-06Tests: changed process counting in test_python_procman.py.Andrey Zelenkov1-119/+71
2018-02-06Tests: minor fixes in test_python_procman.py.Andrey Zelenkov1-59/+35
2018-02-05Tests: adjusted check_version()'s.Andrey Zelenkov1-1/+1
2018-01-29Introducing extended app process management.Max Romanov1-0/+237
- 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).