mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 10:20:35 +03:00
Some reorg of tests.
This commit is contained in:
@@ -1,7 +1,35 @@
|
||||
### Empty
|
||||
{
|
||||
type => "operators",
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\d{15,16}",
|
||||
input => "1234567890123456",
|
||||
param => "\\d{15,16}",
|
||||
input => "",
|
||||
rc => 0,
|
||||
},
|
||||
|
||||
### Non-matching
|
||||
{
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "TestCase",
|
||||
rc => 0,
|
||||
},
|
||||
|
||||
### Bad CC#
|
||||
{
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "01234567890123456",
|
||||
rc => 0,
|
||||
},
|
||||
|
||||
### Good CC#
|
||||
{
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "372802490654059",
|
||||
rc => 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user