Mercurial > hg > nginx-tests
comparison mail_resolver.t @ 1020:196d33c2bb45
Tests: removed TODO and try_run() checks for legacy versions.
Also removed now unused spdy.t and shmem prerequisite.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 31 Aug 2016 18:21:07 +0300 |
parents | a8b8dd6e8ae1 |
children | 65fc7a0ca418 |
comparison
equal
deleted
inserted
replaced
1019:41139d6f8b7b | 1020:196d33c2bb45 |
---|---|
204 | 204 |
205 } | 205 } |
206 | 206 |
207 # uncompressed answer | 207 # uncompressed answer |
208 | 208 |
209 TODO: { | |
210 local $TODO = 'support for uncompressed name in PTR' | |
211 unless $t->has_version('1.9.11'); | |
212 | |
213 $s = Test::Nginx::SMTP->new(PeerAddr => '127.0.0.1:' . port(8030)); | 209 $s = Test::Nginx::SMTP->new(PeerAddr => '127.0.0.1:' . port(8030)); |
214 $s->read(); | 210 $s->read(); |
215 $s->send('EHLO example.com'); | 211 $s->send('EHLO example.com'); |
216 $s->read(); | 212 $s->read(); |
217 $s->send('MAIL FROM:<test@example.com> SIZE=100'); | 213 $s->send('MAIL FROM:<test@example.com> SIZE=100'); |
221 $s->ok('uncompressed PTR'); | 217 $s->ok('uncompressed PTR'); |
222 | 218 |
223 $s->send('QUIT'); | 219 $s->send('QUIT'); |
224 $s->read(); | 220 $s->read(); |
225 | 221 |
226 } | |
227 | |
228 TODO: { | |
229 local $TODO = 'PTR type checking' unless $t->has_version('1.9.11'); | |
230 | |
231 $s = Test::Nginx::SMTP->new(PeerAddr => '127.0.0.1:' . port(8031)); | 222 $s = Test::Nginx::SMTP->new(PeerAddr => '127.0.0.1:' . port(8031)); |
232 $s->read(); | 223 $s->read(); |
233 $s->send('EHLO example.com'); | 224 $s->send('EHLO example.com'); |
234 $s->read(); | 225 $s->read(); |
235 $s->send('MAIL FROM:<test@example.com> SIZE=100'); | 226 $s->send('MAIL FROM:<test@example.com> SIZE=100'); |
239 $s->check(qr/TEMPUNAVAIL/, 'PTR type'); | 230 $s->check(qr/TEMPUNAVAIL/, 'PTR type'); |
240 | 231 |
241 $s->send('QUIT'); | 232 $s->send('QUIT'); |
242 $s->read(); | 233 $s->read(); |
243 | 234 |
244 } | |
245 | |
246 # CNAME and PTR in one answer section | 235 # CNAME and PTR in one answer section |
247 | 236 |
248 TODO: { | |
249 local $TODO = 'not yet' unless $t->has_version('1.9.11'); | |
250 | |
251 $s = Test::Nginx::SMTP->new(PeerAddr => '127.0.0.1:' . port(8032)); | 237 $s = Test::Nginx::SMTP->new(PeerAddr => '127.0.0.1:' . port(8032)); |
252 $s->read(); | 238 $s->read(); |
253 $s->send('EHLO example.com'); | 239 $s->send('EHLO example.com'); |
254 $s->read(); | 240 $s->read(); |
255 $s->send('MAIL FROM:<test@example.com> SIZE=100'); | 241 $s->send('MAIL FROM:<test@example.com> SIZE=100'); |
258 $s->send('RCPT TO:<test@example.com>'); | 244 $s->send('RCPT TO:<test@example.com>'); |
259 $s->ok('CNAME with PTR'); | 245 $s->ok('CNAME with PTR'); |
260 | 246 |
261 $s->send('QUIT'); | 247 $s->send('QUIT'); |
262 $s->read(); | 248 $s->read(); |
263 | |
264 } | |
265 | 249 |
266 ############################################################################### | 250 ############################################################################### |
267 | 251 |
268 sub reply_handler { | 252 sub reply_handler { |
269 my ($recv_data, $port) = @_; | 253 my ($recv_data, $port) = @_; |