From: Jason Ish Date: Mon, 2 Jun 2025 22:56:58 +0000 (-0600) Subject: lua/streaming: use new init syntax X-Git-Tag: suricata-7.0.11~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cd921308bda10da031d622e4b842fb336bb60a8;p=thirdparty%2Fsuricata-verify.git lua/streaming: use new init syntax --- diff --git a/tests/lua-output-streaming/streaming-http.lua b/tests/lua-output-streaming/streaming-http.lua index e998a7f8e..1a66dd612 100644 --- a/tests/lua-output-streaming/streaming-http.lua +++ b/tests/lua-output-streaming/streaming-http.lua @@ -3,10 +3,7 @@ local logger = require("suricata.log") local config = require "suricata.config" function init (args) - local needs = {} - needs["type"] = "streaming" - needs["protocol"] = "http" - return needs + return {streaming = "http"} end function setup (args) diff --git a/tests/lua-output-streaming/streaming-tcp.lua b/tests/lua-output-streaming/streaming-tcp.lua index 11ef65bac..00769ebf7 100644 --- a/tests/lua-output-streaming/streaming-tcp.lua +++ b/tests/lua-output-streaming/streaming-tcp.lua @@ -2,10 +2,7 @@ local flow = require("suricata.flow") local config = require("suricata.config") function init (args) - local needs = {} - needs["type"] = "streaming" - needs["filter"] = "tcp" - return needs + return {streaming = "tcp"} end function setup (args)