mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +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:
@@ -62,6 +62,7 @@ class RegressionTest {
|
||||
std::string method;
|
||||
std::string httpVersion;
|
||||
std::string uri;
|
||||
std::string resource;
|
||||
|
||||
static inline std::string yajl_array_to_str(const yajl_val &node);
|
||||
static inline std::vector<std::string> yajl_array_to_vec_str(
|
||||
@@ -76,7 +77,13 @@ class RegressionTest {
|
||||
|
||||
class RegressionTestResult {
|
||||
public:
|
||||
RegressionTestResult() :
|
||||
passed(false),
|
||||
skipped(false),
|
||||
test(NULL) { }
|
||||
|
||||
bool passed;
|
||||
bool skipped;
|
||||
RegressionTest *test;
|
||||
std::stringstream reason;
|
||||
};
|
||||
|
Reference in New Issue
Block a user