mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds support to resources on the unit tests
This commit is contained in:
committed by
Felipe Zimmerle
parent
b021c15e4b
commit
158ec7b2e1
@@ -129,12 +129,14 @@ UnitTest *UnitTest::from_yajl_node(yajl_val &node) {
|
||||
const char *key = node->u.object.keys[ i ];
|
||||
yajl_val val = node->u.object.values[ i ];
|
||||
|
||||
|
||||
u->skipped = false;
|
||||
if (strcmp(key, "param") == 0) {
|
||||
u->param = YAJL_GET_STRING(val);
|
||||
} else if (strcmp(key, "input") == 0) {
|
||||
u->input = YAJL_GET_STRING(val);
|
||||
json2bin(&u->input);
|
||||
} else if (strcmp(key, "resource") == 0) {
|
||||
u->resource = YAJL_GET_STRING(val);
|
||||
} else if (strcmp(key, "name") == 0) {
|
||||
u->name = YAJL_GET_STRING(val);
|
||||
} else if (strcmp(key, "type") == 0) {
|
||||
|
Reference in New Issue
Block a user