Issue: 4082
Test the FTP config logic when there are invalid values for
- memcap
- max-tx
- max-line-len
Ensure that a warning message is displayed
--- /dev/null
+# Description
+
+Test FTP config parsing warning messages when there are invalid values.
+Cf https://redmine.openinfosecfoundation.org/issues/4082
--- /dev/null
+requires:
+ min-version: 8
+pcap: false
+
+args:
+ - -T
+ - --set app-layer.protocols.ftp.memcap=suricata
+ - --set app-layer.protocols.ftp.max-tx=suricata
+ - --set app-layer.protocols.ftp.max-line-length=suricata
+
+checks:
+ - shell:
+ args: grep "Warning.*ftp.*Invalid value.*ftp.memcap" suricata.log | wc -l | xargs
+ expect: 1
+ - shell:
+ args: grep "Warning.*ftp.*Invalid value.*ftp.max-tx" suricata.log | wc -l | xargs
+ expect: 1
+ - shell:
+ args: grep "Warning.*ftp.*Invalid value.*ftp.max-line-length" suricata.log | wc -l | xargs
+ expect: 1