Split Yardstick CLI with Yardstick core logic 77/26577/4
authorchenjiankun <chenjiankun1@huawei.com>
Thu, 29 Dec 2016 11:45:12 +0000 (11:45 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Fri, 30 Dec 2016 16:55:11 +0000 (16:55 +0000)
commit57011bd0769f54a98b90d489df0f38751ca76c0e
treeed6b3259a9bf9af4519c328acb9aa03d080b3acb
parent26071f849bd08aa289792346c7821374acb6c696
Split Yardstick CLI with Yardstick core logic

JIRA: YARDSTICK-511

We need to unify yardstick entry. Now the solution is using CLI call API
as nova do.
This is the first step: coupling the yardstick core logic from CLI.
Moving the core logic to yardstick/benchmark/core and the CLI using a
object to call yardstick core logic.

Change-Id: I84f10d2134635880c281cc63212a8533f2dd7d4e
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
20 files changed:
tests/unit/benchmark/core/__init__.py [moved from tests/unit/cmd/commands/__init__.py with 100% similarity]
tests/unit/benchmark/core/no_constraint_no_args_scenario_sample.yaml [moved from tests/unit/cmd/commands/no_constraint_no_args_scenario_sample.yaml with 100% similarity]
tests/unit/benchmark/core/no_constraint_with_args_scenario_sample.yaml [moved from tests/unit/cmd/commands/no_constraint_with_args_scenario_sample.yaml with 100% similarity]
tests/unit/benchmark/core/test_plugin.py [moved from tests/unit/cmd/commands/test_plugin.py with 80% similarity]
tests/unit/benchmark/core/test_task.py [moved from tests/unit/cmd/commands/test_task.py with 69% similarity]
tests/unit/benchmark/core/test_testcase.py [moved from tests/unit/cmd/commands/test_testcase.py with 62% similarity]
tests/unit/benchmark/core/with_constraint_no_args_scenario_sample.yaml [moved from tests/unit/cmd/commands/with_constraint_no_args_scenario_sample.yaml with 100% similarity]
tests/unit/benchmark/core/with_constraint_with_args_scenario_sample.yaml [moved from tests/unit/cmd/commands/with_constraint_with_args_scenario_sample.yaml with 100% similarity]
yardstick/benchmark/core/__init__.py [new file with mode: 0644]
yardstick/benchmark/core/plugin.py [new file with mode: 0644]
yardstick/benchmark/core/runner.py [new file with mode: 0644]
yardstick/benchmark/core/scenario.py [new file with mode: 0644]
yardstick/benchmark/core/task.py [new file with mode: 0644]
yardstick/benchmark/core/testcase.py [new file with mode: 0644]
yardstick/cmd/commands/__init__.py
yardstick/cmd/commands/plugin.py
yardstick/cmd/commands/runner.py
yardstick/cmd/commands/scenario.py
yardstick/cmd/commands/task.py
yardstick/cmd/commands/testcase.py