Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
code clean up
[yardstick.git]
/
tests
/
unit
/
benchmark
/
scenarios
/
availability
/
test_basemonitor.py
diff --git
a/tests/unit/benchmark/scenarios/availability/test_basemonitor.py
b/tests/unit/benchmark/scenarios/availability/test_basemonitor.py
index
1329527
..
a20cf81
100644
(file)
--- a/
tests/unit/benchmark/scenarios/availability/test_basemonitor.py
+++ b/
tests/unit/benchmark/scenarios/availability/test_basemonitor.py
@@
-23,6
+23,7
@@
class MonitorMgrTestCase(unittest.TestCase):
def setUp(self):
config = {
'monitor_type': 'openstack-api',
def setUp(self):
config = {
'monitor_type': 'openstack-api',
+ 'key' : 'service-status'
}
self.monitor_configs = []
}
self.monitor_configs = []
@@
-36,6
+37,11
@@
class MonitorMgrTestCase(unittest.TestCase):
ret = instance.verify_SLA()
ret = instance.verify_SLA()
+ def test_MonitorMgr_getitem(self, mock_monitor):
+ monitorMgr = basemonitor.MonitorMgr()
+ monitorMgr.init_monitors(self.monitor_configs, None)
+ monitorIns = monitorMgr['service-status']
+
class BaseMonitorTestCase(unittest.TestCase):
class MonitorSimple(basemonitor.BaseMonitor):
class BaseMonitorTestCase(unittest.TestCase):
class MonitorSimple(basemonitor.BaseMonitor):