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:
Sean Sullivan
2025-05-16 14:49:40 -04:00
committed by GitHub
parent 94764a1f17
commit eb96d5d984
4 changed files with 40 additions and 4 deletions

View File

@@ -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:

View File

@@ -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