Commit Graph
100 Commits
Author SHA1 Message Date
Andrei Zeliankou af5903ff4e Tests: added tests for the $request_time variable. 2022-10-13 10:13:57 +01:00
Andrei Zeliankou 08dab702cb Tests: reworked "test_variables.py".
Access log used for the variables testing instead of limited routing.
Added missed test for $status variable.
Some tests moved from "test_access_log.py" to "test_variables.py".
2022-10-11 13:49:44 +01:00
Andrei Zeliankou 8e1e047191 Tests: don't try to return response when "no_recv" is True. 2022-10-11 13:49:10 +01:00
Andrei Zeliankou 97fa587c9f Tests: added test with proxy for status. 2022-09-27 12:08:36 +01:00
Andrei Zeliankou 5354e05b2f Version bump. 2022-09-19 11:59:59 +01:00
Andrei Zeliankou 0cf0e76a74 Unit 1.28.0 release. 2022-09-13 09:30:30 +01:00
Andrei Zeliankou 38bd7e76a1 Generated Dockerfiles for Unit 1.28.0. 2022-09-13 07:26:26 +08:00
Andrei Zeliankou a03894df61 Added version 1.28.0 CHANGES. 2022-09-13 09:27:13 +01:00
Andrei Zeliankou ff9054af10 Reordered changes for 1.28.0 by significance (subjective). 2022-09-13 09:16:55 +01:00
Andrei Zeliankou ac5c0f1f03 Capitalize "HTTP" in "changes.xml" to match common style. 2022-09-13 00:31:32 +01:00
Andrei Zeliankou c65e04682e Tests: minor fixes. 2022-09-07 01:11:04 +01:00
Andrei Zeliankou b25ffe2bf3 Fixed minor issues in "changes.xml". 2022-09-05 23:55:15 +01:00
Andrei Zeliankou 6915ce1d1c Tests: added tests for basic statistics. 2022-09-05 23:06:16 +01:00
Andrei Zeliankou d1cb8ab2bb Tests: added tests with abstract UNIX sockets. 2022-08-25 15:50:49 +01:00
Andrei Zeliankou 6ddf14a6c1 Tests: added test for ASGI with UNIX socket. 2022-08-16 03:12:12 +01:00
Andrei Zeliankou c1ae86e930 Fixed UNIX sockets support for ASGI.
This change was forgotten in the original implementation 282123ba4f7b.
2022-08-16 03:11:36 +01:00
Andrei Zeliankou e5d835e159 Tests: added tests with UNIX sockets in "source". 2022-08-08 10:32:24 +01:00
Andrei Zeliankou 698680d894 Tests: added tests for the log format.
Also added tests for the following variables:
$request_line, $time_local, $bytes_sent, and $status.
2022-07-28 14:13:03 +01:00
Andrei Zeliankou 69e690affe Tests: added flags to search functions in proto.py.
Also removed unnesessary re.compile() calls.
2022-07-28 14:12:19 +01:00
Andrei Zeliankou a1cda6455f Tests: added tests for more HTTP variables. 2022-07-19 17:34:32 +01:00
Andrei Zeliankou d358b1d448 Tests: added tests for dynamic variables. 2022-07-14 11:50:41 +01:00
Andrei Zeliankou a3699557a3 Tests: minor improvements.
Added "go" availability check before trying to build an application.

update_action() method used were possible and fixed bug with
the relative path determination in test_static_chroot.py.

