Add functional tests to task detailed with errors
Add functional test for cli testcase `rally task detailed` with errors Change-Id: I81c872c5c6c6df6f3ac255927c78d976a6b9314d
This commit is contained in:
parent
7727c6d023
commit
2d97ff3cbe
@ -124,6 +124,26 @@ class TaskTestCase(unittest.TestCase):
|
||||
self.assertIn("2. dummy_fail_test (2)", detailed_iterations_data)
|
||||
self.assertNotIn("n/a", detailed_iterations_data)
|
||||
|
||||
def test_detailed_with_errors(self):
|
||||
rally = utils.Rally()
|
||||
cfg = {
|
||||
"Dummy.dummy_exception": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 1,
|
||||
"concurrency": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
config = utils.TaskConfig(cfg)
|
||||
output = rally("task start --task %s" % config.filename)
|
||||
uuid = re.search(
|
||||
r"(?P<uuid>[0-9a-f\-]{36}): started", output).group("uuid")
|
||||
output = rally("task detailed")
|
||||
self.assertIn("Task %s has 1 error(s)" % uuid, output)
|
||||
|
||||
def test_detailed_no_atomic_actions(self):
|
||||
rally = utils.Rally()
|
||||
cfg = {
|
||||
|
Loading…
Reference in New Issue
Block a user