Add test to ensure Suricata rejects invalid force-hash algorithm values
in file logging configuration. The test verifies that an invalid hash
type (e.g., 'shanani') causes Suricata to exit with an error during
configuration validation.
Issue: OISF#4330
--- /dev/null
+Tests that Suricata properly validates the `force-hash` configuration option
+for EVE file logging and rejects invalid hash algorithm names.
+
+https://redmine.openinfosecfoundation.org/issues/4330
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ types:
+ - files:
+ force-hash: [shanani]
+
--- /dev/null
+requires:
+ min-version: 9
+
+pcap: false
+
+args:
+ - -T
+
+exit-code: 1
+
+checks:
+ - shell:
+ args: "grep 'Invalid configuration: force-hash algorithm' stderr"