Merge "Fix up formatting on devguide"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc084.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd 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 TC084 config file;
14     Measure CPU performance using SPEC CPU2006 in Virtual machines;
15
16 {% set provider = provider or none %}
17 {% set physical_network = physical_network or 'physnet1' %}
18 {% set segmentation_id = segmentation_id or none %}
19
20 {% set benchmark = benchmark or 'int' %}
21 {% set runspec_iterations = runspec_iterations or 1 %}
22 {% set runspec_tune = runspec_tune or 'base' %}
23 {% set runspec_size = runspec_size or 'ref' %}
24 {% set runspec_rate = runspec_rate or 1 %}
25
26 scenarios:
27 -
28   type: SpecCPU2006_for_VM
29
30   options:
31       SPECint_benchmark: {{benchmark}}
32       runspec_iterations: {{runspec_iterations}}
33       runspec_tune: {{runspec_tune}}
34       runspec_size: {{runspec_size}}
35       runspec_rate: {{runspec_rate}}
36
37   host: spec.yardstick-TC084
38
39   runner:
40     type: Iteration
41     iterations: 1
42
43 context:
44   name: yardstick-TC084
45   image: yardstick-image
46   flavor: yardstick-flavor
47   user: ubuntu
48
49   placement_groups:
50     pgrp1:
51       policy: "availability"
52
53   servers:
54     spec:
55       floating_ip: true
56       placement: "pgrp1"
57
58   networks:
59     test:
60       cidr: '10.0.1.0/24'
61       {% if provider == "vlan" or provider == "sriov" %}
62       provider: {{provider}}
63       physical_network: {{physical_network}}
64         {% if segmentation_id %}
65       segmentation_id: {{segmentation_id}}
66         {% endif %}
67       {% endif %}