Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioalvap committed Jun 13, 2024
1 parent ed7dda1 commit ca4ff05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions tests/handlers/aws/test_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,33 +962,33 @@ def test_replay(self) -> None:
{
"fail": {
"message": "test_replay_fail_pipeline_s3",
"if": f"ctx[\"_id\"] == \"{prefix_s3_first}-000000000000\"",
"if": f'ctx["_id"] == "{prefix_s3_first}-000000000000"',
}
},
{
"fail": {
"message": "test_replay_fail_pipeline_sqs",
"if": f"ctx[\"_id\"] == \"{prefix_sqs}-000000000000\"",
"if": f'ctx["_id"] == "{prefix_sqs}-000000000000"',
}
},
{
"fail": {
"message": "test_replay_fail_pipeline_cloudwatch",
"if": f"ctx[\"_id\"] == \"{prefix_cloudwatch_logs}-000000000000\"",
"if": f'ctx["_id"] == "{prefix_cloudwatch_logs}-000000000000"',
}
},
{
"fail": {
"message": "test_replay_fail_pipeline_kinesis",
"if": f"ctx[\"_id\"] == \"{prefix_kinesis}-000000000000\"",
"if": f'ctx["_id"] == "{prefix_kinesis}-000000000000"',
}
},
]
}

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(index="logs-generic-default")
self.elasticsearch.put_settings(
index="logs-generic-default", body={"index.default_pipeline": "test_replay_fail_pipeline"}
)
Expand Down Expand Up @@ -1120,9 +1120,7 @@ def test_replay(self) -> None:
self.elasticsearch.refresh(index="logs-generic-default")

# Remove pipeline processors
processors = {
"processors": []
}
processors = {"processors": []}

self.elasticsearch.put_pipeline(id="test_replay_fail_pipeline", body=processors)
self.elasticsearch.refresh(index="logs-generic-default")
Expand Down
2 changes: 1 addition & 1 deletion tests/testcontainers/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def index(self, **kwargs: Any) -> dict[str, Any]:
self._index_indices.add(kwargs["index"])

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"])
Expand Down

0 comments on commit ca4ff05

Please sign in to comment.