mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
More test updates.
This commit is contained in:
@@ -1 +1,45 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "beginsWith",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "beginsWith",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "beginsWith",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### General
|
||||
{
|
||||
type => "op",
|
||||
name => "beginsWith",
|
||||
param => "abcdef",
|
||||
input => "abcdef",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "beginsWith",
|
||||
param => "abcdef",
|
||||
input => "abcdefghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "beginsWith",
|
||||
param => "abcdef",
|
||||
input => "abc",
|
||||
ret => 0,
|
||||
},
|
||||
|
@@ -1 +1,52 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "contains",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "contains",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "contains",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### General
|
||||
{
|
||||
type => "op",
|
||||
name => "contains",
|
||||
param => "abc",
|
||||
input => "abcdefghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "contains",
|
||||
param => "def",
|
||||
input => "abcdefghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "contains",
|
||||
param => "ghi",
|
||||
input => "abcdefghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "contains",
|
||||
param => "ghij",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
|
@@ -1 +1,80 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### General
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "abc",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "def",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "ghi",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "abc",
|
||||
input => "abc def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "def",
|
||||
input => "abc def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "ghi",
|
||||
input => "abc def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "abc",
|
||||
input => "abc\0def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "def",
|
||||
input => "abc\0def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
|
@@ -1 +1,52 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "endsWith",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "endsWith",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "endsWith",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### General
|
||||
{
|
||||
type => "op",
|
||||
name => "endsWith",
|
||||
param => "abc",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "endsWith",
|
||||
param => "def",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "endsWith",
|
||||
param => "ghi",
|
||||
input => "abcdefghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "endsWith",
|
||||
param => "ghi",
|
||||
input => "abcdef\0ghi",
|
||||
ret => 1,
|
||||
},
|
||||
|
@@ -1 +1,23 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "noMatch",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "noMatch",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "noMatch",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
|
@@ -1 +1,52 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "within",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "within",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "within",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### General
|
||||
{
|
||||
type => "op",
|
||||
name => "within",
|
||||
param => "abcdefghi",
|
||||
input => "abc",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "within",
|
||||
param => "abcdefghi",
|
||||
input => "def",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "within",
|
||||
param => "abcdefghi",
|
||||
input => "ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "within",
|
||||
param => "abcdefghi",
|
||||
input => "ghij",
|
||||
ret => 0,
|
||||
},
|
||||
|
Reference in New Issue
Block a user