Add test case related to measure compute score and its energy consumption impact
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc045.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     Yardstick TC045 config file;
14     HA test case: Control node Openstack service down - neutron-server.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or "node1" %}
18 {% set attack_process = attack_process or "neutron-server" %}
19
20 scenarios:
21 -
22   type: ServiceHA
23   options:
24     attackers:
25     - fault_type: "kill-process"
26       process_name: "{{ attack_process }}"
27       host: {{attack_host}}
28
29     monitors:
30     - monitor_type: "openstack-cmd"
31       command_name: "openstack router list"
32       monitor_time: 10
33       monitor_number: 3
34       sla:
35         max_outage_time: 5
36     - monitor_type: "process"
37       process_name: "{{ attack_process }}"
38       host: {{attack_host}}
39       monitor_time: 30
40       monitor_number: 3
41
42   nodes:
43     {{attack_host}}: {{attack_host}}.LF
44
45   runner:
46     type: Duration
47     duration: 1
48   sla:
49     outage_time: 5
50     action: monitor
51
52
53 context:
54   type: Node
55   name: LF
56   file: {{file}}
57