Tiago Natel de Moura
66ac35e9b9
Tests: fixed bug that disabled isolation tests.
2020-12-15 11:06:49 +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
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
Max Romanov
567f0a7b30
Tests: fixing tests interrupt in terminal.
...
KeyboardInterrupt re-raised.
2020-11-16 20:37:01 +03: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
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
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
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
Max Romanov
d97e3a3296
Tests: added ASGI WebSocket.
2020-10-01 23:55:35 +03: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
Max Romanov
1fc51cf140
Tests: introduced module name configuration.
...
Also fixed problem with "/" in application name.
2020-09-22 19:53:19 +03:00
Max Romanov
dc49c561e2
Tests: improved response receiving while upgrade.
...
The patch required to process non-101 response.
2020-09-22 12:40:35 +03:00
Max Romanov
767c4cb508
Tests: using dict.get() method with default value.
...
No functional changes. Only code readability improved.
2020-09-22 12:40:18 +03:00
Andrei Zeliankou
d5e9159340
Tests: migrated to the pytest.
2020-09-16 21:31:15 +01:00
Andrei Zeliankou
355ed9697d
Tests: fixed double stop() call for some tests.
2020-07-28 04:53:32 +01:00
Andrei Zeliankou
dc1377dc48
Tests: style.
2020-07-28 03:09:50 +01:00
Max Romanov
661c223eda
Tests: switching stdout to blocking before printing log.
...
This is another attempt to fix the following error message:
BlockingIOError: [Errno 11] write could not complete without blocking
2020-07-22 10:05:10 +03:00
Tiago Natel de Moura
08b765ae42
Tests: Added rootfs tests.
2020-05-28 14:59:52 +01:00
Andrei Zeliankou
fa4d4b6120
Tests: print unit.log in case of errors.
...
Thanks to hongzhidao.
2020-05-20 23:06:56 +01:00
Andrei Zeliankou
ce4a2bbd05
Tests: style.
2020-05-15 04:20:56 +01:00
Valentin Bartenev
0174c971b5
Configuration: URI encoding in the "pass" option.
...
This is useful to escape "/" in path fragments. For example, in order
to reference the application named "foo/bar":
{
"pass": "applications/foo%2Fbar"
}
2020-05-14 13:15:00 +03:00
Andrei Zeliankou
6a9a4fe0d4
Tests: introduced module version specification in prerequisites.
2020-04-24 05:08:56 +01:00
Andrei Zeliankou
0bfa09dfa0
Tests: minor fixes and style.
2020-04-14 02:35:04 +01:00
Valentin Bartenev
c7f5c1c664
Controller: improved handling of unix domain control socket.
...
One of the ways to detect Unit's startup and subsequent readiness to accept
commands relies on waiting for the control socket file to be created.
Earlier, it was unreliable due to a race condition between the client's
connect() and the daemon's listen() calls after the socket's bind() call.
Now, unix domain listening sockets are created with a nxt_listen_socket_create()
call as follows:
s = socket();
unlink("path/to/socket.tmp")
bind(s, "path/to/socket.tmp");
listen(s);
rename("path/to/socket.tmp", "path/to/socket");
This eliminates a time-lapse when the socket file is already created but nobody
is listening on it yet, which therefore prevents the condition described above.
Also, it allows reliably detecting whether the socket is being used or simply
wasn't cleaned after the daemon stopped abruptly. A successful connection to
the socket file means the daemon has been started; otherwise, the file can be
overwritten.
2020-04-08 15:15:24 +03:00
Andrei Zeliankou
d7aa514d6a
Tests: added notification on "read_timeout" expiration.
2020-04-03 01:46:59 +01:00
Andrei Zeliankou
2bb8b3d88a
Tests: minor fixes.
2020-04-03 01:03:26 +01:00
Max Romanov
0935630cba
Fixing application process infinite loop.
...
Main process exiting before app process init may have caused hanging.
2020-03-30 14:18:51 +03:00
Andrei Zeliankou
5f2d07019c
Tests: increase default "read_timeout" to 60s in message_read().
2020-03-27 15:48:39 +00:00
Andrei Zeliankou
48ad88ee72
Tests: increase default "read_timeout" value to 60s.
...
This change is necessary to avoid errors on slow hosts.
Also slightly reworked argument passing to the recvall() function.
2020-03-23 19:18:26 +00:00
Andrei Zeliankou
ac9ca6d75c
Tests: added notification on unsuccessful connect().
2020-03-23 19:12:22 +00:00
Andrei Zeliankou
b0161df42e
Tests: wait for unit.pid file before running tests.
...
Waiting for control.unit.sock was replaced by unit.pid due to current problem
with race between connect() and listen() calls for control.unit.sock.
This change should be reverted after fix.
2020-03-23 19:09:29 +00:00
Andrei Zeliankou
3fd4b4cfab
Tests: rearranging functions in main.py.
2020-03-23 02:13:46 +00:00
Andrei Zeliankou
c7cc247baa
Tests: terminate unitd process on exit().
2020-03-23 02:12:44 +00:00
Max Romanov
5296be0b82
Using disk file to store large request body.
...
This closes #386 on GitHub.
2020-03-12 17:54:29 +03:00
Andrei Zeliankou
961674af42
Tests: skip "last message send failed" alerts globally.
2020-03-12 13:44:30 +00:00
Andrei Zeliankou
f092b093f5
Tests: use blocking to print unit.log files.
2020-03-10 18:13:47 +00:00
Andrei Zeliankou
f36f0f2461
Tests: redirect tests output to the stdout.
2020-03-10 18:10:42 +00:00
Valentin Bartenev
810b8dbb67
Tests: unitd stderr output redirected to unit.log.
...
A part of the debug log was printed to stderr before the log file was opened.
Now, this output is redirected to the same log file.
2020-03-06 20:08:38 +03:00
Valentin Bartenev
3617d4ed03
Tests: simplified unitd process running.
...
There are no reasons to wrap the Unit daemon in a separate Python process.
2020-03-06 20:08:29 +03:00
Tiago Natel de Moura
80763b3e64
Tests: chdir() and open() for PHP module.
...
These tests ensure optimizations in the chdir calls don't break
SAPI semantics.
2020-03-03 18:53:26 +00:00
Andrei Zeliankou
f68947bc60
Tests: truncated huge messages while logging.
2020-03-02 13:10:38 +00:00
Andrei Zeliankou
5d67879a50
Tests: added "-r" option to print unit.log on failures.
2020-02-27 18:41:24 +00:00