Tiago Natel de Moura
66ac35e9b9
Tests: fixed bug that disabled isolation tests.
2020-12-15 11:06:49 +00:00
Andrei Zeliankou
425ffc9416
Tests: hyphen sign used unstead of underscore as more common.
2020-12-12 20:08:03 +00:00
Andrei Zeliankou
16ac829c8f
Tests: added tests for PHP_AUTH_* variables.
2020-12-10 19:28:41 +00:00
Andrei Zeliankou
7be62c3c21
Tests: TestUnit class removed.
...
Prerequisite checks moved to the fixture in conftest.py.
2020-12-09 16:17:46 +00:00
Andrei Zeliankou
4c846ae693
Tests: isolation check moved to the pytest_sessionstart().
...
This change eliminates the need for some classes
to run Unit one more time before running tests.
2020-12-09 16:15:50 +00:00
Tiago Natel de Moura
c7bd96b476
Tests: fixed ruby isolation.
...
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-08 16:38:41 +00:00
Andrei Zeliankou
b2e767819f
Tests: skip_alert() converted to the fixture.
2020-12-08 14:37:33 +00:00
Andrei Zeliankou
8f91628563
Tests: utils module introduced.
2020-12-08 14:37:25 +00:00
Andrei Zeliankou
07789a23e9
Tests: options moved to the separate class.
...
This change is necessary to separate the logic
and prevent possible circular dependency.
2020-12-06 16:01:59 +00:00
Axel Duch
e3af18834d
Router: matching regular expressions support.
2020-11-17 15:03:30 +00:00
Andrei Zeliankou
18ddb74772
Tests: added tests for a "discard_unsafe_fields" option.
2020-11-19 05:21:48 +00:00
Andrei Zeliankou
e154d7a3a2
Tests: style.
2020-11-19 05:21:22 +00:00
Tiago Natel de Moura
bbc29df8fe
Tests: tmpfs automount.
2020-11-16 17:22:10 +00:00
Max Romanov
567f0a7b30
Tests: fixing tests interrupt in terminal.
...
KeyboardInterrupt re-raised.
2020-11-16 20:37:01 +03:00
Max Romanov
6d2b60ff3e
Tests: making available versions unique.
2020-11-16 20:36:54 +03:00
Tiago Natel de Moura
d6829cc93b
Tests: removed test case that reuses rootfs path.
...
Different applications cannot reuse the same rootfs path
if not using namespaces because of globally visible
builtin mount points.
2020-11-12 12:04:51 +00:00
Andrei Zeliankou
3278253d51
Tests: added a test for "body_buffer_size" option.
2020-11-12 00:07:08 +00:00
Andrei Zeliankou
a0ee50826a
Tests: added a test for fastcgi_finish_request() function.
2020-11-11 14:24:40 +00:00
Max Romanov
5fd2933d2e
Python: supporting ASGI legacy protocol.
...
Introducing manual protocol selection for 'universal' apps and frameworks.
2020-11-10 22:27:08 +03:00
Max Romanov
a8a9d80f8d
Tests: supporting instant app parameters in load().
2020-11-10 22:27:08 +03:00
Max Romanov
78599f0d3f
Tests: fixing racing condition in ASGI threads test.
...
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-06 16:45:03 +03:00
Max Romanov
fc9a012ceb
Tests: added Perl threading tests.
2020-11-05 16:11:01 +03:00
Max Romanov
e17e73edda
Tests: added Ruby threading tests.
2020-11-05 12:45:26 +03:00
Max Romanov
28f1eb55e7
Tests: added Java threading tests.
2020-11-05 00:06:13 +03:00
Max Romanov
f27953af61
Tests: added Python threading tests.
2020-11-05 00:05:02 +03:00
Andrei Zeliankou
a29d970f10
Tests: disabled detailed output by default.
2020-11-03 01:32:40 +00:00
Andrei Zeliankou
5182d2c398
Tests: force applications to build for JVM 8.
...
This change is made to avoid situations when an application
is compiled for a version newer than the Java module used.
2020-11-03 01:31:05 +00:00
Max Romanov
4ba9e1d005
Java: upgrading 3rd-party components.
2020-11-02 21:05:04 +03:00
Tiago Natel de Moura
0390cb3a61
Isolation: mounting of procfs by default when using "rootfs".
2020-10-29 20:30:53 +00:00
Tiago Natel de Moura
417f5d911d
Tests: added new ruby isolation test without namespaces.
2020-10-29 14:31:37 +00:00
Max Romanov
6a00bab41e
Tests: improving get_application_type() and fixing its name.
...
This patch also enables multiversion tests running for Java.
2020-10-28 00:01:46 +03:00
Andrei Zeliankou
8956e668cc
Tests: fixed isolation detection.
2020-10-27 04:09:52 +00:00
Andrei Zeliankou
54837759f3
Tests: fixed unit.log print.
2020-10-19 22:25:29 +01:00
Valentin Bartenev
2821b3347c
PHP: compatibility with 8.0.0 RC1.
...
This closes #474 PR on GitHub.
2020-10-06 18:12:05 +03:00
Andrei Zeliankou
6ec0ff3596
Tests: minor fixes.
2020-10-07 23:18:43 +01:00
Valentin Bartenev
645683f432
Tests: fixed loading selected module version.
...
Previously, for PHP, Ruby, and Perl the latest version was always loaded
in multi-version tests.
2020-10-07 22:04:54 +03:00
Valentin Bartenev
3f513f434f
Router: fixed "not empty" pattern matching.
...
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-07 20:06:30 +03:00
Andrei Zeliankou
37390d2a3b
Tests: fixed tests to run as root.
2020-10-06 20:30:51 +01:00
Max Romanov
481e950b86
Tests: pretty versions output for multi-version tests.
2020-10-05 13:26:35 +03:00
Andrei Zeliankou
58cc73994f
Tests: added websocket test with long length.
2020-10-05 11:05:19 +01:00
Andrei Zeliankou
152ad526f4
Tests: added ASGI Lifespan.
2020-10-05 11:05:00 +01:00
Max Romanov
12f225a43a
Tests: added ASGI HTTP applications.
2020-10-01 23:55:43 +03:00
Max Romanov
d97e3a3296
Tests: added ASGI WebSocket.
2020-10-01 23:55:35 +03:00
Tiago Natel de Moura
c2eb245b32
PHP: fixed "rootfs" isolation dependency on system mounts.
2020-09-09 19:28:44 +01:00
Andrei Zeliankou
d491527555
Tests: minor fixes.
...
Fixed temporary dir removing.
Fixed printing path to log.
Module checks moved to the separate file.
2020-10-01 10:17:00 +01:00
Andrei Zeliankou
1fe1518ab1
Tests: fixed test_static_space_in_name.
2020-09-30 22:45:58 +01:00
Andrei Zeliankou
4de6ffa63f
Tests: tuned delay in test_settings_idle_timeout_2.
2020-09-27 23:46:31 +01:00
Andrei Zeliankou
4095454946
Tests: added pytest.ini.
2020-09-27 23:27:19 +01:00
Max Romanov
efe65dee4d
Tests: prerequisites check improved by using callable.
...
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-24 09:47:27 +03:00
Max Romanov
1fc51cf140
Tests: introduced module name configuration.
...
Also fixed problem with "/" in application name.
2020-09-22 19:53:19 +03:00