aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 54ca1fefb77f17215ba47ccc42aa95ff3ea2d059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[tox]
minversion = 2.0
skipsdist = True
envlist = py27,py3

[testenv]
usedevelop=True
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps = -rrequirements.txt
commands = /bin/bash ./run_tests.sh
whitelist_externals = /bin/bash


[testenv:py27]
# don't re-run coverage on both py27 py3, it takes too long
setenv =
    SKIP_COVERAGE=1

[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# The rest of the ignores are TODOs
# New from hacking 0.9: E129, E131, H407, H405
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301

# nova flake8 ignores
#ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
# dovetail flake8 ignores
ignore = E123,E125,H803
max-line-length = 99
exclude =  .venv,.git,.tox,dist,docs,*egg,build
pan> # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## --- schema: "yardstick:task:0.1" description: > Yardstick TC072 config file; Measure network throughput and packet loss using pktgen; Different amounts of flows are tested with, from 2 up to 1001000; All tests are run 2 times each. First 2 times with the least amount of ports, then 2 times with the next amount of ports, and so on until all packet sizes have been run with; During the measurements network usage statistics and network latency are recorded/measured using sar and ping, respectively; {% set provider = provider or none %} {% set physical_network = physical_network or 'physnet1' %} {% set segmentation_id = segmentation_id or none %} scenarios: - type: NetUtilization run_in_background: true options: interval: 1 count: 10 host: demeter.yardstick-TC072 - type: NetUtilization run_in_background: true options: interval: 1 count: 10 host: poseidon.yardstick-TC072 - type: Ping run_in_background: true options: packetsize: 100 host: demeter.yardstick-TC072 target: poseidon.yardstick-TC072 sla: max_rtt: 10 action: monitor {% for num_ports in [1, 10, 50, 100, 300, 500, 750, 1000] %} - type: Pktgen options: packetsize: 64 number_of_ports: {{num_ports}} duration: 20 host: demeter.yardstick-TC072 target: poseidon.yardstick-TC072 runner: type: Iteration iterations: 2 interval: 1 sla: max_ppm: 1000 action: monitor {% endfor %} context: name: yardstick-TC072 image: yardstick-image flavor: yardstick-flavor user: ubuntu placement_groups: pgrp1: policy: "availability" servers: demeter: floating_ip: true placement: "pgrp1" poseidon: floating_ip: true placement: "pgrp1" networks: test: cidr: '10.0.1.0/24' {% if provider == "vlan" %} provider: {{provider}} physical_network: {{physical_network}} {% if segmentation_id %} segmentation_id: {{segmentation_id}} {% endif %} {% endif %}