Skip to content

Commit 9ad9c05

Browse files
committed
chore(tests) standardize stub usage
1 parent fe6e08e commit 9ad9c05

File tree

10 files changed

+65
-65
lines changed

10 files changed

+65
-65
lines changed

t/01-wasm/directives/003-shm_directives.t

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ __DATA__
2222
[error]
2323
[crit]
2424
[emerg]
25-
stub
25+
[stub]
2626
2727
2828
@@ -36,7 +36,7 @@ stub
3636
[error]
3737
[crit]
3838
[emerg]
39-
stub
39+
[stub]
4040
4141
4242
@@ -50,7 +50,7 @@ qr/\[emerg\] .*? \[wasm\] invalid shm size "1x"/
5050
--- no_error_log
5151
[error]
5252
[crit]
53-
stub
53+
[stub]
5454
--- must_die
5555
5656
@@ -65,7 +65,7 @@ qr/\[emerg\] .*? \[wasm\] shm size of 8192 bytes is too small, minimum required
6565
--- no_error_log
6666
[error]
6767
[crit]
68-
stub
68+
[stub]
6969
--- must_die
7070
7171
@@ -80,7 +80,7 @@ qr/\[emerg\] .*? \[wasm\] shm size of 16383 bytes is not page-aligned, must be a
8080
--- no_error_log
8181
[crit]
8282
[error]
83-
stub
83+
[stub]
8484
--- must_die
8585
8686
@@ -95,7 +95,7 @@ qr/\[emerg\] .*? \[wasm\] invalid shm name ""/
9595
--- no_error_log
9696
[error]
9797
[crit]
98-
stub
98+
[stub]
9999
--- must_die
100100
101101
@@ -111,7 +111,7 @@ qr/\[emerg\] .*? "my_queue" shm already defined/
111111
--- no_error_log
112112
[error]
113113
[crit]
114-
stub
114+
[stub]
115115
--- must_die
116116
117117
@@ -127,7 +127,7 @@ qr/\[emerg\] .*? "my_kv" shm already defined/
127127
--- no_error_log
128128
[error]
129129
[crit]
130-
stub
130+
[stub]
131131
--- must_die
132132
133133
@@ -143,7 +143,7 @@ qr/\[emerg\] .*? "my_shm" shm already defined/
143143
--- no_error_log
144144
[error]
145145
[crit]
146-
stub
146+
[stub]
147147
--- must_die
148148
149149
@@ -159,7 +159,7 @@ stub
159159
[error]
160160
[crit]
161161
[emerg]
162-
stub
162+
[stub]
163163
164164
165165
@@ -173,7 +173,7 @@ qr/\[emerg\] .*? shm_queue \"my_shm\": queues do not support eviction policies/
173173
--- no_error_log
174174
[error]
175175
[crit]
176-
stub
176+
[stub]
177177
--- must_die
178178
179179
@@ -188,7 +188,7 @@ qr/\[emerg\] .*? invalid option \"foo=bar\"/
188188
--- no_error_log
189189
[error]
190190
[crit]
191-
stub
191+
[stub]
192192
--- must_die
193193
194194
@@ -203,7 +203,7 @@ qr/\[emerg\] .*? invalid option \"foo=bar\"/
203203
--- no_error_log
204204
[error]
205205
[crit]
206-
stub
206+
[stub]
207207
--- must_die
208208
209209
@@ -218,7 +218,7 @@ qr/\[emerg\] .*? invalid eviction policy \"foobar\"/
218218
--- no_error_log
219219
[error]
220220
[crit]
221-
stub
221+
[stub]
222222
--- must_die
223223
224224
@@ -233,5 +233,5 @@ qr/\[emerg\] .*? invalid eviction policy \"\"/
233233
--- no_error_log
234234
[error]
235235
[crit]
236-
stub
236+
[stub]
237237
--- must_die

t/01-wasm/hfuncs/wasi/000-non_host_wasi.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ $ENV{TEST_NGINX_USE_VALGRIND} ? '' : 'daemon off;'
4343
qr/\[emerg\] .*? failed linking "wasi_vm_tests"/
4444
--- no_error_log
4545
[crit]
46-
stub
46+
[stub]
4747
--- must_die: 2

t/03-proxy_wasm/003-on_tick.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ qr/.*?(\[error\]|Uncaught RuntimeError: |\s+)tick_period already set.*
148148
--- no_error_log
149149
[warn]
150150
[crit]
151-
stub
152-
stub
153-
stub
151+
[stub1]
152+
[stub2]
153+
[stub3]
154154
--- must_die

