diff --git a/metricbeat/tests/system/test_autodiscover.py b/metricbeat/tests/system/test_autodiscover.py index 9bc2226377cd..6ae037232915 100644 --- a/metricbeat/tests/system/test_autodiscover.py +++ b/metricbeat/tests/system/test_autodiscover.py @@ -25,7 +25,7 @@ def test_docker(self): 'docker': { 'templates': ''' - condition: - equals.docker.container.image: memcached:1.5.3 + equals.docker.container.image: memcached:latest config: - module: memcached metricsets: ["stats"] @@ -37,8 +37,8 @@ def test_docker(self): ) proc = self.start_beat() - docker_client.images.pull('memcached:1.5.3') - container = docker_client.containers.run('memcached:1.5.3', detach=True) + docker_client.images.pull('memcached:latest') + container = docker_client.containers.run('memcached:latest', detach=True) self.wait_until(lambda: self.log_contains('Starting runner: memcached')) @@ -51,7 +51,7 @@ def test_docker(self): proc.check_kill_and_wait() # Check metadata is added - assert output[0]['docker']['container']['image'] == 'memcached:1.5.3' + assert output[0]['docker']['container']['image'] == 'memcached:latest' assert output[0]['docker']['container']['labels'] == {} assert 'name' in output[0]['docker']['container'] @@ -74,13 +74,13 @@ def test_docker_labels(self): ) proc = self.start_beat() - docker_client.images.pull('memcached:1.5.3') + docker_client.images.pull('memcached:latest') labels = { 'co.elastic.metrics/module': 'memcached', 'co.elastic.metrics/period': '1s', 'co.elastic.metrics/hosts': "'${data.host}:11211'", } - container = docker_client.containers.run('memcached:1.5.3', labels=labels, detach=True) + container = docker_client.containers.run('memcached:latest', labels=labels, detach=True) self.wait_until(lambda: self.log_contains('Starting runner: memcached')) @@ -93,5 +93,5 @@ def test_docker_labels(self): proc.check_kill_and_wait() # Check metadata is added - assert output[0]['docker']['container']['image'] == 'memcached:1.5.3' + assert output[0]['docker']['container']['image'] == 'memcached:latest' assert 'name' in output[0]['docker']['container']