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
This commit is contained in:
Dantali0n
2019-05-24 15:32:55 +02:00
parent 1e6ce53273
commit 5c492ea862

View File

@@ -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):