Collection test fixes from prompting changes

DNE can sometimes be dne depending on versions, fixing test to find either

Adding additional node to Demo Inventory for job slice counting
This commit is contained in:
John Westcott IV 2022-09-22 09:07:28 -04:00 committed by Alan Rominger
parent e231e08869
commit 1cfbc02d98
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559
2 changed files with 21 additions and 1 deletions

View File

@ -40,7 +40,7 @@
- assert:
that:
- "'DNE' in results.msg"
- "'dne' in (results.msg | lower)"
- name: Create our hosts
host:

View File

@ -25,6 +25,7 @@
label2: "AWX-Collection-tests-workflow_job_template-l2-{{ test_id }}"
ig1: "AWX-Collection-tests-workflow_job_template-ig1-{{ test_id }}"
ig2: "AWX-Collection-tests-workflow_job_template-ig2-{{ test_id }}"
host1: "AWX-Collection-tests-workflow_job_template-h1-{{ test_id }}"
- block:
- name: "Create a new organization"
@ -150,6 +151,18 @@
that:
- "project_inv_source_result is changed"
- name: Add a node to demo inventory so we can use a slice count properly
host:
name: "{{ host1 }}"
inventory: Demo Inventory
variables:
ansible_connection: local
register: results
- assert:
that:
- "result is changed"
- name: Create a Job Template
job_template:
name: "{{ jt1_name }}"
@ -908,3 +921,10 @@
name: "{{ org_name }}"
state: absent
ignore_errors: True
- name: Remove node
host:
name: "{{ host1 }}"
inventory: Demo Inventory
state: absent
ignore_errors: True