@@ -5,7 +5,7 @@ use Test::Nginx::Socket;
5
5
6
6
repeat_each(1);
7
7
8
- plan tests => repeat_each() * (blocks() * 3 + 6 * 1);
8
+ plan tests => repeat_each() * (blocks() * 4 + 6 * 1);
9
9
10
10
our $http_config = <<'_EOC_' ;
11
11
proxy_cache_path /tmp/ngx_cache_purge_cache keys_zone=test_cache:10m;
@@ -80,7 +80,9 @@ GET /proxy/passwd
80
80
Content-Type: text/plain
81
81
--- response_body_like: root
82
82
--- timeout: 10
83
- --- skip_nginx2: 3: < 0.8.3 or < 0.7.62
83
+ --- no_error_log eval
84
+ qr/\[(warn|error|crit|alert|emerg)\]/
85
+ --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
84
86
85
87
86
88
@@ -95,7 +97,9 @@ Content-Type: text/plain
95
97
X-Cache-Status: HIT
96
98
--- response_body_like: root
97
99
--- timeout: 10
98
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
100
+ --- no_error_log eval
101
+ qr/\[(warn|error|crit|alert|emerg)\]/
102
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
99
103
100
104
101
105
@@ -109,7 +113,9 @@ PURGE /proxy/passwd
109
113
Content-Type: text/html
110
114
--- response_body_like: Successful purge
111
115
--- timeout: 10
112
- --- skip_nginx2: 3: < 0.8.3 or < 0.7.62
116
+ --- no_error_log eval
117
+ qr/\[(warn|error|crit|alert|emerg)\]/
118
+ --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
113
119
114
120
115
121
@@ -123,7 +129,9 @@ PURGE /proxy/passwd
123
129
Content-Type: text/html
124
130
--- response_body_like: 404 Not Found
125
131
--- timeout: 10
126
- --- skip_nginx2: 3: < 0.8.3 or < 0.7.62
132
+ --- no_error_log eval
133
+ qr/\[(warn|error|crit|alert|emerg)\]/
134
+ --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
127
135
128
136
129
137
@@ -138,7 +146,9 @@ Content-Type: text/plain
138
146
X-Cache-Status: MISS
139
147
--- response_body_like: root
140
148
--- timeout: 10
141
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
149
+ --- no_error_log eval
150
+ qr/\[(warn|error|crit|alert|emerg)\]/
151
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
142
152
143
153
144
154
@@ -153,7 +163,9 @@ Content-Type: text/plain
153
163
X-Cache-Status: HIT
154
164
--- response_body_like: root
155
165
--- timeout: 10
156
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
166
+ --- no_error_log eval
167
+ qr/\[(warn|error|crit|alert|emerg)\]/
168
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
157
169
158
170
159
171
@@ -167,7 +179,9 @@ PURGE /proxy/passwd
167
179
Content-Type: text/html
168
180
--- response_body_like: Successful purge
169
181
--- timeout: 10
170
- --- skip_nginx2: 3: < 0.8.3 or < 0.7.62
182
+ --- no_error_log eval
183
+ qr/\[(warn|error|crit|alert|emerg)\]/
184
+ --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
171
185
172
186
173
187
@@ -181,7 +195,9 @@ PURGE /proxy/passwd
181
195
Content-Type: text/html
182
196
--- response_body_like: 404 Not Found
183
197
--- timeout: 10
184
- --- skip_nginx2: 3: < 0.8.3 or < 0.7.62
198
+ --- no_error_log eval
199
+ qr/\[(warn|error|crit|alert|emerg)\]/
200
+ --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
185
201
186
202
187
203
@@ -196,7 +212,9 @@ Content-Type: text/plain
196
212
X-Cache-Status: MISS
197
213
--- response_body_like: root
198
214
--- timeout: 10
199
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
215
+ --- no_error_log eval
216
+ qr/\[(warn|error|crit|alert|emerg)\]/
217
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
200
218
201
219
202
220
@@ -211,7 +229,9 @@ Content-Type: text/plain
211
229
X-Cache-Status: HIT
212
230
--- response_body_like: root
213
231
--- timeout: 10
214
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
232
+ --- no_error_log eval
233
+ qr/\[(warn|error|crit|alert|emerg)\]/
234
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
215
235
216
236
217
237
@@ -225,7 +245,9 @@ PURGE /proxy/passwd
225
245
Content-Type: text/html
226
246
--- response_body_like: 403 Forbidden
227
247
--- timeout: 10
228
- --- skip_nginx2: 3: < 0.8.3 or < 0.7.62
248
+ --- no_error_log eval
249
+ qr/\[(warn|error|crit|alert|emerg)\]/
250
+ --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
229
251
230
252
231
253
@@ -240,7 +262,9 @@ Content-Type: text/plain
240
262
X-Cache-Status: HIT
241
263
--- response_body_like: root
242
264
--- timeout: 10
243
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
265
+ --- no_error_log eval
266
+ qr/\[(warn|error|crit|alert|emerg)\]/
267
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
244
268
245
269
246
270
@@ -263,7 +287,9 @@ PURGE /proxy/passwd
263
287
Content-Type: text/html
264
288
--- response_body_like: 404 Not Found
265
289
--- timeout: 10
266
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
290
+ --- no_error_log eval
291
+ qr/\[(warn|error|crit|alert|emerg)\]/
292
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
267
293
268
294
269
295
@@ -286,7 +312,9 @@ PURGE /proxy/passwd
286
312
Content-Type: text/html
287
313
--- response_body_like: 403 Forbidden
288
314
--- timeout: 10
289
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
315
+ --- no_error_log eval
316
+ qr/\[(warn|error|crit|alert|emerg)\]/
317
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
290
318
291
319
292
320
@@ -316,4 +344,6 @@ PURGE /proxy/passwd
316
344
Content-Type: text/html
317
345
--- response_body_like: Successful purge
318
346
--- timeout: 10
319
- --- skip_nginx2: 4: < 0.8.3 or < 0.7.62
347
+ --- no_error_log eval
348
+ qr/\[(warn|error|crit|alert|emerg)\]/
349
+ --- skip_nginx2: 5: < 0.8.3 or < 0.7.62
0 commit comments