Mercurial > hg > nginx-tests
comparison ssl_engine_keys.t @ 1535:144c6ce732e4
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 02 Dec 2019 14:56:37 +0300 |
parents | dbce8fb5f5f8 |
children | 7f09d144d15c |
comparison
equal
deleted
inserted
replaced
1534:96fb3513345b | 1535:144c6ce732e4 |
---|---|
26 | 26 |
27 plan(skip_all => 'may not work, leaves coredump') | 27 plan(skip_all => 'may not work, leaves coredump') |
28 unless $ENV{TEST_NGINX_UNSAFE}; | 28 unless $ENV{TEST_NGINX_UNSAFE}; |
29 | 29 |
30 my $t = Test::Nginx->new()->has(qw/http proxy http_ssl/)->has_daemon('openssl') | 30 my $t = Test::Nginx->new()->has(qw/http proxy http_ssl/)->has_daemon('openssl') |
31 ->has_daemon('softhsm')->has_daemon('pkcs11-tool'); | 31 ->has_daemon('softhsm')->has_daemon('pkcs11-tool')->plan(2); |
32 | 32 |
33 $t->write_file_expand('nginx.conf', <<'EOF'); | 33 $t->write_file_expand('nginx.conf', <<'EOF'); |
34 | 34 |
35 %%TEST_GLOBALS%% | 35 %%TEST_GLOBALS%% |
36 | 36 |
135 . "-out $d/$name.crt -keyform engine -text -key id_00 " | 135 . "-out $d/$name.crt -keyform engine -text -key id_00 " |
136 . ">>$d/openssl.out 2>&1") == 0 | 136 . ">>$d/openssl.out 2>&1") == 0 |
137 or die "Can't create certificate for $name: $!\n"; | 137 or die "Can't create certificate for $name: $!\n"; |
138 } | 138 } |
139 | 139 |
140 $t->try_run('no ssl_certificate variables')->plan(2); | 140 $t->run(); |
141 | 141 |
142 $t->write_file('index.html', ''); | 142 $t->write_file('index.html', ''); |
143 | 143 |
144 ############################################################################### | 144 ############################################################################### |
145 | 145 |