mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
fix chicken egg issue with workflow nodes and inventory sources for parents that do not exist (#15982)
fix chicken egg issue with workflow nodes and inventory sources for parents that do not exist
This commit is contained in:
@@ -121,6 +121,22 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Attempt to delete an inventory source from an inventory that does not exist
|
||||
inventory_source:
|
||||
name: "{{ inv_source3 }}"
|
||||
source: scm
|
||||
state: absent
|
||||
source_project: "{{ project_name }}"
|
||||
source_path: inventories/create_100_hosts.ini
|
||||
description: Source for Test inventory
|
||||
organization: Default
|
||||
inventory: Does not exist
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is not changed"
|
||||
|
||||
always:
|
||||
- name: Delete Inventory
|
||||
inventory:
|
||||
|
||||
@@ -428,6 +428,18 @@
|
||||
that:
|
||||
- "results is changed"
|
||||
|
||||
- name: Remove a node from a workflow that does not exist.
|
||||
workflow_job_template_node:
|
||||
identifier: root
|
||||
unified_job_template: "{{ jt1_name }}"
|
||||
workflow: Does not exist
|
||||
state: absent
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "results is not changed"
|
||||
|
||||
- name: Create root node
|
||||
workflow_job_template_node:
|
||||
identifier: root
|
||||
|
||||
Reference in New Issue
Block a user