Skip to content

Commit

Permalink
Update test_clients.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saimedhi authored Mar 13, 2024
1 parent 169f25d commit 7c014db
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions test_opensearchpy/test_server/test_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,18 @@ def test_with_doesnt_break_client(self) -> None:


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)
assert response['_shards']['total'] == 2
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)
assert response['_shards']['total'] == 2

0 comments on commit 7c014db

Please sign in to comment.