Merge "ci in huawei-pod1 do not run test case after tc074"
[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 scenarios:
17   -
18     type: "GeneralHA"
19     options:
20       attackers:
21         -
22           fault_type: "general-attacker"
23           host: node1
24           key: "block-io"
25           attack_key: "block-io"
26
27       monitors:
28         -
29           monitor_type: "openstack-cmd"
30           key: "nova-flavor-list"
31           command_name: "openstack flavor list"
32           monitor_time: 10
33           sla:
34             max_outage_time: 5
35
36       operations:
37         -
38           operation_type: "general-operation"
39           key: "create-flavor"
40           operation_key: "nova-create-flavor"
41           host: node1
42           action_parameter:
43             flavorconfig: "test-001 test-001 100 1 1"
44           rollback_parameter:
45             flavorid: "test-001"
46
47       resultCheckers:
48         -
49           checker_type: "general-result-checker"
50           key: "check-flavor"
51           host: node1
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: etc/yardstick/nodes/fuel_virtual/pod.yaml