From 5c492ea862c3e7922b1308a5d518ec3ddff24b4d Mon Sep 17 00:00:00 2001 From: Dantali0n Date: Fri, 24 May 2019 15:32:55 +0200 Subject: [PATCH] Fix test_metric_file_override metric from backend Fix the list of required metrics from a datasource when testing the existence of this metric in the metric map. Change-Id: I19b7408a98893bc942c32edb09f1b3798ec8dc79 --- watcher/tests/datasources/test_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/tests/datasources/test_manager.py b/watcher/tests/datasources/test_manager.py index 7494bd3d5..10c8ab6cd 100644 --- a/watcher/tests/datasources/test_manager.py +++ b/watcher/tests/datasources/test_manager.py @@ -77,7 +77,7 @@ class TestDataSourceManager(base.BaseTestCase): with mock.patch(path, return_value=retval): dsmcfg = self._dsm_config(datasources=['monasca']) manager = self._dsm(config=dsmcfg) - backend = manager.get_backend(['host_cpu_usage']) + backend = manager.get_backend(['host_airflow']) self.assertEqual("host_fnspid", backend.METRIC_MAP['host_airflow']) def test_metric_file_invalid_ds(self):