Skip to content

Commit

Permalink
Fix Elasticsearch tests
Browse files Browse the repository at this point in the history
The newer version of the elasticsearch library changed the underlying
API, which makes our test cases fail. Adapt them accordingly.
  • Loading branch information
felixedel committed Jan 5, 2024
1 parent 7608380 commit 010a0a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_elasticsearch_write(elmock):
zt.save()

assert elmock.return_value.index.call_args == mock.call(
index="zuul-tenants", body=zt.to_dict()
index="zuul-tenants", document=zt.to_dict()
)


Expand All @@ -207,5 +207,5 @@ def test_elasticsearch_write_with_prefix(elmock):
zt.save()

assert elmock.return_value.index.call_args == mock.call(
index="zubbi-zuul-tenants", body=zt.to_dict()
index="zubbi-zuul-tenants", document=zt.to_dict()
)

0 comments on commit 010a0a1

Please sign in to comment.