OpenResty® Scalable Web Platform by Extending NGINX with Lua

New! New blog post Purge HTTP Cache in OpenResty Edge is published.
New! New blog post Enable HTTP Cache in OpenResty Edge is published.
New! Test::Nginx 0.29 is now released!
New! OpenResty 1.19.3.1 is now released!

Test::Nginx 0.29 Released

Johnny Wang , 08 Nov 2020 (created 08 Nov 2020)

We have uploaded Test::Nginx 0.29 to CPAN:

https://metacpan.org/release/Test-Nginx

It will appear on the CPAN mirror near you in the next few hours or so. After that, you can install the module like below

sudo cpan Test::Nginx

or better, when you have the App::cpanminus module already installed:

sudo cpanm Test::Nginx

Special thanks go to all our contributors and developers!

Full Change logs

Here's the complete change log for this release (compared to the last CPAN release, 0.28):

  • bugfix: check leak mode: use much larger number of requests for ab/weighttp to make sure we always have the load even for large TEST_NGINX_CHECK_LEAK_COUNT values.

  • feature: added TEST_NGINX_RAND_PORT_XXX variable to provide random ports during environment variable expansion.

  • bugfix: log correct server address when server_addr_for_client section is used.

About Test::Nginx

This Perl module provides a test scaffold for automated testing in Nginx C module or OpenResty-based Lua library development.

This class inherits from Test::Base, thus bringing all its declarative power to the Nginx C module testing practices.

All of our OpenResty projects are using this test scaffold for automated regression testing.

Please check out the full documentation on CPAN:

https://metacpan.org/pod/Test::Nginx::Socket

as well as the official user guide in the book "Programming OpenResty":

https://openresty.gitbooks.io/programming-openresty/content/testing/

All of our Nginx modules (as well as our lua-resty-* libraries) are using Test::Nginx to drive their test suites. And it is also driving my test cluster running on Amazon EC2:

https://qa.openresty.org

Please note that this module is completely different from the Test::Nginx module originally created by Maxim Dounin.

The git repository for this Perl module is hosted on GitHub:

https://github.com/openresty/test-nginx

Feedback

Feedback on this release is more than welcome. Feel free to create new GitHub issues or send emails to one of our mailing lists.