Mercurial > hg > nginx-tests
comparison grpc_next_upstream.t @ 1986:11463d379570
Tests: reworked HTTP/2 tests to use "http2 on".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 05:08:02 +0300 |
parents | 236d038dc04a |
children |
comparison
equal
deleted
inserted
replaced
1985:b5e2609d34a3 | 1986:11463d379570 |
---|---|
67 return 200 "$upstream_addr\n"; | 67 return 200 "$upstream_addr\n"; |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 server { | 71 server { |
72 listen 127.0.0.1:8081 http2; | 72 listen 127.0.0.1:8081; |
73 server_name localhost; | 73 server_name localhost; |
74 | |
75 http2 on; | |
74 | 76 |
75 location / { | 77 location / { |
76 return 404; | 78 return 404; |
77 } | 79 } |
78 location /ok { | 80 location /ok { |
89 return 404; | 91 return 404; |
90 } | 92 } |
91 } | 93 } |
92 | 94 |
93 server { | 95 server { |
94 listen 127.0.0.1:8082 http2; | 96 listen 127.0.0.1:8082; |
95 server_name localhost; | 97 server_name localhost; |
98 | |
99 http2 on; | |
96 | 100 |
97 location / { | 101 location / { |
98 return 200 "TEST-OK-IF-YOU-SEE-THIS\n"; | 102 return 200 "TEST-OK-IF-YOU-SEE-THIS\n"; |
99 } | 103 } |
100 | 104 |
104 } | 108 } |
105 } | 109 } |
106 | 110 |
107 EOF | 111 EOF |
108 | 112 |
109 # suppress deprecation warning | |
110 | |
111 open OLDERR, ">&", \*STDERR; close STDERR; | |
112 $t->run(); | 113 $t->run(); |
113 open STDERR, ">&", \*OLDERR; | |
114 | 114 |
115 ############################################################################### | 115 ############################################################################### |
116 | 116 |
117 my ($p1, $p2) = (port(8081), port(8082)); | 117 my ($p1, $p2) = (port(8081), port(8082)); |
118 | 118 |