mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
Puting tasks back to natural order
This commit is contained in:
committed by
beeankha
parent
8b26ff1fe6
commit
6403895eae
@@ -6,12 +6,7 @@
|
|||||||
|
|
||||||
- name: Generate names
|
- name: Generate names
|
||||||
set_fact:
|
set_fact:
|
||||||
wfjt_name1: "Testing Workflow Job Launch" #"AWX-Collection-tests-tower_workflow_launch--wfjt1-{{ test_id }}"
|
wfjt_name1: "AWX-Collection-tests-tower_workflow_launch--wfjt1-{{ test_id }}"
|
||||||
|
|
||||||
- name: Clean up test workflow from any previous runs
|
|
||||||
tower_workflow_job_template:
|
|
||||||
name: "{{ wfjt_name1 }}"
|
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: Create our workflow
|
- name: Create our workflow
|
||||||
tower_workflow_job_template:
|
tower_workflow_job_template:
|
||||||
@@ -50,18 +45,6 @@
|
|||||||
- result is not failed
|
- result is not failed
|
||||||
- "'id' in result['job_info']"
|
- "'id' in result['job_info']"
|
||||||
|
|
||||||
- name: Kick off a workflow and wait for it
|
|
||||||
tower_workflow_launch:
|
|
||||||
validate_certs: false
|
|
||||||
workflow_template: "{{ wfjt_name1 }}"
|
|
||||||
ignore_errors: true
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- assert:
|
|
||||||
that:
|
|
||||||
- result is not failed
|
|
||||||
- "'id' in result['job_info']"
|
|
||||||
|
|
||||||
- name: Kick off a workflow and wait for it, but only for a second
|
- name: Kick off a workflow and wait for it, but only for a second
|
||||||
tower_workflow_launch:
|
tower_workflow_launch:
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
@@ -74,3 +57,21 @@
|
|||||||
that:
|
that:
|
||||||
- result is failed
|
- result is failed
|
||||||
- "'Monitoring aborted due to timeout' in result.msg"
|
- "'Monitoring aborted due to timeout' in result.msg"
|
||||||
|
|
||||||
|
- name: Kick off a workflow and wait for it
|
||||||
|
tower_workflow_launch:
|
||||||
|
validate_certs: false
|
||||||
|
workflow_template: "{{ wfjt_name1 }}"
|
||||||
|
ignore_errors: true
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- result is not failed
|
||||||
|
- "'id' in result['job_info']"
|
||||||
|
|
||||||
|
- name: Clean up test workflow
|
||||||
|
tower_workflow_job_template:
|
||||||
|
name: "{{ wfjt_name1 }}"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user