summaryrefslogtreecommitdiffhomepage
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-01-14Tests: added missing checks for configuration results.Andrei Zeliankou11-56/+72
2021-01-13Tests: added test for "procfs" option.Andrei Zeliankou1-0/+23
2021-01-13Tests: "language_deps" option checked more carefully.Andrei Zeliankou1-20/+12
2021-01-13Tests: waitformount() and waitforunmount() introduced.Andrei Zeliankou1-0/+32
2021-01-13Tests: style.Andrei Zeliankou27-35/+2
2021-01-12Tests: unit_stop() removed where possible.Andrei Zeliankou6-70/+10
Since wait_for_record() was introduced there is no need to stop Unit before parsing unit.log.
2021-01-08Tests: fixed test_respawn.py to act upon test processes.Tiago Natel de Moura2-23/+32
Running `test_respawn_` test cases on a machine with Unit daemon in background would fail tests because `ps ax` was used without filtering out other unit instances. This patch also prevents from tests killing other Unit processes not related to tests.
2021-01-07Tests: reordered asserts to avoid a test race.Tiago Natel de Moura1-5/+9
The mount points are unmounted in the main process after it detects the app process died. By testing the `tmpfs: true` first, it happens that main could start the `tmpfs: false` test case before main cleans the old process mount points.
2020-12-29Node.js: ServerRequest and ServerResponse compliance to Stream API.Max Romanov1-45/+0
ServerRequest now inherit stream Readable object. ServerResponse provides 'writable' property. Thanks to Wu Jian Ping (@wujjpp). This closes #274, closes #317 issues and closes #502 PR on GitHub.
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