Mercurial > hg > nginx-tests
comparison grpc_pass.t @ 1860:58951cf933e1
Tests: added has_feature() test for SSL libraries.
This makes it possible to further simplify various SSL tests. It also
avoids direct testing of the $t->{_configure_args} internal field, and
implements proper comparison of version numbers.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 18 May 2023 18:07:06 +0300 |
parents | 5ac6efbe5552 |
children | 236d038dc04a |
comparison
equal
deleted
inserted
replaced
1859:5f46af4707e7 | 1860:58951cf933e1 |
---|---|
105 | 105 |
106 like(http_get('/basic'), qr/200 OK/, 'no scheme'); | 106 like(http_get('/basic'), qr/200 OK/, 'no scheme'); |
107 like(http_get('/grpc'), qr/200 OK/, 'grpc scheme'); | 107 like(http_get('/grpc'), qr/200 OK/, 'grpc scheme'); |
108 | 108 |
109 SKIP: { | 109 SKIP: { |
110 $t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; | 110 skip 'OpenSSL too old', 1 unless $t->has_feature('openssl:1.0.2'); |
111 skip 'OpenSSL too old', 1 unless defined $1 and $1 ge '1.0.2'; | |
112 | 111 |
113 like(http_get('/grpcs'), qr/200 OK/, 'grpcs scheme'); | 112 like(http_get('/grpcs'), qr/200 OK/, 'grpcs scheme'); |
114 | 113 |
115 } | 114 } |
116 | 115 |