Merge "BugFix: Adopt to latest result structure while parsing the results"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc054.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 TC054 :OpenStack VIP Master Node abnormally shutdown High Availability;
14     This test case is written by new scenario-based HA testing framework.
15
16 scenarios:
17   -
18     type: "GeneralHA"
19     options:
20       attackers:
21         -
22           fault_type: "bare-metal-down"
23           host: node1
24           key: "bare-metal-down"
25
26       monitors:
27         -
28           monitor_type: "openstack-cmd"
29           key: "list-images"
30           command_name: "openstack image list"
31           monitor_time: 10
32           sla:
33             max_outage_time: 5
34
35         -
36           monitor_type: "general-monitor"
37           monitor_key: "ip-status"
38           key: "vip-mgmt-status"
39           host: node2
40           monitor_time: 10
41           sla:
42             max_outage_time: 5
43           parameter:
44             ip_address: "192.168.0.2"
45
46         -
47           monitor_type: "general-monitor"
48           monitor_key: "ip-status"
49           key: "vip-routerp-status"
50           host: node2
51           monitor_time: 10
52           sla:
53             max_outage_time: 5
54           parameter:
55             ip_address: "172.16.0.2"
56
57         -
58           monitor_type: "general-monitor"
59           monitor_key: "ip-status"
60           key: "vip-router-status"
61           host: node2
62           monitor_time: 10
63           sla:
64             max_outage_time: 5
65           parameter:
66             ip_address: "192.168.0.1"
67
68         -
69           monitor_type: "general-monitor"
70           monitor_key: "ip-status"
71           key: "vip-pub"
72           host: node2
73           monitor_time: 10
74           sla:
75             max_outage_time: 5
76           parameter:
77             ip_address: "172.16.0.3"
78
79
80       steps:
81         -
82           actionKey: "bare-metal-down"
83           actionType: "attacker"
84           index: 1
85         -
86           actionKey: "list-images"
87           actionType: "monitor"
88           index: 2
89
90         -
91           actionKey: "vip-mgmt-status"
92           actionType: "monitor"
93           index: 3
94
95         -
96           actionKey: "vip-routerp-status"
97           actionType: "monitor"
98           index: 4
99
100         -
101           actionKey: "vip-router-status"
102           actionType: "monitor"
103           index: 5
104
105         -
106           actionKey: "vip-pub"
107           actionType: "monitor"
108           index: 6
109
110     nodes:
111       node1: node1.LF
112       node2: node2.LF
113     runner:
114       type: Duration
115       duration: 1
116     sla:
117       outage_time: 5
118       action: monitor
119
120 context:
121   type: Node
122   name: LF
123   file: etc/yardstick/nodes/fuel_virtual/pod.yaml