Merge "Add task-args(from yaml file) candidates in /api/v2/yardstick/testcases 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.5" %}
17
18 {% set provider = provider or none %}
19 {% set physical_network = physical_network or 'physnet1' %}
20 {% set segmentation_id = segmentation_id or none %}
21
22 scenarios:
23 {% for i in range(2) %}
24 -
25   type: Ping
26   options:
27     packetsize: 100
28   host: athena.demo
29   target: ares.demo
30
31   runner:
32     type: Duration
33     duration: 60
34     interval: 10
35
36   sla:
37     max_rtt: 10
38     action: monitor
39 {% endfor %}
40
41 context:
42   name: demo
43   image: {{image}}
44   flavor: yardstick-flavor
45   user: cirros
46
47   placement_groups:
48     pgrp1:
49       policy: "availability"
50
51   servers:
52     athena:
53       floating_ip: true
54       placement: "pgrp1"
55     ares:
56       placement: "pgrp1"
57
58   networks:
59     test:
60       cidr: '10.0.1.0/24'
61       {% if provider == "vlan" %}
62       provider: {{provider}}
63       physical_network: {{physical_network}}
64         {% if segmentation_id %}
65       segmentation_id: {{segmentation_id}}
66         {% endif %}
67       {% endif %}