mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Add pm operator unit tests.
This commit is contained in:
@@ -1 +1,45 @@
|
||||
### No Match
|
||||
{
|
||||
type => "op",
|
||||
name => "pmFromFile",
|
||||
param => "op/pmFromFile-01.dat",
|
||||
input => "xxxyyyzzz",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Multiple
|
||||
{
|
||||
type => "op",
|
||||
name => "pmFromFile",
|
||||
param => "op/pmFromFile-01.dat",
|
||||
input => "defxxxyyy",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "pmFromFile",
|
||||
param => "op/pmFromFile-01.dat",
|
||||
input => "xxxdefyyy",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "pmFromFile",
|
||||
param => "op/pmFromFile-01.dat",
|
||||
input => "xxxyyydef",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "pmFromFile",
|
||||
param => "op/pmFromFile-01.dat",
|
||||
input => "xxx yyy zzz",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "pmFromFile",
|
||||
param => "op/pmFromFile-01.dat",
|
||||
input => "xxx yyy",
|
||||
ret => 0,
|
||||
},
|
||||
|
Reference in New Issue
Block a user