Bugfix:HA test cases rely on dynamic ip addresses in fuel pods
[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           host: node1
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           host: node1
54           checker_key: "nova-flavor-checker"
55           expectedValue: "test-001"
56           condition: "in"
57
58       steps:
59         -
60           actionKey: "block-io"
61           actionType: "attacker"
62           index: 1
63
64         -
65           actionKey: "nova-flavor-list"
66           actionType: "monitor"
67           index: 2
68
69         -
70           actionKey: "create-flavor"
71           actionType: "operation"
72           index: 3
73
74         -
75           actionKey: "check-flavor"
76           actionType: "resultchecker"
77           index: 4
78
79     nodes:
80       node1: node1.LF
81     runner:
82       type: Duration
83       duration: 1
84     sla:
85       outage_time: 5
86       action: monitor
87
88 context:
89   type: Node
90   name: LF
91   file: {{file}}