Skip to content

Commit

Permalink
Upgrade elasticsearch client library used in tests (elastic#20405)
Browse files Browse the repository at this point in the history
Upgrade elasticsearch client library used in python tests.
Old version uses deprecated Python functions that will be
removed in Python 3.9.
  • Loading branch information
jsoriano authored Aug 5, 2020
1 parent 6d8acd0 commit 945da26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libbeat/tests/system/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ docker-compose==1.25.3
docker-pycreds==0.4.0
dockerpty==0.4.1
docopt==0.6.2
elasticsearch==7.1.0
elasticsearch==7.8.1
enum34==1.1.6
idna==2.6
ipaddress==1.0.19
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/elasticsearch/test_elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Test(metricbeat.BaseTest):
def setUp(self):
super(Test, self).setUp()
self.es = Elasticsearch(self.get_hosts())
self.ml_es = client.xpack.ml.MlClient(self.es)
self.ml_es = client.ml.MlClient(self.es)

es_version = self.get_version()
if es_version["major"] < 7:
Expand Down

0 comments on commit 945da26

Please sign in to comment.