From: Jason Ish Date: Thu, 17 Nov 2022 22:01:50 +0000 (-0600) Subject: template tests: update for removal of C templates X-Git-Tag: suricata-6.0.10~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=430223cff4a18b51dfdfd7fdaf2322a6ae70282b;p=thirdparty%2Fsuricata-verify.git template tests: update for removal of C templates In 7, the rust based template parser is simply template. --- diff --git a/tests/app-layer-template-rust/test.yaml b/tests/app-layer-template-rust/test.yaml index a92b6f2c6..5254ddea4 100644 --- a/tests/app-layer-template-rust/test.yaml +++ b/tests/app-layer-template-rust/test.yaml @@ -1,5 +1,8 @@ # *** Add configuration here *** +requires: + lt-version: 7 + args: - -k none diff --git a/tests/app-layer-template/test.yaml b/tests/app-layer-template/test.yaml index cfcdec8f0..83319b34e 100644 --- a/tests/app-layer-template/test.yaml +++ b/tests/app-layer-template/test.yaml @@ -5,6 +5,7 @@ args: checks: - filter: + lt-version: 7 count: 1 match: dest_ip: 10.16.1.10 @@ -16,6 +17,19 @@ checks: src_port: 58352 template.request: 12:Hello World! template.response: 3:Bye +- filter: + min-version: 7 + count: 1 + match: + dest_ip: 10.16.1.10 + dest_port: 7000 + event_type: template + pcap_cnt: 7 + proto: TCP + src_ip: 10.16.1.11 + src_port: 58352 + template.request: Hello World! + template.response: Bye - filter: count: 1 match: