Skip to content

Commit 945da26

Browse files
authored
Upgrade elasticsearch client library used in tests (#20405)
Upgrade elasticsearch client library used in python tests. Old version uses deprecated Python functions that will be removed in Python 3.9.
1 parent 6d8acd0 commit 945da26

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libbeat/tests/system/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ docker-compose==1.25.3
88
docker-pycreds==0.4.0
99
dockerpty==0.4.1
1010
docopt==0.6.2
11-
elasticsearch==7.1.0
11+
elasticsearch==7.8.1
1212
enum34==1.1.6
1313
idna==2.6
1414
ipaddress==1.0.19

metricbeat/module/elasticsearch/test_elasticsearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Test(metricbeat.BaseTest):
2424
def setUp(self):
2525
super(Test, self).setUp()
2626
self.es = Elasticsearch(self.get_hosts())
27-
self.ml_es = client.xpack.ml.MlClient(self.es)
27+
self.ml_es = client.ml.MlClient(self.es)
2828

2929
es_version = self.get_version()
3030
if es_version["major"] < 7:

0 commit comments

Comments
 (0)