]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
smtp-eve: fix filesize and version check
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 10 Mar 2023 05:38:09 +0000 (11:08 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 28 Mar 2023 18:37:29 +0000 (20:37 +0200)
Earlier, the CRLFs that were a part of the file were also stripped off
as a part of finding and stripping the delimiters in the MIME handler.
This was fixed as a part of
https://redmine.openinfosecfoundation.org/issues/5725.
This patch fixes the test too to reflect the fix.

Ticket: 5821

tests/smtp-eve/test.yaml

index 2c8305a973f06dff18dd82406b73d661565ab447..3fd28caab432bc9067fc5dea32cb759c19dffd4c 100644 (file)
@@ -64,7 +64,6 @@ checks:
       src_port: 1470
       tx_id: 0
 - filter:
-    version: 6.0.0 # FIXME ref: https://redmine.openinfosecfoundation.org/issues/5821
     count: 1
     match:
       app_proto: smtp
@@ -77,11 +76,10 @@ checks:
       event_type: fileinfo
       fileinfo.filename: NEWS.txt
       fileinfo.gaps: false
-      fileinfo.size: 10735
+      fileinfo.size: 10809
       fileinfo.state: CLOSED
       fileinfo.stored: false
       fileinfo.tx_id: 0
-      pcap_cnt: 51
       proto: TCP
       smtp.helo: GP
       smtp.mail_from: <gurpartap@patriots.in>