summaryrefslogtreecommitdiffhomepage
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-12-23Tests: ability to run unitd with specified "--user" option.Andrei Belov1-19/+27
2020-12-21Tests: introduced a separate cache directory for Go builds.Tiago Natel de Moura2-0/+5
The Go compiler can't detect changes to C header files when compiling CGO applications, and then this leads to Go test samples being linked with wrong libunit. This patch creates a new cache directory reused throughout the test suite.
2020-12-15Tests: fixed bug that disabled isolation tests.Tiago Natel de Moura1-1/+1
2020-12-12Tests: hyphen sign used unstead of underscore as more common.Andrei Zeliankou2-3/+3
2020-12-10Tests: added tests for PHP_AUTH_* variables.Andrei Zeliankou2-0/+65
2020-12-09Tests: TestUnit class removed.Andrei Zeliankou3-38/+35
Prerequisite checks moved to the fixture in conftest.py.
2020-12-09Tests: isolation check moved to the pytest_sessionstart().Andrei Zeliankou10-259/+197
This change eliminates the need for some classes to run Unit one more time before running tests.
2020-12-08Tests: fixed ruby isolation.Tiago Natel de Moura1-19/+8
While alternating between running priv and unpriv tests locally, it happens that unpriv tests can't bind mount or create sub directories inside directories created by root. This patch fixes this by pointing "rootfs" to temporary directory. Now the priv and unpriv test uses the same test function.
2020-12-08Tests: skip_alert() converted to the fixture.Andrei Zeliankou15-39/+32
2020-12-08Tests: utils module introduced.Andrei Zeliankou10-57/+59
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou39-41/+62
This change is necessary to separate the logic and prevent possible circular dependency.
2020-11-17Router: matching regular expressions support.Axel Duch1-0/+42
2020-11-19Tests: added tests for a "discard_unsafe_fields" option.Andrei Zeliankou2-0/+47
2020-11-19Tests: style.Andrei Zeliankou1-36/+40
2020-11-16Tests: tmpfs automount.Tiago Natel de Moura2-3/+29
2020-11-16Tests: fixing tests interrupt in terminal.Max Romanov10-9/+52
KeyboardInterrupt re-raised.
2020-11-16Tests: making available versions unique.Max Romanov1-4/+3
2020-11-12Tests: removed test case that reuses rootfs path.Tiago Natel de Moura1-4/+0
Different applications cannot reuse the same rootfs path if not using namespaces because of globally visible builtin mount points.
2020-11-12Tests: added a test for "body_buffer_size" option.Andrei Zeliankou1-0/+38
2020-11-11Tests: added a test for fastcgi_finish_request() function.Andrei Zeliankou2-0/+37
2020-11-10Python: supporting ASGI legacy protocol.Max Romanov4-1/+58
Introducing manual protocol selection for 'universal' apps and frameworks.
2020-11-10Tests: supporting instant app parameters in load().Max Romanov3-89/+37
2020-11-06Tests: fixing racing condition in ASGI threads test.Max Romanov1-5/+5
ASGI threads read all the requests from the queue before start processing it. This why test need to wait a little to let the ASGI thread start request processing and block. In virtual environment any thread or process may be delayed and only method to avoid racing is a reasonable sleep increase.
2020-11-05Tests: added Perl threading tests.Max Romanov2-0/+52
2020-11-05Tests: added Ruby threading tests.Max Romanov2-0/+54
2020-11-05Tests: added Java threading tests.Max Romanov2-0/+73
2020-11-05Tests: added Python threading tests.Max Romanov4-0/+124
2020-11-03Tests: disabled detailed output by default.Andrei Zeliankou1-1/+1
2020-11-03Tests: force applications to build for JVM 8.Andrei Zeliankou1-0/+1
This change is made to avoid situations when an application is compiled for a version newer than the Java module used.
2020-11-02Java: upgrading 3rd-party components.Max Romanov1-1/+1
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