mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds the concept of `resources' to the regression test utility
If a given resource is not available the test is skipped. Useful to test operators that depends on 3rd party libraries that may not be available, for instance: GeoIP.
This commit is contained in:
@@ -104,6 +104,9 @@ RegressionTest *RegressionTest::from_yajl_node(const yajl_val &node) {
|
||||
if (strcmp(key, "url") == 0) {
|
||||
u->url = YAJL_GET_STRING(val);
|
||||
}
|
||||
if (strcmp(key, "resource") == 0) {
|
||||
u->resource = YAJL_GET_STRING(val);
|
||||
}
|
||||
if (strcmp(key, "github_issue") == 0) {
|
||||
u->github_issue = YAJL_GET_INTEGER(val);
|
||||
}
|
||||
|
Reference in New Issue
Block a user