From 1e3e9b5d7ff40eb6921e60dc1a3254e8c984a08c Mon Sep 17 00:00:00 2001 From: QiLiang Date: Thu, 15 Oct 2015 14:24:27 +0800 Subject: Heat context code refactor Heat context code refactor to cater for the evolution of the Yardstick framework. At test_case.yaml context segment add "type" to indicate the context type, see samples/ping-heat-context.yaml for an example. And the default context type is Heat, so the existing yaml file do not need to change. JIRA: YARDSTICK-168 Change-Id: Ida0ce12c17cd9b88d7acfb4c9eb1ac6986394b38 Signed-off-by: QiLiang --- samples/ping-heat-context.yaml | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 samples/ping-heat-context.yaml (limited to 'samples/ping-heat-context.yaml') diff --git a/samples/ping-heat-context.yaml b/samples/ping-heat-context.yaml new file mode 100644 index 000000000..5a8d09fbe --- /dev/null +++ b/samples/ping-heat-context.yaml @@ -0,0 +1,45 @@ +--- +# Sample benchmark task config file +# measure network latency using ping + +schema: "yardstick:task:0.1" + +scenarios: +- + type: Ping + options: + packetsize: 200 + host: athena.demo + target: ares.demo + + runner: + type: Duration + duration: 60 + interval: 1 + + sla: + max_rtt: 10 + action: monitor + +context: + type: Heat + name: demo + image: cirros-0.3.3 + flavor: m1.tiny + user: cirros + + placement_groups: + pgrp1: + policy: "availability" + + servers: + athena: + floating_ip: true + placement: "pgrp1" + ares: + placement: "pgrp1" + + networks: + test: + cidr: '10.0.1.0/24' + -- cgit 1.2.3-korg