summaryrefslogtreecommitdiffhomepage
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-10-29Isolation: mounting of procfs by default when using "rootfs".Tiago Natel de Moura6-79/+158
2020-10-29Tests: added new ruby isolation test without namespaces.Tiago Natel de Moura1-1/+20
2020-10-28Tests: improving get_application_type() and fixing its name.Max Romanov7-28/+14
This patch also enables multiversion tests running for Java.
2020-10-27Tests: fixed isolation detection.Andrei Zeliankou3-27/+112
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou44-488/+427
2020-10-06PHP: compatibility with 8.0.0 RC1.Valentin Bartenev3-10/+10
This closes #474 PR on GitHub.
2020-10-07Tests: minor fixes.Andrei Zeliankou46-95/+125
2020-10-07Tests: fixed loading selected module version.Valentin Bartenev3-3/+15
Previously, for PHP, Ruby, and Perl the latest version was always loaded in multi-version tests.
2020-10-07Router: fixed "not empty" pattern matching.Valentin Bartenev1-0/+15
The "!" pattern should be opposite to "", i.e. match only non-empty values. But after 3c00af54b937 it was equal to "!*", which is wrong.
2020-10-06Tests: fixed tests to run as root.Andrei Zeliankou2-8/+4
2020-10-05Tests: pretty versions output for multi-version tests.Max Romanov1-3/+3
2020-10-05Tests: added websocket test with long length.Andrei Zeliankou1-0/+12
2020-10-05Tests: added ASGI Lifespan.Andrei Zeliankou5-0/+114
2020-10-01Tests: added ASGI HTTP applications.Max Romanov9-0/+598
2020-10-01Tests: added ASGI WebSocket.Max Romanov4-1/+1476
2020-09-09PHP: fixed "rootfs" isolation dependency on system mounts.Tiago Natel de Moura2-51/+30
2020-10-01Tests: minor fixes.Andrei Zeliankou10-76/+89
Fixed temporary dir removing. Fixed printing path to log. Module checks moved to the separate file.
2020-09-30Tests: fixed test_static_space_in_name.Andrei Zeliankou1-1/+1
2020-09-27Tests: tuned delay in test_settings_idle_timeout_2.Andrei Zeliankou1-1/+1
2020-09-27Tests: added pytest.ini.Andrei Zeliankou1-0/+3
2020-09-24Tests: prerequisites check improved by using callable.Max Romanov1-15/+23
This is required for more flexible Python version check since ASGI works for Python 3.5+. Version check via 'startswith()' function removed as not consistent.
2020-09-22Tests: introduced module name configuration.Max Romanov1-3/+10
Also fixed problem with "/" in application name.
2020-09-22Tests: improved response receiving while upgrade.Max Romanov1-4/+1
The patch required to process non-101 response.
2020-09-22Tests: using dict.get() method with default value.Max Romanov1-18/+9
No functional changes. Only code readability improved.
2020-09-21Tests: added variable test with nonexistent upstream.Andrei Zeliankou1-0/+23
2020-09-21Tests: added test for "idle_timeout" with empty payload.Andrei Zeliankou1-0/+18
2020-09-21Tests: added multiple headers concatenation test.Max Romanov1-9/+13
2020-09-21Tests: changing Python application callable name.Max Romanov2-0/+35
2020-08-28Router: fixed "pass" to upstreams.hongzhidao1-0/+79
Messed up return values in nxt_upstream_find() caused error in applying any configuration with a valid "pass" value in router configuration pointing to upstream. That wasn't the case in "listeners" objects, where the return value wasn't checked. Also, it caused segfault in cases where the "pass" option was configured with variables and resulting value was pointing to a non-existent upstream. Added missing return checks as well to catch possible memory allocation errors. The bug was introduced in d32bc428f46b. This closes #472 issue on GitHub.
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou53-6321/+4776
2020-08-31Tests: $host varaible test.Andrei Zeliankou1-7/+24
Also added few tests for $uri and minor style fixes.
2020-08-25Tests: disable of language_deps.Tiago Natel de Moura1-0/+69
2020-08-25Tests: PHP extension mounts.Tiago Natel de Moura3-0/+66
2020-08-20Tests: default tmpfs in rootfs.Tiago Natel de Moura1-0/+20
2020-08-13Tests: set root by unprivilaged user.Tiago Natel de Moura1-0/+27
2020-08-13Tests: added test with error on loading application.Andrei Zeliankou1-0/+11
2020-08-13Tests: added variables tests.Andrei Zeliankou1-0/+94
2020-08-11Tests: reducing the number of generated applications.Max Romanov1-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-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-07-28Tests: added PHP test with time check in error log messages.Andrei Zeliankou2-0/+29
2020-07-28Tests: fixed double stop() call for some tests.Andrei Zeliankou1-6/+11
2020-07-28Tests: style.Andrei Zeliankou4-7/+5
2020-07-22Tests: switching stdout to blocking before printing log.Max Romanov1-3/+6
This is another attempt to fix the following error message: BlockingIOError: [Errno 11] write could not complete without blocking
2020-07-10Router: route patterns multi wildcards fix.Axel Duch1-0/+21
Matching 'start' and 'end' position now adjusted to avoid false matching. This is related to #434 issue on Github. Thanks to 洪志道 (Hong Zhi Dao).
2020-07-04Router: route patterns multi wildcards support.Axel Duch1-5/+44
2020-06-26Tests: fixed opcache detection.Andrei Zeliankou1-1/+2
opcache_get_status() returns array, so square brackets should be used to access "opcache_enabled" value.
2020-06-24Tests: added chunked tests.Andrei Zeliankou1-0/+249
2020-05-28Tests: Added rootfs tests.Tiago Natel de Moura12-35/+543
2020-03-09Refactor of process management.Tiago Natel de Moura1-0/+1
The process abstraction has changed to: setup(task, process) start(task, process_data) prefork(task, process, mp) The prefork() occurs in the main process right before fork. The file src/nxt_main_process.c is completely free of process specific logic. The creation of a process now supports a PROCESS_CREATED state. The The setup() function of each process can set its state to either created or ready. If created, a MSG_PROCESS_CREATED is sent to main process, where external setup can be done (required for rootfs under container). The core processes (discovery, controller and router) doesn't need external setup, then they all proceeds to their start() function straight away. In the case of applications, the load of the module happens at the process setup() time and The module's init() function has changed to be the start() of the process. The module API has changed to: setup(task, process, conf) start(task, data) As a direct benefit of the PROCESS_CREATED message, the clone(2) of processes using pid namespaces now doesn't need to create a pipe to make the child block until parent setup uid/gid mappings nor it needs to receive the child pid.
2020-05-20Tests: print unit.log in case of errors.Andrei Zeliankou1-1/+2
Thanks to hongzhidao.