changeset 685:fdc748de6fad

Tests: updated HTTP/2 tests for malformed requests. Removed tests for the optional RFC7540 functionality no longer implemented, updated TODOs for the mandatory part now implemented in the HTTP/2 patch.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 08 Sep 2015 21:19:35 +0300
parents 96666f621dbc
children 0af386a519d2
files h2.t
diffstat 1 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/h2.t
+++ b/h2.t
@@ -32,7 +32,7 @@ plan(skip_all => 'IO::Socket::SSL too ol
 
 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy cache/)
 	->has(qw/limit_conn rewrite realip shmem/)
-	->has_daemon('openssl')->plan(178);
+	->has_daemon('openssl')->plan(177);
 
 $t->write_file_expand('nginx.conf', <<'EOF');
 
@@ -1581,26 +1581,15 @@ is($frame->{headers}->{':status'}, 200, 
 isnt($frame->{headers}->{'x-referer'}, 'see-this', 'newline in request header');
 
 # 8.1.2.6.  Malformed Requests and Responses
-#   For malformed requests, a server MAY send an HTTP response prior to
-#   closing or resetting the stream.
-
-is($frame->{headers}->{':status'}, 400, 'newline in request header - status');
-
-# 8.1.2.6.  Malformed Requests and Responses
 #   Malformed requests or responses that are detected MUST be treated
 #   as a stream error (Section 5.4.2) of type PROTOCOL_ERROR.
 
-TODO: {
-local $TODO = 'not yet';
-
 ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames;
 is($frame->{sid}, $sid, 'newline in request header - RST_STREAM sid');
 is($frame->{length}, 4, 'newline in request header - RST_STREAM length');
 is($frame->{flags}, 0, 'newline in request header - RST_STREAM flags');
 is($frame->{code}, 1, 'newline in request header - RST_STREAM code');
 
-}
-
 # GOAWAY on SYN_STREAM with even StreamID
 
 TODO: {