]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
rfb: convert unit test to SV
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 17 Jul 2024 14:08:23 +0000 (16:08 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 7 Aug 2024 17:04:33 +0000 (19:04 +0200)
Ticket: 7178

tests/rfb-parser/README.md [new file with mode: 0644]
tests/rfb-parser/input.pcap [new file with mode: 0644]
tests/rfb-parser/test.yaml [new file with mode: 0644]

diff --git a/tests/rfb-parser/README.md b/tests/rfb-parser/README.md
new file mode 100644 (file)
index 0000000..1155835
--- /dev/null
@@ -0,0 +1,11 @@
+# Test Description
+
+Test RFB parsing
+
+## PCAP
+
+from RFBParserTest unit test
+
+## Related issues
+
+https://redmine.openinfosecfoundation.org/issues/3195
diff --git a/tests/rfb-parser/input.pcap b/tests/rfb-parser/input.pcap
new file mode 100644 (file)
index 0000000..34036ae
Binary files /dev/null and b/tests/rfb-parser/input.pcap differ
diff --git a/tests/rfb-parser/test.yaml b/tests/rfb-parser/test.yaml
new file mode 100644 (file)
index 0000000..798b5b4
--- /dev/null
@@ -0,0 +1,18 @@
+args:
+  - -k none --set stream.inline=true
+
+checks:
+
+  - filter:
+      count: 1
+      match:
+        event_type: rfb
+        rfb.server_protocol_version.major: "003"
+        rfb.server_protocol_version.minor: "007"
+        rfb.client_protocol_version.major: "003"
+        rfb.client_protocol_version.minor: "007"
+        rfb.authentication.security_type: 1
+        rfb.screen_shared: true
+        rfb.framebuffer.width: 1280
+        rfb.framebuffer.height: 800
+        rfb.framebuffer.name: "aneagles@localhost.localdomain"