Fix regression tests structure : using method instead of protocol

This commit is contained in:
Felipe Zimmerle
2015-11-18 11:14:49 -03:00
parent c035e76ede
commit 3c45a57130
93 changed files with 191 additions and 191 deletions

View File

@@ -161,7 +161,7 @@ void perform_unit_test(std::vector<RegressionTest *> *tests,
goto end;
}
modsec_assay->processURI(t->uri.c_str(), t->protocol.c_str(),
modsec_assay->processURI(t->uri.c_str(), t->method.c_str(),
t->httpVersion.c_str());
actions(&r, modsec_assay);

View File

@@ -141,8 +141,8 @@ RegressionTest *RegressionTest::from_yajl_node(const yajl_val &node) {
if (strcmp(key2, "uri") == 0) {
u->uri = YAJL_GET_STRING(val2);
}
if (strcmp(key2, "protocol") == 0) {
u->protocol = YAJL_GET_STRING(val2);
if (strcmp(key2, "method") == 0) {
u->method = YAJL_GET_STRING(val2);
}
if (strcmp(key2, "http_version") == 0) {
u->httpVersion = YAJL_GET_NUMBER(val2);

View File

@@ -59,7 +59,7 @@ class RegressionTest {
int clientPort;
int serverPort;
std::string protocol;
std::string method;
std::string httpVersion;
std::string uri;