summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/lang (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-07-29Application restart introduced.Max Romanov1-0/+1
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-07-02Tests: Ruby hooks.Oisin Canty1-9/+15
2021-07-02Tests: run Ruby applications inside temporary directory.Oisin Canty1-1/+15
2021-05-25Go: fixing tests for Go 1.16.Max Romanov1-0/+1
In Go 1.16, the module-aware mode is enabled by default; to fall back to previous behavior, the GO111MODULE environment variable should be set to 'auto'. Details: https://golang.org/doc/go1.16
2021-05-24Node.js: renamed "require_shim" to "loader".Oisin Canty1-3/+3
2021-05-20Tests: Python targets.Oisin Canty1-2/+9
2021-05-12Node.js: a shim for overriding "http" and "websocket" modules.Oisin Canty1-3/+18
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express Supports both CommonJS and the new ES Modules system syntax e.g: app.js: const http = require('http') app.mjs: import http from "http" Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] } Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] }
2021-03-22Java: upgrading third-party components.Sergey A. Osokin1-1/+1
2020-12-21Tests: introduced a separate cache directory for Go builds.Tiago Natel de Moura1-0/+1
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-08Tests: utils module introduced.Andrei Zeliankou1-1/+1
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou7-7/+7
This change is necessary to separate the logic and prevent possible circular dependency.
2020-11-16Tests: fixing tests interrupt in terminal.Max Romanov2-1/+13
KeyboardInterrupt re-raised.
2020-11-10Python: supporting ASGI legacy protocol.Max Romanov1-1/+2
Introducing manual protocol selection for 'universal' apps and frameworks.
2020-11-10Tests: supporting instant app parameters in load().Max Romanov1-9/+13
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 Moura1-0/+14
2020-10-28Tests: improving get_application_type() and fixing its name.Max Romanov5-22/+7
This patch also enables multiversion tests running for Java.
2020-10-27Tests: fixed isolation detection.Andrei Zeliankou2-4/+13
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou4-11/+10
2020-10-07Tests: minor fixes.Andrei Zeliankou7-11/+11
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-01Tests: minor fixes.Andrei Zeliankou3-30/+7
Fixed temporary dir removing. Fixed printing path to log. Module checks moved to the separate file.
2020-09-22Tests: introduced module name configuration.Max Romanov1-3/+10
Also fixed problem with "/" in application name.
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou7-26/+41
2020-07-28Tests: style.Andrei Zeliankou1-1/+1
2020-05-28Tests: Added rootfs tests.Tiago Natel de Moura2-30/+64
2020-05-15Tests: style.Andrei Zeliankou3-1/+4
2020-05-14Configuration: URI encoding in the "pass" option.Valentin Bartenev1-1/+4
This is useful to escape "/" in path fragments. For example, in order to reference the application named "foo/bar": { "pass": "applications/foo%2Fbar" }
2020-03-10Tests: redirect tests output to the stdout.Andrei Zeliankou2-4/+5
2020-03-03Tests: chdir() and open() for PHP module.Tiago Natel de Moura1-2/+2
These tests ensure optimizations in the chdir calls don't break SAPI semantics.
2019-12-24Go: installing go module for tests into build directory.Max Romanov1-1/+1
2019-11-11Tests: added support for testing "user" and "group".Tiago Natel7-14/+21
2019-11-09Tests: fixed tests to run as root.Tiago Natel1-2/+4
- The mode of testdir was changed to allow reading from other users/groups. - The java multipart test now uploads the file into an app writable dir. - The build directory was made readable for other users. - The python environment test now uses the HOME env var instead of PWD because the latter is not set by the root shell (/bin/sh) by default. - The node `node_modules` directory now is copied into the `testdir` instead of using symlinks.
2019-09-25Tests: fixed hanging of Go tests.Andrey Zelenkov2-14/+24
This closes #319 issue on GitHub.
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov2-0/+24
2019-09-16Tests: prepare_env() introduced.Andrey Zelenkov1-8/+13
2019-09-16Tests: style and minor fixes in java.py.Andrey Zelenkov2-8/+7
2019-09-05Java: introducing websocket support.Max Romanov1-2/+10
2019-08-21Tests: reverted rerun for Java tests in 5e429a7f133c.Andrey Zelenkov1-3/+1
Each testcase should also recompile to be recompiled. So backed out for now.
2019-08-06Tests: rerun tests for each module version.Andrey Zelenkov5-5/+15
Rerun supported for Python, PHP, Perl, Ruby, and Java modules.
2019-04-26Tests: check application configuration loading.Andrey Zelenkov7-7/+7
2019-04-22Tests: using "pass" option instead of deprecated "application".Valentin Bartenev7-7/+7
2019-03-28Tests: unit module refactoring.Andrey Zelenkov8-0/+233