Skip to content

Commit 586e1ef

Browse files
committed
Fix json test match_log
1 parent 55270e5 commit 586e1ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/regression/rule/15-json.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
match_log => {
280280
error => [ qr/Access denied with code 403 \(phase 2\)\. Pattern match "bad_value" at ARGS:b\./, 1 ],
281281
debug => [ qr/Adding JSON argument 'b' with value 'bad_value'|JSON support was not enabled/, 1 ],
282-
-debug => [ qr/JSON set reqbody_limit_exceeded|JSON support was not enabled/, 1 ],
282+
-debug => [ qr/JSON: Allow partial processing of request body|JSON support was not enabled/, 1 ],
283283
},
284284
match_response => {
285285
status => qr/^403$/,
@@ -311,7 +311,7 @@
311311
),
312312
match_log => {
313313
error => [ qr/Access denied with code 403 \(phase 2\)\. Pattern match "bad_value" at ARGS:b\./, 1 ],
314-
debug => [ qr/JSON set reqbody_limit_exceeded|JSON support was not enabled/, 1 ],
314+
debug => [ qr/JSON: Allow partial processing of request body|JSON support was not enabled/, 1 ],
315315
},
316316
match_response => {
317317
status => qr/^403$/,
@@ -342,7 +342,7 @@
342342
SecRule ARGS "bad_value" "id:'200003',phase:2,t:none,deny"
343343
),
344344
match_log => {
345-
debug => [ qr/JSON set reqbody_limit_exceeded|JSON support was not enabled/, 1 ],
345+
debug => [ qr/JSON: Allow partial processing of request body|JSON support was not enabled/, 1 ],
346346
},
347347
match_response => {
348348
status => qr/^200$/,
@@ -375,7 +375,7 @@
375375
match_log => {
376376
error => [ qr/Access denied with code 403 \(phase 2\)\. Pattern match "bad_value" at ARGS:b\./, 1 ],
377377
debug => [ qr/Adding JSON argument 'b' with value 'bad_value'|JSON support was not enabled/, 1 ],
378-
-debug => [ qr/JSON set reqbody_limit_exceeded|JSON support was not enabled/, 1 ],
378+
-debug => [ qr/JSON: Allow partial processing of request body|JSON support was not enabled/, 1 ],
379379
},
380380
match_response => {
381381
status => qr/^403$/,

0 commit comments

Comments
 (0)