mirror of
https://github.com/ansible/awx.git
synced 2026-10-31 14:36:17 -02: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:
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- "'DNE' in results.msg"
|
- "'dne' in (results.msg | lower)"
|
||||||
|
|
||||||
- name: Create our hosts
|
- name: Create our hosts
|
||||||
host:
|
host:
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
label2: "AWX-Collection-tests-workflow_job_template-l2-{{ test_id }}"
|
label2: "AWX-Collection-tests-workflow_job_template-l2-{{ test_id }}"
|
||||||
ig1: "AWX-Collection-tests-workflow_job_template-ig1-{{ test_id }}"
|
ig1: "AWX-Collection-tests-workflow_job_template-ig1-{{ test_id }}"
|
||||||
ig2: "AWX-Collection-tests-workflow_job_template-ig2-{{ test_id }}"
|
ig2: "AWX-Collection-tests-workflow_job_template-ig2-{{ test_id }}"
|
||||||
|
host1: "AWX-Collection-tests-workflow_job_template-h1-{{ test_id }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "Create a new organization"
|
- name: "Create a new organization"
|
||||||
@@ -150,6 +151,18 @@
|
|||||||
that:
|
that:
|
||||||
- "project_inv_source_result is changed"
|
- "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
|
- name: Create a Job Template
|
||||||
job_template:
|
job_template:
|
||||||
name: "{{ jt1_name }}"
|
name: "{{ jt1_name }}"
|
||||||
@@ -908,3 +921,10 @@
|
|||||||
name: "{{ org_name }}"
|
name: "{{ org_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
|
||||||
|
- name: Remove node
|
||||||
|
host:
|
||||||
|
name: "{{ host1 }}"
|
||||||
|
inventory: Demo Inventory
|
||||||
|
state: absent
|
||||||
|
ignore_errors: True
|
||||||
|
|||||||
Reference in New Issue
Block a user