Issue: 6398
This test validates that the memcap pressure stats are no longer in the
global namespace.
Old:
- memcap_pressure
- memcap_pressure_max
New:
- memcap.pressure
- memcap.pressure_max
--- /dev/null
+# Test
+
+Validate that `memcap.pressure` and `memcap.pressure_max` exist.
+
+# Pcap
+
+Pcap is the result of a curl to www.testmyids.com, later extracted with
+Wireshark to keep the ``http`` packets only.
--- /dev/null
+alert http any any -> any any (msg:"HTTP traffic"; sid:001; rev:1;)
--- /dev/null
+requires:
+ min-version: 8
+pcap: ../alert-testmyids-midstream5/input.pcap
+
+args:
+- --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: stats
+ has-key: stats.memcap.pressure_max
+ has-key: stats.memcap.pressure
+ not-has-key: stats.memcap_pressure_max
+ not-has-key: stats.memcap_pressure