From af7162016f5907bdd6c0ebeca8a7eae8eedc394d Mon Sep 17 00:00:00 2001 From: dtrai2 Date: Fri, 25 Oct 2024 09:09:59 +0200 Subject: [PATCH] add assertion to verify event _index in message backlog event --- tests/unit/connector/test_opensearch_output.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/connector/test_opensearch_output.py b/tests/unit/connector/test_opensearch_output.py index 4f74bbcdb..e16e63ec3 100644 --- a/tests/unit/connector/test_opensearch_output.py +++ b/tests/unit/connector/test_opensearch_output.py @@ -59,6 +59,7 @@ def test_store_sends_to_default_index(self): self.object.store(event) assert self.object._message_backlog[0] == event + assert self.object._message_backlog[0].get("_index") == config.get("default_index") def test_store_custom_sends_event_to_expected_index(self): custom_index = "custom_index"