Bugfix: Support HA test cases in TripleO
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc052.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 TC052 :OpenStack Controller Node Disk I/O Block High Availability;
14     This test case is written by new scenario-based HA testing framework.
15
16 {% set file = file or 'etc/yardstick/nodes/fuel_baremetal/pod.yaml' %}
17
18 scenarios:
19   -
20     type: "GeneralHA"
21     options:
22       attackers:
23         -
24           fault_type: "general-attacker"
25           host: node1
26           key: "block-io"
27           attack_key: "block-io"
28
29       monitors:
30         -
31           monitor_type: "openstack-cmd"
32           key: "nova-flavor-list"
33           command_name: "openstack flavor list"
34           monitor_time: 10
35           sla:
36             max_outage_time: 5
37
38       operations:
39         -
40           operation_type: "general-operation"
41           key: "create-flavor"
42           operation_key: "nova-create-flavor"
43           action_parameter:
44             flavorconfig: "test-001 test-001 100 1 1"
45           rollback_parameter:
46             flavorid: "test-001"
47
48       resultCheckers:
49         -
50           checker_type: "general-result-checker"
51           key: "check-flavor"
52           checker_key: "nova-flavor-checker"
53           expectedValue: "test-001"
54           condition: "in"
55
56       steps:
57         -
58           actionKey: "block-io"
59           actionType: "attacker"
60           index: 1
61
62         -
63           actionKey: "nova-flavor-list"
64           actionType: "monitor"
65           index: 2
66
67         -
68           actionKey: "create-flavor"
69           actionType: "operation"
70           index: 3
71
72         -
73           actionKey: "check-flavor"
74           actionType: "resultchecker"
75           index: 4
76
77     nodes:
78       node1: node1.LF
79     runner:
80       type: Duration
81       duration: 1
82     sla:
83       outage_time: 5
84       action: monitor
85
86 context:
87   type: Node
88   name: LF
89   file: {{file}}