Merge "unify pod keywork so api can easily used"
[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/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           monitor_number: 3
36           sla:
37             max_outage_time: 5
38
39       operations:
40         -
41           operation_type: "general-operation"
42           key: "create-flavor"
43           operation_key: "nova-create-flavor"
44           action_parameter:
45             flavorconfig: "test-001 test-001 100 1 1"
46           rollback_parameter:
47             flavorid: "test-001"
48
49       resultCheckers:
50         -
51           checker_type: "general-result-checker"
52           key: "check-flavor"
53           checker_key: "nova-flavor-checker"
54           expectedValue: "test-001"
55           condition: "in"
56
57       steps:
58         -
59           actionKey: "block-io"
60           actionType: "attacker"
61           index: 1
62
63         -
64           actionKey: "nova-flavor-list"
65           actionType: "monitor"
66           index: 2
67
68         -
69           actionKey: "create-flavor"
70           actionType: "operation"
71           index: 3
72
73         -
74           actionKey: "check-flavor"
75           actionType: "resultchecker"
76           index: 4
77
78     nodes:
79       node1: node1.LF
80     runner:
81       type: Duration
82       duration: 1
83     sla:
84       outage_time: 5
85       action: monitor
86
87 context:
88   type: Node
89   name: LF
90   file: {{file}}