mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
remove workflow test
* We now handle workflows with jobs that have errored. We treat them the same as a failure result. Before, we would abort the workflow when we encountered an error.
This commit is contained in:
@@ -77,13 +77,6 @@ class TestWorkflowDAGFunctional(TransactionTestCase):
|
|||||||
self.assertTrue(is_done)
|
self.assertTrue(is_done)
|
||||||
self.assertTrue(has_failed)
|
self.assertTrue(has_failed)
|
||||||
|
|
||||||
def test_workflow_fails_for_unfinished_node(self):
|
|
||||||
wfj = self.workflow_job(states=['error', None, None, None, None])
|
|
||||||
dag = WorkflowDAG(workflow_job=wfj)
|
|
||||||
is_done, has_failed = dag.is_workflow_done()
|
|
||||||
self.assertTrue(is_done)
|
|
||||||
self.assertTrue(has_failed)
|
|
||||||
|
|
||||||
def test_workflow_fails_for_no_error_handler(self):
|
def test_workflow_fails_for_no_error_handler(self):
|
||||||
wfj = self.workflow_job(states=['successful', 'failed', None, None, None])
|
wfj = self.workflow_job(states=['successful', 'failed', None, None, None])
|
||||||
dag = WorkflowDAG(workflow_job=wfj)
|
dag = WorkflowDAG(workflow_job=wfj)
|
||||||
|
|||||||
Reference in New Issue
Block a user