Skip to content

Commit

Permalink
Update test_actions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saimedhi authored Mar 13, 2024
1 parent 24cbd92 commit 9d814dc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test_opensearchpy/test_server/test_helpers/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ def bulk(self, *args: Any, **kwargs: Any) -> Any:
raise self._fail_with
return self.client.bulk(*args, **kwargs)

class Testfailingtest(OpenSearchTestCase):
def Testfailingtest(self) -> None:
# Create index with specified settings
self.client.indices.create(
index='test',
body={
"settings": {
"index.number_of_shards": 2,
"index.number_of_replicas": 1
}
}
)

# Perform force merge operation and verify total shards
response = self.client.indices.forcemerge(index='test', primary_only=True)
print("response printed", response printed)
assert response['_shards']['total'] == 2

class TestStreamingBulk(OpenSearchTestCase):
def test_actions_remain_unchanged(self) -> None:
Expand Down

0 comments on commit 9d814dc

Please sign in to comment.