From a758d41b839b658783d4b2a982c4c8c6add054a7 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 20 Sep 2024 09:40:55 +0200 Subject: [PATCH 1/2] tests: update for stricter timeout handling --- tests/vxlan-decoder-03/test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/vxlan-decoder-03/test.yaml b/tests/vxlan-decoder-03/test.yaml index e6a47edcd..c88a77654 100644 --- a/tests/vxlan-decoder-03/test.yaml +++ b/tests/vxlan-decoder-03/test.yaml @@ -7,6 +7,24 @@ args: checks: - filter: + min-version: 8 + count: 14 + match: + event_type: flow + dest_port: 4789 + flow.pkts_toclient: 0 + flow.bytes_toclient: 0 + - filter: + min-version: 8 + count: 2 + match: + event_type: flow + dest_port: 4789 + src_port: 65445 + flow.pkts_toclient: 0 + flow.bytes_toclient: 0 + - filter: + lt-version: 8 count: 13 match: event_type: flow From 5a32034e6ddc3c376214fc6376ad923b5f9271fb Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 20 Dec 2024 20:31:28 +0100 Subject: [PATCH 2/2] WIP tests: don't enforce shutdown flow logging Test checked for a flow log being generated by shutdown, but it is possible to have the flow manager handle it before shutdown. So in that case it would be "timeout". Since the test isn't about that, remove the check. --- tests/pgsql/pgsql-ssl-rejected-md5-auth-simple-query/test.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/pgsql/pgsql-ssl-rejected-md5-auth-simple-query/test.yaml b/tests/pgsql/pgsql-ssl-rejected-md5-auth-simple-query/test.yaml index 6a96de1c0..e42ccbdae 100644 --- a/tests/pgsql/pgsql-ssl-rejected-md5-auth-simple-query/test.yaml +++ b/tests/pgsql/pgsql-ssl-rejected-md5-auth-simple-query/test.yaml @@ -141,7 +141,6 @@ checks: flow.bytes_toserver: 1180 flow.pkts_toclient: 12 flow.pkts_toserver: 15 - flow.reason: shutdown flow.state: closed proto: TCP src_ip: 10.16.1.10 @@ -168,7 +167,6 @@ checks: flow.bytes_toserver: 626 flow.pkts_toclient: 6 flow.pkts_toserver: 8 - flow.reason: shutdown flow.state: closed proto: TCP src_ip: 10.16.1.10