t/03-proxy_wasm/directives/001-proxy_wasm_directive.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ qr/\[emerg\] .*? \[proxy-wasm\] "a" filter missing malloc \(incompatible SDK int
110110
[error]
111111
[crit]
112112
[stderr]
113-
stub
113+
[stub]
114114
--- must_die: 2
115115
116116
@@ -140,7 +140,7 @@ qr/\[emerg\] .*? \[proxy-wasm\] "a" filter missing one of: .*? \(incompatible SD
140140
[error]
141141
[crit]
142142
[stderr]
143-
stub
143+
[stub]
144144
--- must_die: 2
145145
146146
@@ -169,7 +169,7 @@ qr/\[emerg\] .*? \[proxy-wasm\] failed loading "a" filter \(unknown ABI version\
169169
[error]
170170
[crit]
171171
[stderr]
172-
stub
172+
[stub]
173173
--- must_die: 2
174174
175175
@@ -198,7 +198,7 @@ qr/\[emerg\] .*? \[proxy-wasm\] failed loading "a" filter \(incompatible ABI ver
198198
[error]
199199
[crit]
200200
[stderr]
201-
stub
201+
[stub]
202202
--- must_die: 2
203203
204204

t/03-proxy_wasm/hfuncs/100-proxy_log.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ok
3232
]
3333
--- no_error_log
3434
[alert]
35-
stub1
35+
[stub]
3636
3737
3838
@@ -97,6 +97,6 @@ C
9797
]
9898
--- no_error_log
9999
[emerg]
100-
stub
101-
stub
102-
stub
100+
[stub1]
101+
[stub2]
102+
[stub3]

t/03-proxy_wasm/hfuncs/102-proxy_send_local_response.t

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ should produce response with valid code
5252
[error]
5353
[crit]
5454
[alert]
55-
stub
55+
[stub]
5656
5757
5858
@@ -187,7 +187,7 @@ Hello world
187187
[error]
188188
[crit]
189189
[alert]
190-
stub
190+
[stub]
191191
192192
193193
@@ -319,7 +319,7 @@ qr/.*?host trap \(bad usage\): response already sent.*
319319
\[warn\] .*? filter 1\/1 failed resuming "on_response_body" step in "body_filter" phase \(instance trapped\)/
320320
--- no_error_log
321321
[alert]
322-
stub
322+
[stub]
323323
324324
325325
@@ -387,7 +387,7 @@ ok
387387
[error]
388388
[crit]
389389
[alert]
390-
stub
390+
[stub]
391391
392392
393393
@@ -413,7 +413,7 @@ Hello world
413413
[error]
414414
[crit]
415415
[alert]
416-
stub
416+
[stub]
417417
418418
419419

t/03-proxy_wasm/hfuncs/105-proxy_get_http_request_header.t

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Some-Header:
5151
[crit]
5252
[alert]
5353
[stderr]
54-
stub
55-
stub
54+
[stub1]
55+
[stub2]
5656
5757
5858
@@ -93,8 +93,8 @@ GET /t/echo/header/:path
9393
[crit]
9494
[alert]
9595
[stderr]
96-
stub
97-
stub
96+
[stub1]
97+
[stub2]
9898
9999
100100
@@ -114,8 +114,8 @@ GET //t/echo//header/:path
114114
[crit]
115115
[alert]
116116
[stderr]
117-
stub
118-
stub
117+
[stub1]
118+
[stub2]
119119
120120
121121
@@ -135,8 +135,8 @@ GET /t/echo/header/:path?foo=bar&hello=world
135135
[crit]
136136
[alert]
137137
[stderr]
138-
stub
139-
stub
138+
[stub1]
139+
[stub2]
140140
141141
142142
@@ -160,8 +160,8 @@ request's path (/t)
160160
[crit]
161161
[alert]
162162
[stderr]
163-
stub
164-
stub
163+
[stub1]
164+
[stub2]
165165
166166
167167
@@ -185,8 +185,8 @@ qq^:authority: localhost:$ENV{TEST_NGINX_SERVER_PORT}^
185185
[crit]
186186
[alert]
187187
[stderr]
188-
stub
189-
stub
188+
[stub1]
189+
[stub2]
190190
191191
192192
@@ -218,8 +218,8 @@ qq{
218218
[crit]
219219
[alert]
220220
[stderr]
221-
stub
222-
stub
221+
[stub1]
222+
[stub2]
223223
224224
225225
@@ -245,8 +245,8 @@ stub
245245
[crit]
246246
[alert]
247247
[stderr]
248-
stub
249-
stub
248+
[stub1]
249+
[stub2]
250250
251251
252252
@@ -281,8 +281,8 @@ qq{
281281
[crit]
282282
[emerg]
283283
[alert]
284-
stub
285-
stub
284+
[stub1]
285+
[stub2]
286286
287287
288288
@@ -309,9 +309,9 @@ header1000: 1000
309309
[error]
310310
[alert]
311311
[crit]
312-
stub
313-
stub
314-
stub
312+
[stub1]
313+
[stub2]
314+
[stub3]
315315
316316
317317
@@ -351,5 +351,5 @@ path: \/t/
351351
[crit]
352352
[emerg]
353353
[alert]
354-
stub
355-
stub
354+
[stub1]
355+
[stub2]

0 commit comments

Comments
 (0)