Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c99063

Browse files
author
Felipe Zimmerle
committed
Tests: fixes regression/rule/00-basics.t
Tests were failing because they were writing wrong/outdated.
1 parent7c9ebfe commit0c99063

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎tests/regression/rule/00-basics.t‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
SecAction"nolog,id:500001"
1212
),
1313
match_log=> {
14-
-error=> [ qr/ModSecurity:/,1 ],
14+
-error=> [ qr/500001/,1 ],
1515
-audit=> [ qr/./,1 ],
1616
debug=> [ qr/Warning\. Unconditionalmatch in SecAction\./,1 ],
1717
},
@@ -32,11 +32,11 @@
3232
SecDebugLog$ENV{DEBUG_LOG}
3333
SecDebugLogLevel5
3434
SecDefaultAction"phase:2,deny,status:403"
35-
SecRule ARGS:test"value,id:500032"
35+
SecRule ARGS:test"value""id:500032"
3636
),
3737
match_log=> {
38-
error=> [ qr/ModSecurity:/,1 ],
39-
debug=> [ qr/Rule [0-9a-f]+: SecRule"ARGS:test""\@rx value""phase:2,deny,status:403"$/m,1 ],
38+
error=> [ qr/500032/,1 ],
39+
debug=> [ qr/Rule [0-9a-f]+: SecRule"ARGS:test""\@rx value""phase:2,deny,status:403,id:500032"$/m,1 ],
4040
},
4141
match_response=> {
4242
status=> qr/^403$/,
@@ -57,7 +57,7 @@
5757
),
5858
match_log=> {
5959
error=> [ qr/ModSecurity:/,1 ],
60-
debug=> [ qr/Rule [0-9a-f]+: SecRule"ARGS:test""\@rx value""phase:2,deny,status:403"$/m,1 ],
60+
debug=> [ qr/Rule [0-9a-f]+: SecRule"ARGS:test""\@rx value""phase:2,deny,status:403,id:500033"$/m,1 ],
6161
},
6262
match_response=> {
6363
status=> qr/^403$/,
@@ -75,12 +75,12 @@
7575
SecDebugLogLevel5
7676
SecDefaultAction"phase:2,log,noauditlog,pass,tag:foo"
7777
SecRule ARGS:test"value""chain,phase:2,deny,status:403,id:500034"
78-
SecRule&ARGS"\@eq 1""chain,setenv:tx.foo=bar,id:500035"
79-
SecRule REQUEST_METHOD"\@streq GET,id:500036"
78+
SecRule&ARGS"\@eq 1""chain,setenv:tx.foo=bar"
79+
SecRule REQUEST_METHOD"\@streq GET"
8080
),
8181
match_log=> {
8282
error=> [ qr/ModSecurity:/,1 ],
83-
debug=> [ qr/Rule [0-9a-f]+: SecRule"ARGS:test""\@rx value""phase:2,log,noauditlog,tag:foo,chain,deny,status:403"\r?\n.*Rule [0-9a-f]+: SecRule"&ARGS""\@eq 1""chain,setenv:tx.foo=bar"\r?\n.*Rule [0-9a-f]+: SecRule"REQUEST_METHOD""\@streq GET"\r?\n/s,1 ],
83+
debug=> [ qr/Rule [0-9a-f]+: SecRule"ARGS:test""\@rx value""phase:2,log,noauditlog,tag:foo,chain,deny,status:403,id:500034"\r?\n.*Rule [0-9a-f]+: SecRule"&ARGS""\@eq 1""chain,setenv:tx.foo=bar"\r?\n.*Rule [0-9a-f]+: SecRule"REQUEST_METHOD""\@streq GET"\r?\n/s,1 ],
8484
},
8585
match_response=> {
8686
status=> qr/^403$/,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp