Merge "Record test case names when run a task using API"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc002.yaml
1 ##############################################################################
2 # Copyright (c) 2017 kristian.hunt@gmail.com 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 TC002 config file;
14     measure network latency using ping;
15
16 {% set image = image or "cirros-0.3.3" %}
17 scenarios:
18 {% for i in range(2) %}
19 -
20   type: Ping
21   options:
22     packetsize: 100
23   host: athena.demo
24   target: ares.demo
25
26   runner:
27     type: Duration
28     duration: 60
29     interval: 10
30
31   sla:
32     max_rtt: 10
33     action: monitor
34 {% endfor %}
35
36 context:
37   name: demo
38   image: {{image}}
39   flavor: yardstick-flavor
40   user: cirros
41
42   placement_groups:
43     pgrp1:
44       policy: "availability"
45
46   servers:
47     athena:
48       floating_ip: true
49       placement: "pgrp1"
50     ares:
51       placement: "pgrp1"
52
53   networks:
54     test:
55       cidr: '10.0.1.0/24'