Merge "[Yardstick-233]latency measurment by using pktgen-dpdk"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc053.yaml
1 ---
2 # Test case for TC053 :Openstack Controller Load Balance Service High Availability
3 # This test case is written by new scenario-based HA testing framework
4
5 schema: "yardstick:task:0.1"
6 scenarios:
7   -
8     type: "GeneralHA"
9     options:
10       attackers:
11         -
12           fault_type: "kill-process"
13           host: node1
14           key: "kill-process"
15           process_name: "haproxy"
16
17       monitors:
18         -
19           monitor_type: "process"
20           key: "service-status"
21           process_name: "haproxy"
22           host: node1
23           monitor_time: 20
24           sla:
25             max_recover_time: 30
26
27         -
28           monitor_type: "openstack-cmd"
29           key: "list-images"
30           command_name: "nova image-list"
31           monitor_time: 10
32           sla:
33             max_outage_time: 5
34
35       steps:
36         -
37           actionKey: "kill-process"
38           actionType: "attacker"
39           index: 1
40         -
41           actionKey: "service-status"
42           actionType: "monitor"
43           index: 2
44         -
45           actionKey: "list-images"
46           actionType: "monitor"
47           index: 3
48
49     nodes:
50       node1: node1.LF
51     runner:
52       type: Duration
53       duration: 1
54     sla:
55       outage_time: 5
56       action: monitor
57
58 context:
59   type: Node
60   name: LF
61   file: etc/yardstick/nodes/fuel_virtual/pod.yaml