Rewrite the HA test case (2) 15/6015/1
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:17:21 +0000 (03:17 +0000)
commit93e5a8fefd2574de339d2f1ae2041b9d233bbc7b
treeab4a5507c4100cec6485ba9d587aca8728e8d1c7
parent9b792a92f1f0b67159de52f8bd6b94806b35ae7b
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>
(cherry picked from commit 2733defda816a84d2b9c2e361a5970b9de4923f4)
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