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:
parent
114faba249
commit
b11e8aa30d
@ -55,7 +55,7 @@ class TaskTestCase(unittest.TestCase):
|
|||||||
"description": "The first subtask in dummy task",
|
"description": "The first subtask in dummy task",
|
||||||
"tags": ["dummy", "functional_test"],
|
"tags": ["dummy", "functional_test"],
|
||||||
"run_in_parallel": False,
|
"run_in_parallel": False,
|
||||||
"scenarios": [{
|
"workloads": [{
|
||||||
"name": "Dummy.dummy",
|
"name": "Dummy.dummy",
|
||||||
"args": {
|
"args": {
|
||||||
"sleep": 0
|
"sleep": 0
|
||||||
@ -79,7 +79,7 @@ class TaskTestCase(unittest.TestCase):
|
|||||||
"description": "The second subtask in dummy task",
|
"description": "The second subtask in dummy task",
|
||||||
"tags": ["dummy", "functional_test"],
|
"tags": ["dummy", "functional_test"],
|
||||||
"run_in_parallel": False,
|
"run_in_parallel": False,
|
||||||
"scenarios": [{
|
"workloads": [{
|
||||||
"name": "Dummy.dummy",
|
"name": "Dummy.dummy",
|
||||||
"args": {
|
"args": {
|
||||||
"sleep": 1
|
"sleep": 1
|
||||||
|
Loading…
Reference in New Issue
Block a user