diff options
author | QiLiang <liangqi1@huawei.com> | 2015-10-15 14:24:27 +0800 |
---|---|---|
committer | QiLiang <liangqi1@huawei.com> | 2015-10-20 11:35:26 +0800 |
commit | 1e3e9b5d7ff40eb6921e60dc1a3254e8c984a08c (patch) | |
tree | 92b1e8e81ddb0b2a0cf7e7f38688ebaf1d409f8f /samples | |
parent | 8069fee968b73833d314b41f004c8f1cb1ab6c28 (diff) |
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 <liangqi1@huawei.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/ping-heat-context.yaml | 45 |
1 files changed, 45 insertions, 0 deletions
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' + |