Merge "model: pylint fixes"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc049.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 TC049 :Control node Openstack service down - swift proxy.
14
15 {% set file = file or 'etc/yardstick/nodes/fuel_baremetal/pod.yaml' %}
16
17 scenarios:
18 -
19   type: ServiceHA
20   options:
21     attackers:
22     - fault_type: "kill-process"
23       process_name: "swift-proxy"
24       host: node1
25
26     monitors:
27     - monitor_type: "openstack-cmd"
28       command_name: "swift stat"
29       monitor_time: 10
30       sla:
31         max_outage_time: 5
32     - monitor_type: "process"
33       process_name: "swift-proxy"
34       host: node1
35       monitor_time: 20
36       sla:
37         max_recover_time: 20
38
39   nodes:
40     node1: node1.LF
41
42   runner:
43     type: Duration
44     duration: 1
45   sla:
46     outage_time: 5
47     action: monitor
48
49
50 context:
51   type: Node
52   name: LF
53   file: {{file}}