diff --git a/metricbeat/tests/system/test_base.py b/metricbeat/tests/system/test_base.py index 751ee815b96..43b548013e9 100644 --- a/metricbeat/tests/system/test_base.py +++ b/metricbeat/tests/system/test_base.py @@ -100,7 +100,7 @@ def test_migration(self): }], elasticsearch={"host": self.get_elasticsearch_url()}, ) - exit_code = self.run_beat(extra_args=["setup", "--template", + exit_code = self.run_beat(extra_args=["setup", "--index-management", "-E", "setup.template.overwrite=true", "-E", "migration.6_to_7.enabled=true"]) assert exit_code == 0