diff options
author | softwarefactory-project-zuul[bot] <33884098+softwarefactory-project-zuul[bot]@users.noreply.github.com> | 2020-10-21 17:08:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 17:08:01 +0200 |
commit | 447bc4b4da306ee6e50c4744619c0007f0a16dbd (patch) | |
tree | 187a5cbf6d254cc66a63f46b0d3c3c0e740054c6 /awx_collection/tests | |
parent | Merge pull request #8348 from nesanton/feature/8347 (diff) | |
parent | Merge pull request #18 from ansible/devel (diff) | |
download | awx-447bc4b4da306ee6e50c4744619c0007f0a16dbd.tar.xz awx-447bc4b4da306ee6e50c4744619c0007f0a16dbd.zip |
Merge pull request #8364 from sean-m-sullivan/workflow_approval
Workflow approval
Reviewed-by: Bianca Henderson <beeankha@gmail.com>
https://github.com/beeankha
Diffstat (limited to 'awx_collection/tests')
-rw-r--r-- | awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml b/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml index 393fbe33da..1542b42029 100644 --- a/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml @@ -9,6 +9,7 @@ demo_project_name: "AWX-Collection-tests-tower_workflow_job_template-proj-{{ test_id }}" jt1_name: "AWX-Collection-tests-tower_workflow_job_template-jt1-{{ test_id }}" jt2_name: "AWX-Collection-tests-tower_workflow_job_template-jt2-{{ test_id }}" + approval_node_name: "AWX-Collection-tests-tower_workflow_approval_node-{{ test_id }}" lab1: "AWX-Collection-tests-tower_job_template-lab1-{{ test_id }}" wfjt_name: "AWX-Collection-tests-tower_workflow_job_template-wfjt-{{ test_id }}" email_not: "AWX-Collection-tests-tower_job_template-email-not-{{ test_id }}" @@ -145,6 +146,44 @@ unified_job_template: "{{ jt1_name }}" workflow: "{{ wfjt_name }}" +- name: Fail if no name is set for approval + tower_workflow_job_template_node: + identifier: approval_test + approval_node: + description: "{{ approval_node_name }}" + workflow: "{{ wfjt_name }}" + register: no_name_results + ignore_errors: true + +- assert: + that: + - "no_name_results.msg == 'Approval node name is required to create approval node.'" + +- name: Create approval node + tower_workflow_job_template_node: + identifier: approval_test + approval_node: + name: "{{ approval_node_name }}" + timeout: 900 + workflow: "{{ wfjt_name }}" + +- name: Create link for root node + tower_workflow_job_template_node: + identifier: root + workflow: "{{ wfjt_name }}" + success_nodes: + - approval_test + always_nodes: + - leaf + +- name: Delete approval node + tower_workflow_job_template_node: + identifier: approval_test + approval_node: + name: "{{ approval_node_name }}" + state: absent + workflow: "{{ wfjt_name }}" + - name: Add started notifications to workflow job template tower_workflow_job_template: name: "{{ wfjt_name }}" |