--- /dev/null
+Test Description
+================
+
+This test demonstrates that the memcap settings DO NOT take the string length into account in 7.0.x or below.
+
+PCAP
+====
+
+Comes from existing test `flowbit-oring`.
+
+Related tickets
+===============
+
+https://redmine.openinfosecfoundation.org/issues/3910
--- /dev/null
+Y3VybC83LjQzLjA=
--- /dev/null
+alert http any any -> any any (http.user_agent; dataset:isset,ua-seen,type string,load datasets.csv,memcap 88074,hashsize 1; sid:1;)
--- /dev/null
+pcap: ../flowbit-oring/input.pcap
+
+requires:
+ lt-version: 8
+
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
--- /dev/null
+Test Description
+================
+
+This test demonstrates that the memcap settings take the string length into account in 8.0.x.
+
+PCAP
+====
+
+Comes from existing test `flowbit-oring`.
+
+Related tickets
+===============
+
+https://redmine.openinfosecfoundation.org/issues/3910
--- /dev/null
+Y3VybC83LjQzLjA=
--- /dev/null
+alert http any any -> any any (http.user_agent; dataset:isset,ua-seen,type string,load datasets.csv,memcap 88074,hashsize 1; sid:1;)
--- /dev/null
+pcap: ../flowbit-oring/input.pcap
+
+requires:
+ min-version: 8
+ os: linux
+ arch: x86_64
+
+exit-code: 1
+
+args:
+ - -k none
+
+checks:
+ - shell:
+ args: grep "dataset too large for set memcap" suricata.log | wc -l
+ expect: 1