Name : perl-Test-Nginx
| |
Version : 0.300.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 150500.1.1
| Date : 2024-08-03 19:26:40
|
Group : Unspecified
| Source RPM : perl-Test-Nginx-0.300.0-150500.1.1.src.rpm
|
Size : 0.35 MB
| |
Packager : https://www_suse_com/
| |
Summary : Data-driven test scaffold for Nginx C module and Nginx/OpenResty-based l[cut]
|
Description :
This distribution provides two testing modules for Nginx C module development:
* Test::Nginx::Socket (This is highly recommended.)
This library also has the following subclasses:
* Test::Nginx::Socket::Lua
* Test::Nginx::Socket::Lua::Stream
* Test::Nginx::Socket::Lua::Dgram
* Test::Nginx::LWP (This is obsolete.)
All of them are based on Test::Base.
Usually, Test::Nginx::Socket is preferred because it works on a much lower level and not that fault tolerant like Test::Nginx::LWP.
Also, a lot of connection hang issues (like wrong \'r->main->count\' value in nginx 0.8.x) can only be captured by Test::Nginx::Socket because Perl\'s LWP::UserAgent client will close the connection itself which will conceal such issues from the testers.
Test::Nginx automatically starts an nginx instance (from the \'PATH\' env) rooted at t/servroot/ and the default config template makes this nginx instance listen on the port \'1984\' by default. One can specify a different port number by setting his port number to the \'TEST_NGINX_PORT\' environment, as in
export TEST_NGINX_PORT=1989
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_15_SP5/noarch |