Merge "Add API to update hosts info about SUT"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc001.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB 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 TC001 config file;
14     Measure network throughput using pktgen;
15     Different amounts of flows are tested with, from 2 up to 1001000;
16     All tests are run twice. First twice with the least amount of ports and further on.
17
18 scenarios:
19 {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
20 -
21   type: Pktgen
22   options:
23     packetsize: 64
24     number_of_ports: {{num_ports}}
25     duration: 20
26
27   host: demeter.yardstick
28   target: poseidon.yardstick
29
30   runner:
31     type: Iteration
32     iterations: 2
33     interval: 1
34
35   sla:
36     max_ppm: 1000
37     action: monitor
38 {% endfor %}
39
40 context:
41   name: yardstick
42   image: yardstick-image
43   flavor: yardstick-flavor
44   user: ubuntu
45
46   placement_groups:
47     pgrp1:
48       policy: "availability"
49
50   servers:
51     demeter:
52       floating_ip: true
53       placement: "pgrp1"
54     poseidon:
55       floating_ip: true
56       placement: "pgrp1"
57
58   networks:
59     test:
60       cidr: '10.0.1.0/24'