Merge "Fix test_metric_file_override metric from backend"

This commit is contained in:
Zuul
2019-05-29 08:13:31 +00:00
committed by Gerrit Code Review

View File

@@ -77,7 +77,7 @@ class TestDataSourceManager(base.BaseTestCase):
with mock.patch(path, return_value=retval): with mock.patch(path, return_value=retval):
dsmcfg = self._dsm_config(datasources=['monasca']) dsmcfg = self._dsm_config(datasources=['monasca'])
manager = self._dsm(config=dsmcfg) 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']) self.assertEqual("host_fnspid", backend.METRIC_MAP['host_airflow'])
def test_metric_file_invalid_ds(self): def test_metric_file_invalid_ds(self):