summaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark/scenarios/availability/test_basemonitor.py
diff options
context:
space:
mode:
authortjuyinkanglin <14_ykl@tongji.edu.cn>2016-07-15 16:26:49 +0800
committertjuyinkanglin <14_ykl@tongji.edu.cn>2016-07-18 13:00:55 +0800
commit79e7edbb7dd0e8aed4cea42d4d2a996ef32b4237 (patch)
tree85eedce5af124d3b10e28a7129e369539545189b /tests/unit/benchmark/scenarios/availability/test_basemonitor.py
parent3a3ccbd79d47333ce7626674c68a4cdfac44020d (diff)
code clean up
JIRA: YARDSTICK-272 Change-Id: Id2f1b3d1beff8843700cdfcaaa1e8f496f445ed9 Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
Diffstat (limited to 'tests/unit/benchmark/scenarios/availability/test_basemonitor.py')
-rw-r--r--tests/unit/benchmark/scenarios/availability/test_basemonitor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/benchmark/scenarios/availability/test_basemonitor.py b/tests/unit/benchmark/scenarios/availability/test_basemonitor.py
index 140841075..a20cf8187 100644
--- a/tests/unit/benchmark/scenarios/availability/test_basemonitor.py
+++ b/tests/unit/benchmark/scenarios/availability/test_basemonitor.py
@@ -23,7 +23,7 @@ class MonitorMgrTestCase(unittest.TestCase):
def setUp(self):
config = {
'monitor_type': 'openstack-api',
- 'key' : 'service_status'
+ 'key' : 'service-status'
}
self.monitor_configs = []
@@ -40,7 +40,7 @@ class MonitorMgrTestCase(unittest.TestCase):
def test_MonitorMgr_getitem(self, mock_monitor):
monitorMgr = basemonitor.MonitorMgr()
monitorMgr.init_monitors(self.monitor_configs, None)
- monitorIns = monitorMgr['service_status']
+ monitorIns = monitorMgr['service-status']
class BaseMonitorTestCase(unittest.TestCase):