Signed-off-by: jason taylor <jtfas90@gmail.com>
--- /dev/null
+%YAML 1.1
+---
+
+logging:
+ default-log-level: info
+ outputs:
+ - file:
+ enabled: yes
+ filename: eve.json
+ type: json
--- /dev/null
+alert udp any any -> any any (msg:"TEST SUCCESFULL - Depth/Depth INVALID combination "; content:"AA"; depth:50; depth:20; sid:5555554; rev:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+command: |
+ ${SRCDIR}/src/suricata --set classification-file="${SRCDIR}/classification.config" --set reference-config-file="${SRCDIR}/reference.config" -l ${OUTPUT_DIR} -c ${TEST_DIR}/suricata.yaml -r ${TEST_DIR}/ -S ${TEST_DIR}/test.rules
+
+checks:
+ # check that we have the following entres in eve.json
+ # match 1 specific rule load failure reason
+ - filter:
+ count: 1
+ match:
+ event_type: engine
+ engine.message: "can't use multiple depths for the same content."
+
+ - filter:
+ count: 1
+ match:
+ event_type: engine
+ engine.error: "SC_ERR_NO_RULES_LOADED"