Test that the new behavior in 8 for treating unknown requirements as
unsatisfied can be disable in 7.0.8 and newer, but that this setting is not
respected in 8.
--- /dev/null
+Test that the new behavior in 8 for treating unknown requirements as
+unsatisfied can be disable in 7.0.8 and newer, but that this setting is not
+respected in 8.
--- /dev/null
+alert http any any -> any any (content:"uid=0"; requires: foo bar; sid:9; rev:1;)
--- /dev/null
+args:
+ # Suricata 8 doesn't respect this setting.
+ - --set ignore-unknown-requirements=true
+
+pcap: ../eve-metadata/testmyids.pcap
+
+checks:
+
+ - filter:
+ requires:
+ lt-version: 8
+ count: 1
+ match:
+ event_type: stats
+ stats.detect.engines[0].rules_skipped: 0
+ stats.detect.engines[0].rules_loaded: 1
+ stats.detect.engines[0].rules_failed: 0
+
+ - filter:
+ requires:
+ min-version: 8
+ count: 1
+ match:
+ event_type: stats
+ stats.detect.engines[0].rules_skipped: 1
+ stats.detect.engines[0].rules_loaded: 0
+ stats.detect.engines[0].rules_failed: 0