diff options
| author | liuchang <[email protected]> | 2024-11-26 06:33:14 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2024-11-26 06:33:14 +0000 |
| commit | 1c36e1cb218c67b519170ec23d3ccfcde6b615e7 (patch) | |
| tree | 5709aaf48d9d8b8c70ae11530b0b58c1ac8b0664 /test/test_utils.cpp | |
| parent | 57149b306076b88a914e43cb459142c836c58ef3 (diff) | |
add api maat_state_sort_rules to sort rule_uuid by order: 1.priority 2.condition_num 3.uuidv5.0.4rename-attribute_name-to-field-v24.12
Diffstat (limited to 'test/test_utils.cpp')
| -rw-r--r-- | test/test_utils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_utils.cpp b/test/test_utils.cpp index 63cbb87..135b50d 100644 --- a/test/test_utils.cpp +++ b/test/test_utils.cpp @@ -177,6 +177,8 @@ int rule_table_set_line(struct maat *maat_inst, const char *table_name, cJSON_AddStringToObject(json_root, "action_parameter", action_para_str); } + cJSON_AddNumberToObject(json_root, "priority", 1000);//TODO: support config priority + char *json_str = cJSON_PrintUnformatted(json_root); struct maat_cmd_line line_rule; |
