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