summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-19 13:59:52 +0000
committerGerrit Code Review <review@openstack.org>2017-06-19 13:59:52 +0000
commitaf06d06da5baaceff5a455474a01304f626a83bf (patch)
tree6cdb690b68799d19b3efb956efd38990e5ad3620
parent4a950a15502e3e4ce75f3d7bc0d5b165278b7c36 (diff)
parentf0a2e9791adbce2df17b57126ee5dde553205945 (diff)
Merge "Adjust test with option 'backend'"
-rw-r--r--ironic_lib/tests/test_metrics_utils.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/ironic_lib/tests/test_metrics_utils.py b/ironic_lib/tests/test_metrics_utils.py
index 23b02f7..c1657b9 100644
--- a/ironic_lib/tests/test_metrics_utils.py
+++ b/ironic_lib/tests/test_metrics_utils.py
@@ -40,12 +40,8 @@ class TestGetLogger(base.IronicLibTestCase):
40 CONF.clear_override('backend', group='metrics') 40 CONF.clear_override('backend', group='metrics')
41 41
42 def test_nonexisting_backend(self): 42 def test_nonexisting_backend(self):
43 CONF.set_override('backend', 'none', group='metrics',
44 enforce_type=False)
45
46 self.assertRaises(exception.InvalidMetricConfig, 43 self.assertRaises(exception.InvalidMetricConfig,
47 metrics_utils.get_metrics_logger, 'foo') 44 metrics_utils.get_metrics_logger, 'foo', 'test')
48 CONF.clear_override('backend', group='metrics')
49 45
50 def test_numeric_prefix(self): 46 def test_numeric_prefix(self):
51 self.assertRaises(exception.InvalidMetricConfig, 47 self.assertRaises(exception.InvalidMetricConfig,