Skip to content

Commit

Permalink
doc: added changelog since latest version.
Browse files Browse the repository at this point in the history
and change test versions to 0.27
  • Loading branch information
meathill authored and agentzh committed Jul 7, 2020
1 parent e7fe764 commit faf87ef
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 9 deletions.
84 changes: 84 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,89 @@
Changes for Test::Nginx

0.27 - 2020-07-02

* feature: added the --- reload_fails new section to skip checking
config_version after HUP reload in the HUp reload testing mode.

* feature: added a "--- gen_dgram_request" section.

* feature: relaxed the Server response header parsing pattern for
extracting the nginx core verison number.

* bugfix: when --- reload_fails is specified, we did not assume ---
no_chck_leak since it would always fail in the check leak testing mode.

* feature: implemented the `--- shutdown_error_log` section for
checking the error logs generated during nginx exit.

* feature: added new test mode enabled by the env TEST_NGINX_USE_HTTP2=1
and new section "--- http2", for enabling the HTTP/2 protocol to
send the test request.

* bugfix: when TEST_NGINX_USE_STAP=1 env was specified, the master process
would be turned off when for test blocks without actually using --- stap.

* feature: be more patient to wait for the nginx to start up in profiling
and "check leak" test mode.

* optimize: use perl's own remove_tree() instead of the shell command
'rm -rf' since the latter may use too much memory.

* feature: added support for the env TEST_NGINX_CHECK_LEAK_COUNT to control
how many data points to sample in the "check leak" test mode.

* feature: now we pass through the MOCKNOEAGAIN_VERBOSE and MOCKNOEAGAIN
env to the nginx worker processes by default as well.

* feature: added support for TEST_NGINX_WORKER_USER env for setting the user
account (and user group) for nginx worker processes; defaults to root when
the master is run by root.

* bugfix: the value of env TEST_NGINX_WORKER_USER did not accept a single
user name (without a user group name).

* feature: added support for the --- access_log section for checking access
log file content.

* bugfix: valgrind test mode: we no longer disable nginx master process in
this mode.

* bugfix: we did not clean up nginx's *_cache directories under the server
root directory.

* feature: added support for environment variable TEST_NGINX_REUSE_PORT for
enabling the reuseport parameter in the listen directive automatically
generated in nginx.conf.

* feature: we now check for the new "write guard" warning message to detect
misuses of lua globals.

* feature: added the use_hup() Perl utility function.

* feature: when --- no_error_log fails, we output up to 9 lines of
subsequent error log messages for better debuggability (for example,
wen can have complete lua backtraces).

* feature: expanded environment values in --- user_files section.

* bugfix: when setting TEST_NGINX_USE_HUP=1, some directories could not be
cleaned up correctly.

* feature: implemented the TEST_NGINX_USE_RR=1 env for enabling Mozilla rr
to record the nginx server execution.

* bugfix: increased resiliency in HUP reload mode.

* feature: added the '--- skip_openssl' section to skip tests depending on
the OpenSSL version NGINX was built with.

* bugfix: ensured we do not remove some files when using HUP mode.

* bugfix: properly use a concat operator instead of a range.

* bugfix: ensure servroot is cleaned up when starting NGINX for the first
time.

0.26 - 2017-04-09

* feature: added new Test::Nginx::Socket::Lua::Dgram module for
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Nginx.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Test::Nginx;
use strict;
use warnings;

our $VERSION = '0.26';
our $VERSION = '0.27';

__END__
Expand Down
6 changes: 3 additions & 3 deletions lib/Test/Nginx/LWP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use lib 'lib';
use lib 'inc';
use Test::Base -Base;

our $VERSION = '0.26';
our $VERSION = '0.27';

our $NoLongString;

Expand Down Expand Up @@ -495,11 +495,11 @@ Redistributions in binary form must reproduce the above copyright notice, this l
=item *
Neither the name of the authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
Neither the name of the authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
=back
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=head1 SEE ALSO
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Nginx/Socket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use lib 'inc';
use v5.10.1;
use Test::Base -Base;

our $VERSION = '0.26';
our $VERSION = '0.27';

use POSIX qw( SIGQUIT SIGKILL SIGTERM SIGHUP );
use Encode;
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Nginx/Socket/Lua.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test::Nginx::Socket::Lua;

use Test::Nginx::Socket -Base;

our $VERSION = '0.26';
our $VERSION = '0.27';

my $code = $ENV{TEST_NGINX_INIT_BY_LUA};

Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Nginx/Socket/Lua/Dgram.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use v5.10.1;
use Test::Nginx::Socket::Lua -Base;
use Test::Nginx::Util qw( $ServerPort $ServerAddr );

our $VERSION = '0.26';
our $VERSION = '0.27';

sub get_best_long_bracket_level ($);
sub quote_as_lua_str ($);
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Nginx/Socket/Lua/Stream.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use v5.10.1;
use Test::Nginx::Socket::Lua -Base;
use Test::Nginx::Util qw( $ServerPort $ServerAddr );

our $VERSION = '0.26';
our $VERSION = '0.27';

sub get_best_long_bracket_level ($);
sub quote_as_lua_str ($);
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Nginx/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Test::Nginx::Util;
use strict;
use warnings;

our $VERSION = '0.26';
our $VERSION = '0.27';

use base 'Exporter';

Expand Down

0 comments on commit faf87ef

Please sign in to comment.