From 5630167559f08adea9287b33261f77c8bf71e544 Mon Sep 17 00:00:00 2001 From: Ernst Leierzopf Date: Mon, 26 Jan 2026 19:37:12 +0100 Subject: [PATCH 1/3] update integration tests to work with changed ID types in DetectMateLibrary. --- .../library_integration/test_detector_integration.py | 12 ++++++------ tests/library_integration/test_parser_integration.py | 6 +++--- tests/library_integration/test_reader_integration.py | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/library_integration/test_detector_integration.py b/tests/library_integration/test_detector_integration.py index 11726da..8176bbf 100644 --- a/tests/library_integration/test_detector_integration.py +++ b/tests/library_integration/test_detector_integration.py @@ -27,8 +27,8 @@ def test_parser_messages() -> list: "EventID": 1, "template": "User <*> logged in from <*>", "variables": ["john", "192.168.1.100"], - "parsedLogID": 101, - "logID": 1, + "parsedLogID": "101", + "logID": "1", "log": "User john logged in from 192.168.1.100", "logFormatVariables": { "username": "john", @@ -44,8 +44,8 @@ def test_parser_messages() -> list: "EventID": 2, "template": "Database query failed: <*>", "variables": ["connection timeout"], - "parsedLogID": 102, - "logID": 2, + "parsedLogID": "102", + "logID": "2", "log": "Database query failed: connection timeout", "logFormatVariables": { "error": "connection timeout", @@ -61,8 +61,8 @@ def test_parser_messages() -> list: "EventID": 3, "template": "File <*> accessed by <*> at <*>", "variables": ["config.txt", "admin", "10:45:30"], - "parsedLogID": 103, - "logID": 3, + "parsedLogID": "103", + "logID": "3", "log": "File config.txt accessed by admin at 10:45:30", "logFormatVariables": { "filename": "config.txt", diff --git a/tests/library_integration/test_parser_integration.py b/tests/library_integration/test_parser_integration.py index bc2361e..6611381 100644 --- a/tests/library_integration/test_parser_integration.py +++ b/tests/library_integration/test_parser_integration.py @@ -19,19 +19,19 @@ def create_test_log_messages() -> list: messages = [] log_configs = [ { - "logID": 1, + "logID": "1", "log": "User john logged in from 192.168.1.100", "logSource": "auth_server", "hostname": "server-01", }, { - "logID": 2, + "logID": "2", "log": "Database query failed: connection timeout", "logSource": "database", "hostname": "db-01", }, { - "logID": 3, + "logID": "3", "log": "File config.txt accessed by admin at 10:45:30", "logSource": "file_server", "hostname": "fs-01", diff --git a/tests/library_integration/test_reader_integration.py b/tests/library_integration/test_reader_integration.py index 0f67b37..1b27391 100644 --- a/tests/library_integration/test_reader_integration.py +++ b/tests/library_integration/test_reader_integration.py @@ -169,8 +169,8 @@ def test_multiple_reads_return_different_logs(self, running_service: dict) -> No # Verify log IDs increment log_ids = [log["logID"] for log in logs] - assert log_ids[1] == log_ids[0] + 1 - assert log_ids[2] == log_ids[1] + 1 + assert log_ids[1] == str(int(log_ids[0]) + 1) + assert log_ids[2] == str(int(log_ids[1]) + 1) def test_log_contains_expected_content(self, running_service: dict) -> None: """Verify returned logs contain expected audit log content.""" From 812401c0aa44076fdbf488b55f43676f26c4f451 Mon Sep 17 00:00:00 2001 From: whotwagner Date: Wed, 28 Jan 2026 10:42:55 +0100 Subject: [PATCH 2/3] Update package-ecosystem to 'UV' in dependabot.yml --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1cd61df --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "UV" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" From 63205f8642ec13a153b49daf41ceeb96dde40bf6 Mon Sep 17 00:00:00 2001 From: whotwagner Date: Thu, 29 Jan 2026 10:56:56 +0100 Subject: [PATCH 3/3] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1cd61df..3bfe00c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,7 @@ version: 2 updates: - - package-ecosystem: "UV" # See documentation for possible values + - package-ecosystem: "uv" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "weekly"