mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
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:
parent
e231e08869
commit
1cfbc02d98
@ -40,7 +40,7 @@
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'DNE' in results.msg"
|
||||
- "'dne' in (results.msg | lower)"
|
||||
|
||||
- name: Create our hosts
|
||||
host:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user