mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Adds support for curl resource on the regression tests
This commit is contained in:
parent
f9552ede2b
commit
c06daba398
@ -391,6 +391,9 @@ int main(int argc, char **argv) {
|
|||||||
#ifdef WITH_GEOIP
|
#ifdef WITH_GEOIP
|
||||||
resources.push_back("geoip");
|
resources.push_back("geoip");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_CURL
|
||||||
|
resources.push_back("curl");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NO_LOGS
|
#ifdef NO_LOGS
|
||||||
std::cout << "Test utility cannot work without logging support." \
|
std::cout << "Test utility cannot work without logging support." \
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
{
|
{
|
||||||
"enabled":1,
|
"enabled":1,
|
||||||
"version_min":300000,
|
"version_min":300000,
|
||||||
|
"resource": "curl",
|
||||||
"title":"Include remote rules",
|
"title":"Include remote rules",
|
||||||
"client":{
|
"client":{
|
||||||
"ip":"200.249.12.31",
|
"ip":"200.249.12.31",
|
||||||
@ -41,6 +42,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"enabled":1,
|
"enabled":1,
|
||||||
|
"resource": "curl",
|
||||||
"version_min":300000,
|
"version_min":300000,
|
||||||
"title":"Include remote rules - failed download (Abort)",
|
"title":"Include remote rules - failed download (Abort)",
|
||||||
"expected":{
|
"expected":{
|
||||||
@ -54,6 +56,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"enabled":1,
|
"enabled":1,
|
||||||
|
"resource": "curl",
|
||||||
"version_min":300000,
|
"version_min":300000,
|
||||||
"title":"Include remote rules - failed download (Warn)",
|
"title":"Include remote rules - failed download (Warn)",
|
||||||
"client":{
|
"client":{
|
||||||
|
@ -90,6 +90,7 @@
|
|||||||
{
|
{
|
||||||
"enabled":1,
|
"enabled":1,
|
||||||
"version_min":300000,
|
"version_min":300000,
|
||||||
|
"resource": "curl",
|
||||||
"title":"Testing Operator :: @ipMatchFromFile - https",
|
"title":"Testing Operator :: @ipMatchFromFile - https",
|
||||||
"client":{
|
"client":{
|
||||||
"ip":"8.8.4.4",
|
"ip":"8.8.4.4",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user