@@ -24,7 +24,7 @@ use Test::Nginx;
2424select STDERR ; $| = 1;
2525select STDOUT ; $| = 1;
2626
27- my $t = Test::Nginx-> new()-> has(qw/ http http_ssl/ )-> plan(8 );
27+ my $t = Test::Nginx-> new()-> has(qw/ http http_ssl/ )-> plan(7 );
2828
2929use constant TEMPLATE_CONF => <<'EOF' ;
3030
@@ -68,29 +68,18 @@ acme_issuer example {
6868 uri https://localhost:%%PORT_9000%%/dir;
6969 account_key ecdsa:256;
707071- resolver 127.0.0.1:%%PORT_8980_UDP%%;
72- resolver_timeout 5s;
7371 ssl_verify off;
7472 state_path %%TESTDIR%%;
7573 accept_terms_of_service;
7674}
7775
78- EOF
79-
80-
81- is(check($t , <<'EOF' ), undef , ' valid - resolver in server' );
82-
83- acme_issuer example {
84- uri https://localhost:%%PORT_9000%%/dir;
85- ssl_verify off;
86- }
87-
8876resolver 127.0.0.1:%%PORT_8980_UDP%%;
77+ resolver_timeout 5s;
8978
9079EOF
9180
9281
93- like(check($t , <<'EOF' ), qr /\[ emerg].*resolver is not/ , ' no resolver' );
82+ like(check($t , <<'EOF' ), qr /\[ emerg].*" resolver" is not/ , ' no resolver' );
9483
9584acme_issuer example {
9685 uri https://localhost:%%PORT_9000%%/dir;
@@ -106,10 +95,11 @@ acme_shared_zone bad-value;
10695
10796acme_issuer example {
10897 uri https://localhost:%%PORT_9000%%/dir;
109- resolver 127.0.0.1:%%PORT_8980_UDP%%;
11098 ssl_verify off;
11199}
112100
101+ resolver 127.0.0.1:%%PORT_8980_UDP%%;
102+
113103EOF
114104
115105
@@ -119,10 +109,11 @@ acme_shared_zone zone=test:bad-size;
119109
120110acme_issuer example {
121111 uri https://localhost:%%PORT_9000%%/dir;
122- resolver 127.0.0.1:%%PORT_8980_UDP%%;
123112 ssl_verify off;
124113}
125114
115+ resolver 127.0.0.1:%%PORT_8980_UDP%%;
116+
126117EOF
127118
128119
@@ -131,10 +122,11 @@ like(check($t, <<'EOF' ), qr/\[emerg].*cannot load/, 'bad key file');
131122acme_issuer example {
132123 uri https://localhost:%%PORT_9000%%/dir;
133124 account_key no-such-file.key;
134- resolver 127.0.0.1:%%PORT_8980_UDP%%;
135125 ssl_verify off;
136126}
137127
128+ resolver 127.0.0.1:%%PORT_8980_UDP%%;
129+
138130EOF
139131
140132
@@ -143,10 +135,11 @@ like(check($t, <<'EOF' ), qr/\[emerg].*unsupported curve/, 'bad key curve');
143135acme_issuer example {
144136 uri https://localhost:%%PORT_9000%%/dir;
145137 account_key ecdsa:234;
146- resolver 127.0.0.1:%%PORT_8980_UDP%%;
147138 ssl_verify off;
148139}
149140
141+ resolver 127.0.0.1:%%PORT_8980_UDP%%;
142+
150143EOF
151144
152145
@@ -155,10 +148,11 @@ like(check($t, <<'EOF' ), qr/\[emerg].*unsupported key size/, 'bad key size');
155148acme_issuer example {
156149 uri https://localhost:%%PORT_9000%%/dir;
157150 account_key rsa:1024;
158- resolver 127.0.0.1:%%PORT_8980_UDP%%;
159151 ssl_verify off;
160152}
161153
154+ resolver 127.0.0.1:%%PORT_8980_UDP%%;
155+
162156EOF
163157
164158# stop and clear the log to avoid triggering sanitizer checks
0 commit comments