Rewrite the HA test case (2) 19/5219/2
authorwym_libra <yimin.wang@huawei.com>
Mon, 7 Dec 2015 08:02:18 +0000 (16:02 +0800)
committerqi liang <liangqi1@huawei.com>
Sun, 10 Jan 2016 03:16:07 +0000 (03:16 +0000)
commit2733defda816a84d2b9c2e361a5970b9de4923f4
treeab4a5507c4100cec6485ba9d587aca8728e8d1c7
parentd93f6ca5bf0d4f22ec0fd90eac1bf8b9c09db820
Rewrite the HA test case (2)

idea: refact the Monitor class in old file "monitor.py" with the base
class and sub-class.
detail:
1) the BaseMonitor is the base class of other monitor
2) each monitor run in independent process
3) there are two monitor("openstack-cmd" and "process") for the first test case
4) MonitorMgr class used to manager monitor process

JIRA: YARDSTICK-149

Change-Id: I2eede94481f740812212e6cb673d175b5f543c15
Signed-off-by: wym_libra <yimin.wang@huawei.com>
15 files changed:
samples/serviceha.yaml
setup.py
tests/unit/benchmark/scenarios/availability/test_basemonitor.py [new file with mode: 0644]
tests/unit/benchmark/scenarios/availability/test_monitor.py [deleted file]
tests/unit/benchmark/scenarios/availability/test_monitor_command.py [new file with mode: 0644]
tests/unit/benchmark/scenarios/availability/test_monitor_process.py [new file with mode: 0644]
tests/unit/benchmark/scenarios/availability/test_serviceha.py
yardstick/benchmark/scenarios/availability/monitor.py [deleted file]
yardstick/benchmark/scenarios/availability/monitor/__init__.py [new file with mode: 0755]
yardstick/benchmark/scenarios/availability/monitor/basemonitor.py [new file with mode: 0644]
yardstick/benchmark/scenarios/availability/monitor/monitor_command.py [new file with mode: 0644]
yardstick/benchmark/scenarios/availability/monitor/monitor_conf.yaml [new file with mode: 0644]
yardstick/benchmark/scenarios/availability/monitor/monitor_process.py [new file with mode: 0644]
yardstick/benchmark/scenarios/availability/monitor/script_tools/check_service.bash [new file with mode: 0755]
yardstick/benchmark/scenarios/availability/serviceha.py