Add Workload object

The patch introduces Workload model
instead of regular dict that was used to describe
scenario configuration in TaskEngine.
As a side effect it allows to fix subtask representaion
in generated reports and other rally outputs.

Change-Id: I62148707c89f575f83da11e34d0d193e716e8249
This commit is contained in:
Illia Khudoshyn 2015-11-24 10:42:04 +00:00
parent 114faba249
commit b11e8aa30d

View File

@ -55,7 +55,7 @@ class TaskTestCase(unittest.TestCase):
"description": "The first subtask in dummy task",
"tags": ["dummy", "functional_test"],
"run_in_parallel": False,
"scenarios": [{
"workloads": [{
"name": "Dummy.dummy",
"args": {
"sleep": 0
@ -79,7 +79,7 @@ class TaskTestCase(unittest.TestCase):
"description": "The second subtask in dummy task",
"tags": ["dummy", "functional_test"],
"run_in_parallel": False,
"scenarios": [{
"workloads": [{
"name": "Dummy.dummy",
"args": {
"sleep": 1