From 01951b56376e125d747c6ba2d543e9981dd6b84d Mon Sep 17 00:00:00 2001 From: Thomas Walter Date: Mon, 22 Jan 2024 23:13:20 +0100 Subject: [PATCH 1/3] Fix test filenames --- test/{imap_0006.yml => imap_0006.yaml} | 0 test/{imap_0007.yml => imap_0007.yaml} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename test/{imap_0006.yml => imap_0006.yaml} (100%) rename test/{imap_0007.yml => imap_0007.yaml} (100%) diff --git a/test/imap_0006.yml b/test/imap_0006.yaml similarity index 100% rename from test/imap_0006.yml rename to test/imap_0006.yaml diff --git a/test/imap_0007.yml b/test/imap_0007.yaml similarity index 100% rename from test/imap_0007.yml rename to test/imap_0007.yaml From 227d4703d6c28552de645e99c8226f885978ac64 Mon Sep 17 00:00:00 2001 From: Thomas Walter Date: Mon, 22 Jan 2024 23:14:21 +0100 Subject: [PATCH 2/3] Add missing `"` --- test/imap_0006.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/imap_0006.yaml b/test/imap_0006.yaml index 5d4add0..fe77b3c 100644 --- a/test/imap_0006.yaml +++ b/test/imap_0006.yaml @@ -3,5 +3,5 @@ data: "imap-login: Disconnected: Too many invalid commands (no auth attempts in results: "[dovecot][protocol]": "imap" "[dovecot][session]": "MD9B9FyivNXA8exM" - "[dovecot][disconnect_reason]": "Too many invalid commands (no auth attempts in 0 secs) + "[dovecot][disconnect_reason]": "Too many invalid commands (no auth attempts in 0 secs)" "[dovecot][keyvalue_data]": "user=<>, rip=192.0.2.4, lip=192.0.2.111" From 67a4263acee557ca939ebaab32d1ca31143bd606 Mon Sep 17 00:00:00 2001 From: Thomas Walter Date: Tue, 23 Jan 2024 11:09:47 +0100 Subject: [PATCH 3/3] Update patterns submodule --- test/logstash-patterns-core | 2 +- test/test.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/logstash-patterns-core b/test/logstash-patterns-core index 4eef822..f01f3f3 160000 --- a/test/logstash-patterns-core +++ b/test/logstash-patterns-core @@ -1 +1 @@ -Subproject commit 4eef822e8dd615207e16eb9b6791465d1a1db8e6 +Subproject commit f01f3f34cfab13a28b0822bdba33db41823cb1d8 diff --git a/test/test.rb b/test/test.rb index 23e2fb4..c3a6eae 100644 --- a/test/test.rb +++ b/test/test.rb @@ -12,10 +12,10 @@ # It creates test cases from all yaml files in the current # directory. -class TestGrokPatterns < MiniTest::Test +class TestGrokPatterns < Minitest::Test @@test_dir = File.dirname(__FILE__) - @@upstream_pattern_dir = @@test_dir + '/logstash-patterns-core/patterns' + @@upstream_pattern_dir = @@test_dir + '/logstash-patterns-core/patterns/ecs-v1' @@local_pattern_dir = File.dirname(File.expand_path(@@test_dir)) # Prepare a grok object.