mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 23:47:28 -02:30
ad_hoc_command_cancel really can no longer timeout on a cancel (it happens sub second) and remove unneeded block Modified all test to respect test_id parameter so that all tests can be run togeather as a single ID Fix a check in group since its group2 is deleted from being a sub group of group1 The UI now allows to propage sub groups to the inventory which we may want to support within the collection Only run instance integration test if we are running on k8s and assume we are not by default Fix hard coded names in manual_project
33 lines
762 B
YAML
33 lines
762 B
YAML
---
|
|
- name: Generate a test ID
|
|
set_fact:
|
|
test_id: "{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
|
when: test_id is not defined
|
|
|
|
- name: Generate names
|
|
set_fact:
|
|
label_name: "AWX-Collection-tests-label-label-{{ test_id }}"
|
|
|
|
- name: Create a Label
|
|
label:
|
|
name: "{{ label_name }}"
|
|
organization: Default
|
|
state: present
|
|
|
|
- name: Check module fails with correct msg
|
|
label:
|
|
name: "Test Label"
|
|
organization: "Non_existing_org"
|
|
state: present
|
|
register: result
|
|
ignore_errors: true
|
|
|
|
- assert:
|
|
that:
|
|
- "result is failed"
|
|
- "result is not changed"
|
|
- "'Non_existing_org' in result.msg"
|
|
- "result.total_results == 0"
|
|
|
|
# You can't delete a label directly so no cleanup is necessary
|