Skip to content

Commit

Permalink
Merge pull request #893 from untergeek/fix/get_aliases
Browse files Browse the repository at this point in the history
Elasticsearch-py 5.1.0 needs get_alias()
  • Loading branch information
untergeek committed Feb 24, 2017
2 parents 50c6398 + f77f9c5 commit 4826670
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/test_alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_add_with_empty_remove(self):
)
self.assertEqual(
{'dummy': {'aliases': {alias: {}}},'my_index': {'aliases': {alias: {}}}},
self.client.indices.get_aliases()
self.client.indices.get_alias()
)
def test_remove_with_empty_add(self):
alias = 'testalias'
Expand All @@ -171,7 +171,7 @@ def test_remove_with_empty_add(self):
)
self.assertEqual(
{'dummy': {'aliases': {}},'my_index': {'aliases': {alias: {}}}},
self.client.indices.get_aliases()
self.client.indices.get_alias()
)
def test_add_with_empty_list(self):
alias = 'testalias'
Expand All @@ -192,7 +192,7 @@ def test_add_with_empty_list(self):
)
self.assertEqual(
{'dummy': {'aliases': {alias: {}}}, 'my_index': {'aliases': {}}},
self.client.indices.get_aliases()
self.client.indices.get_alias()
)
def test_remove_with_empty_list(self):
alias = 'testalias'
Expand All @@ -213,7 +213,7 @@ def test_remove_with_empty_list(self):
)
self.assertEqual(
{'dummy': {'aliases': {alias: {}}}, 'my_index': {'aliases': {}}},
self.client.indices.get_aliases()
self.client.indices.get_alias()
)
def test_no_add_remove(self):
alias = 'testalias'
Expand Down

0 comments on commit 4826670

Please sign in to comment.