mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Added support for unit testing operators. Only verifyCC tests written.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "",
|
||||
rc => 0,
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Non-matching
|
||||
@@ -13,7 +13,7 @@
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "TestCase",
|
||||
rc => 0,
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Bad CC#
|
||||
@@ -22,7 +22,7 @@
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "01234567890123456",
|
||||
rc => 0,
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Good CC#
|
||||
@@ -31,5 +31,5 @@
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "372802490654059",
|
||||
rc => 0,
|
||||
ret => 1,
|
||||
},
|
||||
|
Reference in New Issue
Block a user