Skip to content

Commit

Permalink
add assertion to verify event _index in message backlog event
Browse files Browse the repository at this point in the history
dtrai2 committed Oct 25, 2024
1 parent 68d7850 commit af71620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/connector/test_opensearch_output.py
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit af71620

Please sign in to comment.