Mercurial > hg > nginx-tests
comparison h2.t @ 700:e28787665f99
Tests: reduced two extra HTTP/2 tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 18 Sep 2015 16:07:27 +0300 |
parents | 5768830f01c4 |
children | cc2b98d028c8 |
comparison
equal
deleted
inserted
replaced
699:5768830f01c4 | 700:e28787665f99 |
---|---|
30 eval { IO::Socket::SSL::SSL_VERIFY_NONE(); }; | 30 eval { IO::Socket::SSL::SSL_VERIFY_NONE(); }; |
31 plan(skip_all => 'IO::Socket::SSL too old') if $@; | 31 plan(skip_all => 'IO::Socket::SSL too old') if $@; |
32 | 32 |
33 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy cache/) | 33 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy cache/) |
34 ->has(qw/limit_conn rewrite realip shmem/) | 34 ->has(qw/limit_conn rewrite realip shmem/) |
35 ->has_daemon('openssl')->plan(196); | 35 ->has_daemon('openssl')->plan(194); |
36 | 36 |
37 $t->write_file_expand('nginx.conf', <<'EOF'); | 37 $t->write_file_expand('nginx.conf', <<'EOF'); |
38 | 38 |
39 %%TEST_GLOBALS%% | 39 %%TEST_GLOBALS%% |
40 | 40 |
544 # A decoding error in a header block MUST be treated | 544 # A decoding error in a header block MUST be treated |
545 # as a connection error of type COMPRESSION_ERROR. | 545 # as a connection error of type COMPRESSION_ERROR. |
546 | 546 |
547 is($frame->{last_sid}, $sid, 'invalid index - GOAWAY last stream'); | 547 is($frame->{last_sid}, $sid, 'invalid index - GOAWAY last stream'); |
548 is($frame->{code}, 9, 'invalid index - GOAWAY COMPRESSION_ERROR'); | 548 is($frame->{code}, 9, 'invalid index - GOAWAY COMPRESSION_ERROR'); |
549 | |
550 h2_ping($sess, 'SEE-THIS'); | |
551 is(@{h2_read($sess, all => [{ type => 'PING' }])}, 0, 'invalid index - PING'); | |
552 is($sess->{socket}->connected, undef, 'invalid index - connection close'); | |
553 | 549 |
554 # HEAD | 550 # HEAD |
555 | 551 |
556 $sess = new_session(); | 552 $sess = new_session(); |
557 $sid = new_stream($sess, { method => 'HEAD' }); | 553 $sid = new_stream($sess, { method => 'HEAD' }); |