Templates optimization and style fixes.
2022-06-30 14:40:17 +01:00
Andrei Zeliankou 7e64971cbe Version bump. 2022-06-17 09:46:30 +01:00
Andrei Zeliankou 862f51bcd8 Specified date of 1.27.0 release in changes.xml. 2022-06-08 13:12:51 +01:00
Andrei Zeliankou 0d48fe73c4 Unit 1.27.0 release. 2022-06-02 13:37:14 +01:00
Andrei Zeliankou 3d1fa29f1d Generated Dockerfiles for Unit 1.27.0. 2022-06-02 12:31:55 +00:00
Andrei Zeliankou cf9b5bdb35 Added version 1.27.0 CHANGES. 2022-06-02 13:30:52 +01:00
Andrei Zeliankou bd80039e07 Node.js: fixed ES modules format in loader.mjs.
Before Node.js v16.14.0 the "format" value in defaultResolve
was ignored so error was hidden.  For more information see:
https://github.com/nodejs/node/pull/40980
2022-06-02 11:48:27 +01:00
Andrei Zeliankou caa05887ff Logging a NULL pointer instead of passing it in the memcpy(). 2022-06-01 16:40:34 +01:00
Andrei Zeliankou 161230b955 Tests: improved test for $request_uri variable. 2022-06-01 16:40:27 +01:00
Andrei Zeliankou 880c8e51c3 Tests: removed deprecated ssl.PROTOCOL_TLSv1_2 constant. 2022-06-01 00:15:15 +01:00
Andrei Zeliankou de0a0beb83 Tests: added tests for Ruby stream IO.close(). 2022-05-13 15:43:57 +01:00
Andrei Zeliankou 1bffba6d1e Tests: added test for "SCRIPT_NAME" variable in Ruby. 2022-05-10 01:53:23 +01:00
Andrei Zeliankou 03a7701133 Tests: added more tests with reconfiguration. 2022-05-09 10:14:29 +01:00
Andrei Zeliankou 8138d15f76 Tests: added check for zombie processes. 2022-04-12 04:16:00 +01:00
Andrei Zeliankou 0f72534660 Tests: style. 2022-04-11 21:05:14 +01:00
Andrei Zeliankou 170752e96f Tests: added test with long certificate chain. 2022-02-15 21:43:02 +00:00
Andrei Zeliankou e53ce40c58 Tests: removed TestApplicationTLS.get_server_certificate().
distutils.version is replaced by packaging.version.  Also minor style fixes.
2022-01-31 23:10:30 +00:00
Andrei Zeliankou 9bea8c452f Tests: fixed type of applications. 2021-12-12 21:36:44 +00:00
Andrei Zeliankou 4b3efcea0d Tests: added more OPcache tests. 2021-12-11 00:16:59 +00:00
Andrei Zeliankou ad843df965 Tests: fixed path to the "php.ini" file. 2021-12-10 15:34:52 +00:00
Andrei Zeliankou 5e40c969c7 Tests: fixed skipping tests with disabled OPcache. 2021-12-01 11:25:34 +00:00
Andrei Zeliankou cebef9691b Tests: fixed skipping tests with disabled OPcache. 2021-12-01 11:25:34 +00:00
Andrei Zeliankou bcff62d267 Tests: fixed session reuse tests.
Since SSL_CTX_sess_set_cache_size() can't guarantee the size
of the cache there is no need to test edge "cache_size" values.
2021-11-15 12:15:23 +00:00
Andrei Zeliankou ae03585238 Tests: refactored working with processes. 2021-11-15 12:13:54 +00:00
Andrei Zeliankou 6961de1d64 Tests: added more tests for "query" routing pattern. 2021-11-10 15:43:24 +00:00
Andrei Zeliankou 8c253631d9 Tests: added "requirements.txt". 2021-11-04 18:13:19 +00:00
Andrei Zeliankou bc95fcc324 Tests: added migration test for "share". 2021-11-04 13:05:53 +00:00
Andrei Zeliankou 2359c4056c Tests: added pyOpenSSL module check were necessary. 2021-11-02 18:39:03 +00:00
Andrei Zeliankou c27d0fe7bd Tests: removed unused imports. 2021-11-02 17:53:28 +00:00
Andrei Zeliankou bd9da8bc8c Tests: added tests for TLS session tickets. 2021-10-28 18:30:37 +01:00
Andrei Zeliankou e428f2cf7a Tests: added tests for TLS sessions. 2021-10-28 17:15:38 +01:00
Andrei Zeliankou 39adb292d5 Tests: style. 2021-10-18 01:10:11 +01:00
Andrei Zeliankou 5c20d43eff Tests: added tests for variables in "chroot". 2021-10-05 12:43:05 +01:00
Andrei Zeliankou a59557ccd7 Tests: added tests for variables in "share". 2021-10-05 12:42:41 +01:00
Andrei Zeliankou 22028549c6 Tests: added tests for "share" option with arrays. 2021-10-05 03:24:56 +01:00
Andrei Zeliankou 960ffc9967 Tests: added SNI test without hostname in request. 2021-07-23 15:37:03 +01:00
Andrei Zeliankou 4f94df6a71 Tests: print_log_on_assert() decorator introduced. 2021-07-06 12:22:10 +01:00
Andrei Zeliankou bc84992075 Tests: address configuration tests reworked. 2021-07-03 19:15:04 +01:00
Andrei Zeliankou b86891c4ef Tests: renamed share to static.
Also minor style changes.
2021-06-28 22:05:40 +01:00
Andrei Zeliankou 72420358be Tests: chroot test with permissions skipped under root. 2021-06-24 04:01:15 +01:00
Andrei Zeliankou f91fe4ce9e Tests: added tests for TLS "conf_commands" option. 2021-05-27 13:30:51 +01:00
Andrei Zeliankou 753ce145f7 Tests: added TLS test without close notify. 2021-05-26 21:47:12 +01:00
Andrei Zeliankou 39c0fda24c Tests: added additional check in tests with timeouts. 2021-05-24 22:28:23 +01:00
Andrei Zeliankou 1154ede862 Tests: test_settings_send_timeout improved.
Data length adjusts depending on socket buffer size when it's possible.
2021-05-24 05:26:15 +01:00
Andrei Zeliankou d643900237 Tests: minor fixes. 2021-05-24 04:33:42 +01:00
Andrei Zeliankou 2f0cca2e2b Tests: added test to check port release. 2021-05-18 16:35:54 +01:00
Andrei Zeliankou 1198118b3b Tests: fixed incorrect "--restart" mode performing. 2021-05-17 15:39:15 +01:00
Andrei Zeliankou 25603eae9f Tests: added test for TLS with IP in SAN. 2021-05-12 14:37:25 +01:00
Andrei Zeliankou 07c6bf165d Tests: temporary dir removed after tests execution. 2021-05-11 15:30:12 +01:00
Andrei Zeliankou a17f7e03d4 Tests: added test for TLS with empty Subject field. 2021-05-07 17:42:48 +01:00
Andrei Zeliankou b9e8d8073c Tests: PHP test with getting variable before the script is loaded. 2021-05-07 16:55:42 +01:00
Andrei Zeliankou e0a061955b Tests: added tests for openat2() features. 2021-05-05 12:36:57 +01:00
Andrei Zeliankou 5b332cae83 Tests: fixed "skip" descriptors check flag for controller. 2021-04-14 15:56:03 +01:00
Andrei Zeliankou 6c97a1a069 Tests: style. 2021-04-05 14:03:05 +01:00
Andrei Zeliankou 46d8567dd7 Tests: unset LC_ALL variable in Ruby encoding test.
This change is necessary to set Encoding.default_external value correctly.
2021-04-01 00:05:44 +01:00
Andrei Zeliankou f43265ba2c Tests: removed skip_alert(). 2021-03-31 23:42:00 +01:00
Andrei Zeliankou 0ae75733f7 Tests: added file descriptor leak detection. 2021-03-31 03:24:01 +01:00
Andrei Zeliankou e8577afc21 Tests: SNI. 2021-03-26 21:06:23 +00:00
Andrei Zeliankou c093ee7ec5 Tests: added test for Ruby default encoding. 2021-03-26 15:42:58 +00:00
Andrei Zeliankou d0591f07d7 Tests: fixed tests to work without openssl support. 2021-02-23 22:25:47 +00:00
Andrei Zeliankou af3b6ef37d Tests: added regex check. 2021-02-18 21:21:55 +00:00
Andrei Zeliankou cf530e19bc Tests: clear certificates after each test. 2021-02-15 03:11:26 +00:00
Andrei Zeliankou 11f7d833a9 Tests: increased timeout in wait_for_record(). 2021-02-10 16:34:37 +00:00
Andrei Zeliankou 4404097e05 Tests: added "--restart" option.
Now Unit do not restart after each test by default.
2021-02-08 23:32:27 +00:00
Andrei Zeliankou 42725137f7 Tests: added tests for "path" option in Python application. 2021-02-04 15:09:54 +00:00
Andrei Zeliankou d43a84139d Tests: added missing checks for configuration results. 2021-01-14 03:04:20 +00:00
Andrei Zeliankou 5d983ea762 Tests: added test for "procfs" option. 2021-01-13 06:24:41 +00:00
Andrei Zeliankou 22dac5bd62 Tests: "language_deps" option checked more carefully. 2021-01-13 06:24:32 +00:00
Andrei Zeliankou db9b70932b Tests: waitformount() and waitforunmount() introduced. 2021-01-13 06:24:26 +00:00
Andrei Zeliankou 6dc9c47ccd Tests: style. 2021-01-13 06:22:43 +00:00
Andrei Zeliankou f5ac143246 Tests: unit_stop() removed where possible.
Since wait_for_record() was introduced there is no need
to stop Unit before parsing unit.log.
2021-01-12 06:20:23 +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
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
Andrei Zeliankou 18ddb74772 Tests: added tests for a "discard_unsafe_fields" option. 2020-11-19 05:21:48 +00:00