Adds support for curl resource on the regression tests

This commit is contained in:
Felipe Zimmerle
2017-02-03 17:12:48 -03:00
committed by Felipe Zimmerle
parent f9552ede2b
commit c06daba398
3 changed files with 7 additions and 0 deletions

View File

@@ -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." \

View File

@@ -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":{

View File

@@ -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",