Keeping this old behavior will mean that any tasks that are not updated
to use set_status() and still simply set success=False will still be
able to properly report their failures.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
log.debug('\n '.join(['Config:', ] + yaml.safe_dump(
ctx.config, default_flow_style=False).splitlines()))
- ctx.summary = dict(status='pass')
- set_status(ctx.summary, 'pass')
+ ctx.summary = dict(success=True)
ctx.summary['owner'] = ctx.owner
summary = dict()
job_status.set_status(summary, None)
assert summary == dict()
+
+ def test_legacy_fail(self):
+ summary = dict(success=True)
+ summary['success'] = False
+ status = job_status.get_status(summary)
+ assert status == 'fail'