Merge "Test case: Fio volume benchmark testcase using job file"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc053.yaml
1 ##############################################################################
2 # Copyright (c) 2017 14_ykl@tongji.edu.cn and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10
11 schema: "yardstick:task:0.1"
12 description: >
13     Test case for TC053 :Openstack Controller Load Balance Service High Availability;
14     This test case is written by new scenario-based HA testing framework.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17
18 scenarios:
19   -
20     type: "GeneralHA"
21     options:
22       attackers:
23         -
24           fault_type: "kill-process"
25           host: node1
26           key: "kill-process"
27           process_name: "haproxy"
28
29       monitors:
30         -
31           monitor_type: "process"
32           key: "service-status"
33           process_name: "haproxy"
34           host: node1
35           monitor_time: 20
36           monitor_number: 3
37           sla:
38             max_recover_time: 20
39
40         -
41           monitor_type: "openstack-cmd"
42           key: "list-images"
43           command_name: "openstack image list"
44           monitor_time: 10
45           monitor_number: 3
46           sla:
47             max_outage_time: 5
48
49       steps:
50         -
51           actionKey: "kill-process"
52           actionType: "attacker"
53           index: 1
54         -
55           actionKey: "service-status"
56           actionType: "monitor"
57           index: 2
58         -
59           actionKey: "list-images"
60           actionType: "monitor"
61           index: 3
62
63     nodes:
64       node1: node1.LF
65     runner:
66       type: Duration
67       duration: 1
68     sla:
69       outage_time: 5
70       action: monitor
71
72 context:
73   type: Node
74   name: LF
75   file: {{file}}