]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
template tests: update for removal of C templates 1033/head
authorJason Ish <jason.ish@oisf.net>
Thu, 17 Nov 2022 22:01:50 +0000 (16:01 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 6 Dec 2022 13:25:31 +0000 (14:25 +0100)
In 7, the rust based template parser is simply template.

tests/app-layer-template-rust/test.yaml
tests/app-layer-template/test.yaml

index a92b6f2c64704098e6523d31d1dfec7d34749565..5254ddea4f8650573fe421362cad7d9005363548 100644 (file)
@@ -1,5 +1,8 @@
 # *** Add configuration here ***
 
+requires:
+  lt-version: 7
+
 args:
 - -k none
 
index cfcdec8f057d3ca8773ed9ad4115bf91b17fd443..83319b34e813858c2841c44f80ef44499a3d8b15 100644 (file)
@@ -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: