Merge "ci in huawei-pod1 do not run test case after tc074"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc008.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 TC008 config file;
14     Measure network throughput and packet loss using Pktgen;
15     Different amount of flows, from 2 up to 1001000, in combination
16     with different packet sizes are run in each test.
17     Each combination of packet size and flow amount is run 10 times.
18     First 10 times with the smallest packet size, starting with the
19     least amount of ports/flows, then next amount of ports with same
20     packet size, and so on. The test sequence continues with the next
21     packet size, with same ports/flows sequence as before.
22
23 scenarios:
24 {% for pkt_size in [64, 128, 256, 512, 1024, 1280, 1518] %}
25   {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
26 -
27   type: Pktgen
28   options:
29     packetsize: {{pkt_size}}
30     number_of_ports: {{num_ports}}
31     duration: 20
32
33   host: demeter.yardstick-TC008
34   target: poseidon.yardstick-TC008
35
36   runner:
37     type: Iteration
38     iterations: 10
39     interval: 1
40
41   sla:
42     max_ppm: 1000
43     action: monitor
44   {% endfor %}
45 {% endfor %}
46
47 context:
48   name: yardstick-TC008
49   image: yardstick-image
50   flavor: yardstick-flavor
51   user: ubuntu
52
53   placement_groups:
54     pgrp1:
55       policy: "availability"
56
57   servers:
58     demeter:
59       floating_ip: true
60       placement: "pgrp1"
61     poseidon:
62       floating_ip: true
63       placement: "pgrp1"
64
65   networks:
66     test:
67       cidr: '10.0.1.0/24'