Heat context code refactor 49/2549/5
authorQiLiang <liangqi1@huawei.com>
Thu, 15 Oct 2015 06:24:27 +0000 (14:24 +0800)
committerQiLiang <liangqi1@huawei.com>
Tue, 20 Oct 2015 03:35:26 +0000 (11:35 +0800)
commit1e3e9b5d7ff40eb6921e60dc1a3254e8c984a08c
tree92b1e8e81ddb0b2a0cf7e7f38688ebaf1d409f8f
parent8069fee968b73833d314b41f004c8f1cb1ab6c28
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>
samples/ping-heat-context.yaml [new file with mode: 0644]
tests/unit/benchmark/contexts/__init__.py [moved from tests/unit/benchmark/context/__init__.py with 100% similarity]
tests/unit/benchmark/contexts/test_heat.py [new file with mode: 0644]
tests/unit/benchmark/contexts/test_model.py [moved from tests/unit/benchmark/context/test_model.py with 57% similarity]
yardstick/benchmark/__init__.py
yardstick/benchmark/context/model.py [deleted file]
yardstick/benchmark/contexts/__init__.py [moved from yardstick/benchmark/context/__init__.py with 100% similarity]
yardstick/benchmark/contexts/base.py [new file with mode: 0644]
yardstick/benchmark/contexts/heat.py [new file with mode: 0644]
yardstick/benchmark/contexts/model.py [new file with mode: 0644]
yardstick/cmd/commands/task.py