Commit Graph

524 Commits

Author SHA1 Message Date
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
Alejandro Colomar 9b4b4925b3 Ruby: fixed contents of SCRIPT_NAME.
Having the basename of the script pathname was incorrect.  While
we don't have something more accurate, the best thing to do is to
have it empty (which should be the right thing most of the time).

This closes #715 issue on GitHub.

The bug was introduced in git commit
0032543fa6
'Ruby: added the Rack environment parameter "SCRIPT_NAME".'.
2022-07-27 12:46:42 +02:00
Andrew Clayton 02659b1ee3 Tests: added tests for translating $dollar into a literal $.
If you need to specify a $ in a URI you can now use '$dollar' or
'${dollar}'.

Added some tests for the above to test_variables.py setting a Location
string.
2022-07-20 23:28:06 +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
Zhidao HONG 045c05e468 Tests: forwarded header replacement tests. 2022-06-20 17:19:35 +08:00
Zhidao HONG 6da74019a0 Tests: reworked client IP tests. 2022-06-20 13:58:04 +08: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
Alejandro Colomar aee8b9bfb2 Tests: Added tests for $request_uri. 2022-05-31 12:41:11 +02:00
Alejandro Colomar 8027e7ce0f Tests: added tests for "index" (string) option. 2022-05-30 12:42:18 +02:00
Alejandro Colomar c60f678485 Tests: Added tests for empty "location". 2022-05-16 12:57:37 +02: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
Alejandro Colomar d929fbe1a4 Tests: Added tests for variables in "location". 2022-04-28 20:40:01 +02:00
Alejandro Colomar 6d017dfbe4 Tests: Changed tests to accept variables in "location". 2022-04-28 20:40:01 +02: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
Max Romanov 1297e8a16a Tests: using modules in Go. 2022-01-10 16:07:31 +03:00
Max Romanov f845283820 Perl: creating input and error streams if closed.
Application handler can do anything with a stream object (including close it).
Once the stream is closed, Unit creates a new stream.

This closes #616 issue on GitHub.
2021-12-27 16:37:35 +03: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 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
Max Romanov b424a00ec5 Tests: PHP shared opcache test added. 2021-11-09 15:48:44 +03:00
Max Romanov 506ec2b825 Tests: app prototype related fixes. 2021-11-09 15:48:44 +03:00
Zhidao HONG aee908bcbd Router: matching query string support.
The "query" option matches decoded arguments, including plus ('+') to
space (' ').  Like "uri", it can be a string or an array of strings.
2021-11-05 22:56:34 +08: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
Zhidao HONG c5220944d2 Static: variables in the "share" option.
This commit supports variable in the "share" option, the finding path to
file serve is the value from "share". An example:
{
    "share": "/www/data/static$uri"
}
2021-09-30 22:17:28 +08:00
Max Romanov c07f3d3ff6 Fixed WebSocket connection hang issue after listener reconfigure.
Because the configuration values were read from the listener's configuration,
an established WebSocket connection was unable to work properly (i. e. stuck)
if the listener was removed.  The correct source of configuration values is the
request config joint.

This is related to issue #581 on GitHub.
2021-09-20 09:01:08 +03:00
Max Romanov b586707c86 Java: upgrading third-party components. 2021-08-12 14:55:51 +03:00
Oisin Canty 039d032dd6 Tests: client IP address replacement. 2021-08-12 08:23:23 +00:00
Max Romanov 9988569bea Tests: initialising log params before first _print_log(). 2021-08-11 19:01:16 +03:00