Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioalvap committed Jun 13, 2024
1 parent f5a61f1 commit b4e1c8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/handlers/aws/test_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def test_replay(self) -> None:

self.elasticsearch.put_pipeline(id="test_replay_fail_pipeline", body=processors)

self.elasticsearch.create_data_stream(index="logs-generic-default")
self.elasticsearch.create_data_stream(name="logs-generic-default")
self.elasticsearch.put_settings(
index="logs-generic-default", body={"index.default_pipeline": "test_replay_fail_pipeline"}
)
Expand Down
4 changes: 2 additions & 2 deletions tests/testcontainers/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def index(self, **kwargs: Any) -> dict[str, Any]:
return self.es_client.index(**kwargs)

def create_data_stream(self, **kwargs: Any) -> dict[str, Any]:
if "index" in kwargs:
self._index_indices.add(kwargs["index"])
if "name" in kwargs:
self._index_indices.add(kwargs["name"])

return self.es_client.indices.create_data_stream(**kwargs)

0 comments on commit b4e1c8f

Please sign in to comment.