Merge "Add ability to reuse existing OpenStack set-up"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc081.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei 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
12 schema: "yardstick:task:0.1"
13 description: >
14     Yardstick TC081 config file;
15     measure network latency between container and VM using ping;
16
17
18 scenarios:
19 -
20   type: Ping
21   options:
22     packetsize: 200
23
24   host: host-k8s
25   target: target.openstack
26
27   runner:
28     type: Duration
29     duration: 60
30     interval: 1
31
32   sla:
33     max_rtt: 10
34     action: monitor
35
36 contexts:
37 -
38   type: Kubernetes
39   name: k8s
40
41   servers:
42     host:
43       image: openretriever/yardstick
44       command: /bin/bash
45       args: ['-c', 'chmod 700 ~/.ssh; chmod 600 ~/.ssh/*; service ssh restart;while true ; do sleep 10000; done']
46 -
47   type: Heat
48   name: openstack
49   image: yardstick-image
50   flavor: yardstick-flavor
51   user: ubuntu
52
53   servers:
54     target:
55       floating_ip: true
56
57   networks:
58     test:
59       cidr: '10.0.1.0/24'