mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Redo build system to properly use autotools and avoid compilation with apxs util.
This commit is contained in:
44
tests/op/geoLookup.t
Normal file
44
tests/op/geoLookup.t
Normal file
@@ -0,0 +1,44 @@
|
||||
### Empty
|
||||
# NOTE: All will return 0 because of lacking DB
|
||||
{
|
||||
type => "op",
|
||||
name => "geoLookup",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "geoLookup",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
# Failed Lookup
|
||||
{
|
||||
type => "op",
|
||||
name => "geoLookup",
|
||||
param => "",
|
||||
input => "127.0.0.1",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
# Good
|
||||
{
|
||||
type => "op",
|
||||
name => "geoLookup",
|
||||
param => "",
|
||||
input => "216.75.21.122",
|
||||
#ret => 1,
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "geoLookup",
|
||||
param => "",
|
||||
input => "www.modsecurity.org",
|
||||
#ret => 1,
|
||||
ret => 0,
|
||||
},
|
||||
|
Reference in New Issue
Block a user