mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
mostly includes renaming non-syntax references to tower
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
inv_name: "AWX-Collection-tests-tower_tower_ad_hoc_command-inventory-{{ test_id }}"
|
||||
ssh_cred_name: "AWX-Collection-tests-tower_tower_ad_hoc_command-ssh-cred-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-tower_tower_ad_hoc_command-org-{{ test_id }}"
|
||||
inv_name: "AWX-Collection-tests-ad_hoc_command-inventory-{{ test_id }}"
|
||||
ssh_cred_name: "AWX-Collection-tests-ad_hoc_command-ssh-cred-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-ad_hoc_command-org-{{ test_id }}"
|
||||
|
||||
- name: Create a New Organization
|
||||
organization:
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
inv_name: "AWX-Collection-tests-tower_tower_ad_hoc_command_cancel-inventory-{{ test_id }}"
|
||||
ssh_cred_name: "AWX-Collection-tests-tower_tower_ad_hoc_command_cancel-ssh-cred-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-tower_tower_ad_hoc_command_cancel-org-{{ test_id }}"
|
||||
inv_name: "AWX-Collection-tests-ad_hoc_command_cancel-inventory-{{ test_id }}"
|
||||
ssh_cred_name: "AWX-Collection-tests-ad_hoc_command_cancel-ssh-cred-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-ad_hoc_command_cancel-org-{{ test_id }}"
|
||||
|
||||
- name: Create a New Organization
|
||||
organization:
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
inv_name: "AWX-Collection-tests-tower_ad_hoc_command_wait-inventory-{{ test_id }}"
|
||||
ssh_cred_name: "AWX-Collection-tests-tower_ad_hoc_command_wait-ssh-cred-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-tower_ad_hoc_command_wait-org-{{ test_id }}"
|
||||
inv_name: "AWX-Collection-tests-ad_hoc_command_wait-inventory-{{ test_id }}"
|
||||
ssh_cred_name: "AWX-Collection-tests-ad_hoc_command_wait-ssh-cred-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-ad_hoc_command_wait-org-{{ test_id }}"
|
||||
|
||||
- name: Create a New Organization
|
||||
organization:
|
||||
@@ -43,7 +43,7 @@
|
||||
- assert:
|
||||
that:
|
||||
- result is failed
|
||||
- "result.msg == 'Unable to wait on ad hoc command 99999999; that ID does not exist in Tower.'"
|
||||
- "result.msg == 'Unable to wait on ad hoc command 99999999; that ID does not exist.'"
|
||||
|
||||
- name: Launch command module with sleep 10
|
||||
ad_hoc_command:
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
app1_name: "AWX-Collection-tests-tower_application-app1-{{ test_id }}"
|
||||
app2_name: "AWX-Collection-tests-tower_application-app2-{{ test_id }}"
|
||||
app3_name: "AWX-Collection-tests-tower_application-app3-{{ test_id }}"
|
||||
app1_name: "AWX-Collection-tests-application-app1-{{ test_id }}"
|
||||
app2_name: "AWX-Collection-tests-application-app2-{{ test_id }}"
|
||||
app3_name: "AWX-Collection-tests-application-app3-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
- name: Create an application
|
||||
|
||||
@@ -6,23 +6,23 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
ssh_cred_name1: "AWX-Collection-tests-tower_credential-ssh-cred1-{{ test_id }}"
|
||||
ssh_cred_name2: "AWX-Collection-tests-tower_credential-ssh-cred2-{{ test_id }}"
|
||||
ssh_cred_name3: "AWX-Collection-tests-tower_credential-ssh-cred-lookup-source-{{ test_id }}"
|
||||
ssh_cred_name4: "AWX-Collection-tests-tower_credential-ssh-cred-file-source-{{ test_id }}"
|
||||
vault_cred_name1: "AWX-Collection-tests-tower_credential-vault-cred1-{{ test_id }}"
|
||||
vault_cred_name2: "AWX-Collection-tests-tower_credential-vault-ssh-cred1-{{ test_id }}"
|
||||
net_cred_name1: "AWX-Collection-tests-tower_credential-net-cred1-{{ test_id }}"
|
||||
scm_cred_name1: "AWX-Collection-tests-tower_credential-scm-cred1-{{ test_id }}"
|
||||
aws_cred_name1: "AWX-Collection-tests-tower_credential-aws-cred1-{{ test_id }}"
|
||||
vmware_cred_name1: "AWX-Collection-tests-tower_credential-vmware-cred1-{{ test_id }}"
|
||||
sat6_cred_name1: "AWX-Collection-tests-tower_credential-sat6-cred1-{{ test_id }}"
|
||||
gce_cred_name1: "AWX-Collection-tests-tower_credential-gce-cred1-{{ test_id }}"
|
||||
azurerm_cred_name1: "AWX-Collection-tests-tower_credential-azurerm-cred1-{{ test_id }}"
|
||||
openstack_cred_name1: "AWX-Collection-tests-tower_credential-openstack-cred1-{{ test_id }}"
|
||||
rhv_cred_name1: "AWX-Collection-tests-tower_credential-rhv-cred1-{{ test_id }}"
|
||||
insights_cred_name1: "AWX-Collection-tests-tower_credential-insights-cred1-{{ test_id }}"
|
||||
tower_cred_name1: "AWX-Collection-tests-tower_credential-tower-cred1-{{ test_id }}"
|
||||
ssh_cred_name1: "AWX-Collection-tests-credential-ssh-cred1-{{ test_id }}"
|
||||
ssh_cred_name2: "AWX-Collection-tests-credential-ssh-cred2-{{ test_id }}"
|
||||
ssh_cred_name3: "AWX-Collection-tests-credential-ssh-cred-lookup-source-{{ test_id }}"
|
||||
ssh_cred_name4: "AWX-Collection-tests-credential-ssh-cred-file-source-{{ test_id }}"
|
||||
vault_cred_name1: "AWX-Collection-tests-credential-vault-cred1-{{ test_id }}"
|
||||
vault_cred_name2: "AWX-Collection-tests-credential-vault-ssh-cred1-{{ test_id }}"
|
||||
net_cred_name1: "AWX-Collection-tests-credential-net-cred1-{{ test_id }}"
|
||||
scm_cred_name1: "AWX-Collection-tests-credential-scm-cred1-{{ test_id }}"
|
||||
aws_cred_name1: "AWX-Collection-tests-credential-aws-cred1-{{ test_id }}"
|
||||
vmware_cred_name1: "AWX-Collection-tests-credential-vmware-cred1-{{ test_id }}"
|
||||
sat6_cred_name1: "AWX-Collection-tests-credential-sat6-cred1-{{ test_id }}"
|
||||
gce_cred_name1: "AWX-Collection-tests-credential-gce-cred1-{{ test_id }}"
|
||||
azurerm_cred_name1: "AWX-Collection-tests-credential-azurerm-cred1-{{ test_id }}"
|
||||
openstack_cred_name1: "AWX-Collection-tests-credential-openstack-cred1-{{ test_id }}"
|
||||
rhv_cred_name1: "AWX-Collection-tests-credential-rhv-cred1-{{ test_id }}"
|
||||
insights_cred_name1: "AWX-Collection-tests-credential-insights-cred1-{{ test_id }}"
|
||||
tower_cred_name1: "AWX-Collection-tests-credential-tower-cred1-{{ test_id }}"
|
||||
|
||||
- name: create a tempdir for an SSH key
|
||||
local_action: shell mktemp -d
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
src_cred_name: "AWX-Collection-tests-tower_credential_input_source-src_cred-{{ test_id }}"
|
||||
target_cred_name: "AWX-Collection-tests-tower_credential_input_source-target_cred-{{ test_id }}"
|
||||
src_cred_name: "AWX-Collection-tests-credential_input_source-src_cred-{{ test_id }}"
|
||||
target_cred_name: "AWX-Collection-tests-credential_input_source-target_cred-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
- name: Add Tower credential Lookup
|
||||
- name: Add credential Lookup
|
||||
credential:
|
||||
description: Credential for Testing Source
|
||||
name: "{{ src_cred_name }}"
|
||||
@@ -25,7 +25,7 @@
|
||||
that:
|
||||
- "src_cred_result is changed"
|
||||
|
||||
- name: Add Tower credential Target
|
||||
- name: Add credential Target
|
||||
credential:
|
||||
description: Credential for Testing Target
|
||||
name: "{{ target_cred_name }}"
|
||||
@@ -54,7 +54,7 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Add Second Tower credential Lookup
|
||||
- name: Add Second credential Lookup
|
||||
credential:
|
||||
description: Credential for Testing Source Change
|
||||
name: "{{ src_cred_name }}-2"
|
||||
@@ -77,7 +77,7 @@
|
||||
- "result is changed"
|
||||
|
||||
always:
|
||||
- name: Remove a Tower credential source
|
||||
- name: Remove a credential source
|
||||
credential_input_source:
|
||||
input_field_name: password
|
||||
target_credential: "{{ target_cred_name }}"
|
||||
@@ -88,7 +88,7 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Remove Tower credential Lookup
|
||||
- name: Remove credential Lookup
|
||||
credential:
|
||||
name: "{{ src_cred_name }}"
|
||||
organization: Default
|
||||
@@ -96,7 +96,7 @@
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
- name: Remove Alt Tower credential Lookup
|
||||
- name: Remove Alt credential Lookup
|
||||
credential:
|
||||
name: "{{ src_cred_name }}-2"
|
||||
organization: Default
|
||||
@@ -104,7 +104,7 @@
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
- name: Remove Tower credential
|
||||
- name: Remove credential
|
||||
credential:
|
||||
name: "{{ target_cred_name }}"
|
||||
organization: Default
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
cred_type_name: "AWX-Collection-tests-tower_credential_type-cred-type-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
cred_type_name: "AWX-Collection-tests-credential_type-cred-type-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Add Tower credential type
|
||||
credential_type:
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
org_name1: "AWX-Collection-tests-tower_export-organization-{{ test_id }}"
|
||||
org_name2: "AWX-Collection-tests-tower_export-organization2-{{ test_id }}"
|
||||
inventory_name1: "AWX-Collection-tests-tower_export-inv1-{{ test_id }}"
|
||||
org_name1: "AWX-Collection-tests-export-organization-{{ test_id }}"
|
||||
org_name2: "AWX-Collection-tests-export-organization2-{{ test_id }}"
|
||||
inventory_name1: "AWX-Collection-tests-export-inv1-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
- name: Create some organizations
|
||||
@@ -23,7 +23,7 @@
|
||||
name: "{{ inventory_name1 }}"
|
||||
organization: "{{ org_name1 }}"
|
||||
|
||||
- name: Export all tower assets
|
||||
- name: Export all assets
|
||||
export:
|
||||
all: true
|
||||
register: all_assets
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
group_name1: "AWX-Collection-tests-tower_group-group-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
group_name2: "AWX-Collection-tests-tower_group-group-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
group_name3: "AWX-Collection-tests-tower_group-group-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
inv_name: "AWX-Collection-test-tower_group-inv-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
host_name1: "AWX-Collection-test-tower_group-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
host_name2: "AWX-Collection-test-tower_group-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
host_name3: "AWX-Collection-test-tower_group-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
group_name1: "AWX-Collection-tests-group-group-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
group_name2: "AWX-Collection-tests-group-group-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
group_name3: "AWX-Collection-tests-group-group-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
inv_name: "AWX-Collection-tests-group-inv-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
host_name1: "AWX-Collection-tests-group-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
host_name2: "AWX-Collection-tests-group-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
host_name3: "AWX-Collection-tests-group-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Create an Inventory
|
||||
inventory:
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
host_name: "AWX-Collection-tests-tower_host-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
inv_name: "AWX-Collection-tests-tower_host-inv-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
host_name: "AWX-Collection-tests-host-host-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
inv_name: "AWX-Collection-tests-host-inv-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Create an Inventory
|
||||
inventory:
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
org_name1: "AWX-Collection-tests-tower_import-organization-{{ test_id }}"
|
||||
org_name2: "AWX-Collection-tests-tower_import-organization2-{{ test_id }}"
|
||||
org_name1: "AWX-Collection-tests-import-organization-{{ test_id }}"
|
||||
org_name2: "AWX-Collection-tests-import-organization2-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
- name: "Import something"
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
group_name1: "AWX-Collection-tests-tower_instance_group-group1-{{ test_id }}"
|
||||
group_name2: "AWX-Collection-tests-tower_instance_group-group2-{{ test_id }}"
|
||||
cred_name1: "AWX-Collection-tests-tower_instance_group-cred1-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-instance_group-group1-{{ test_id }}"
|
||||
group_name2: "AWX-Collection-tests-instance_group-group2-{{ test_id }}"
|
||||
cred_name1: "AWX-Collection-tests-instance_group-cred1-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
- name: Create an OpenShift Credential
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
inv_name1: "AWX-Collection-tests-tower_inventory-inv1-{{ test_id }}"
|
||||
inv_name2: "AWX-Collection-tests-tower_inventory-inv2-{{ test_id }}"
|
||||
cred_name1: "AWX-Collection-tests-tower_inventory-cred1-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-tower_instance_group-group1-{{ test_id }}"
|
||||
inv_name1: "AWX-Collection-tests-inventory-inv1-{{ test_id }}"
|
||||
inv_name2: "AWX-Collection-tests-inventory-inv2-{{ test_id }}"
|
||||
cred_name1: "AWX-Collection-tests-inventory-cred1-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-instance_group-group1-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
openstack_cred: "AWX-Collection-tests-tower_inventory_source-cred-openstack-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
openstack_inv: "AWX-Collection-tests-tower_inventory_source-inv-openstack-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
openstack_inv_source: "AWX-Collection-tests-tower_inventory_source-inv-source-openstack-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
openstack_cred: "AWX-Collection-tests-inventory_source-cred-openstack-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
openstack_inv: "AWX-Collection-tests-inventory_source-inv-openstack-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
openstack_inv_source: "AWX-Collection-tests-inventory_source-inv-source-openstack-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Add a Tower credential
|
||||
- name: Add a credential
|
||||
credential:
|
||||
description: Credentials for Openstack Test project
|
||||
name: "{{ openstack_cred }}"
|
||||
@@ -18,7 +18,7 @@
|
||||
domain: test
|
||||
register: credential_result
|
||||
|
||||
- name: Add a Tower inventory
|
||||
- name: Add an inventory
|
||||
inventory:
|
||||
description: Test inventory
|
||||
organization: Default
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
project_name: "AWX-Collection-tests-tower_inventory_source_update-project-{{ test_id }}"
|
||||
inv_name: "AWX-Collection-tests-tower_inventory_source_update-inv-{{ test_id }}"
|
||||
inv_source1: "AWX-Collection-tests-tower_inventory_source_update-source1-{{ test_id }}"
|
||||
inv_source2: "AWX-Collection-tests-tower_inventory_source_update-source2-{{ test_id }}"
|
||||
inv_source3: "AWX-Collection-tests-tower_inventory_source_update-source3-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-tower_inventory_source_update-org-{{ test_id }}"
|
||||
project_name: "AWX-Collection-tests-inventory_source_update-project-{{ test_id }}"
|
||||
inv_name: "AWX-Collection-tests-inventory_source_update-inv-{{ test_id }}"
|
||||
inv_source1: "AWX-Collection-tests-inventory_source_update-source1-{{ test_id }}"
|
||||
inv_source2: "AWX-Collection-tests-inventory_source_update-source2-{{ test_id }}"
|
||||
inv_source3: "AWX-Collection-tests-inventory_source_update-source3-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-inventory_source_update-org-{{ test_id }}"
|
||||
|
||||
|
||||
- block:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
jt_name1: "AWX-Collection-tests-tower_job_launch-jt1-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
jt_name2: "AWX-Collection-tests-tower_job_launch-jt2-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
proj_name: "AWX-Collection-tests-tower_job_launch-project-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
jt_name1: "AWX-Collection-tests-job_launch-jt1-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
jt_name2: "AWX-Collection-tests-job_launch-jt2-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
proj_name: "AWX-Collection-tests-job_launch-project-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Launch a Job Template
|
||||
job_launch:
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
|
||||
- name: generate random string for project
|
||||
set_fact:
|
||||
org_name: "AWX-Collection-tests-tower_organization-org-{{ test_id }}"
|
||||
cred1: "AWX-Collection-tests-tower_job_template-cred1-{{ test_id }}"
|
||||
cred2: "AWX-Collection-tests-tower_job_template-cred2-{{ test_id }}"
|
||||
cred3: "AWX-Collection-tests-tower_job_template-cred3-{{ test_id }}"
|
||||
proj1: "AWX-Collection-tests-tower_job_template-proj-{{ test_id }}"
|
||||
jt1: "AWX-Collection-tests-tower_job_template-jt1-{{ test_id }}"
|
||||
jt2: "AWX-Collection-tests-tower_job_template-jt2-{{ test_id }}"
|
||||
lab1: "AWX-Collection-tests-tower_job_template-lab1-{{ test_id }}"
|
||||
email_not: "AWX-Collection-tests-tower_job_template-email-not-{{ test_id }}"
|
||||
webhook_not: "AWX-Collection-tests-tower_notification_template-wehbook-not-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-tower_instance_group-group1-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-organization-org-{{ test_id }}"
|
||||
cred1: "AWX-Collection-tests-job_template-cred1-{{ test_id }}"
|
||||
cred2: "AWX-Collection-tests-job_template-cred2-{{ test_id }}"
|
||||
cred3: "AWX-Collection-tests-job_template-cred3-{{ test_id }}"
|
||||
proj1: "AWX-Collection-tests-job_template-proj-{{ test_id }}"
|
||||
jt1: "AWX-Collection-tests-job_template-jt1-{{ test_id }}"
|
||||
jt2: "AWX-Collection-tests-job_template-jt2-{{ test_id }}"
|
||||
lab1: "AWX-Collection-tests-job_template-lab1-{{ test_id }}"
|
||||
email_not: "AWX-Collection-tests-job_template-email-not-{{ test_id }}"
|
||||
webhook_not: "AWX-Collection-tests-notification_template-wehbook-not-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-instance_group-group1-{{ test_id }}"
|
||||
|
||||
- name: "Create a new organization"
|
||||
tower_organization:
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: Generate random string for template and project
|
||||
set_fact:
|
||||
jt_name: "AWX-Collection-tests-tower_job_wait-long_running-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
proj_name: "AWX-Collection-tests-tower_job_wait-long_running-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
jt_name: "AWX-Collection-tests-job_wait-long_running-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
proj_name: "AWX-Collection-tests-job_wait-long_running-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Assure that the demo project exists
|
||||
project:
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.msg =='Unable to wait on job 99999999; that ID does not exist in Tower.' or
|
||||
- "result.msg =='Unable to wait on job 99999999; that ID does not exist.' or
|
||||
'min and max interval have been depricated, please use interval instead, interval will be set to 12'"
|
||||
|
||||
- name: Check module fails with correct msg
|
||||
@@ -58,7 +58,7 @@
|
||||
that:
|
||||
- result is failed
|
||||
- "result.msg =='Unable to wait, no job_id 99999999 found: The requested object could not be found.' or
|
||||
'Unable to wait on job 99999999; that ID does not exist in Tower.'"
|
||||
'Unable to wait on job 99999999; that ID does not exist.'"
|
||||
|
||||
- name: Launch Demo Job Template (take happy path)
|
||||
job_launch:
|
||||
@@ -136,7 +136,7 @@
|
||||
organization: Default
|
||||
state: absent
|
||||
|
||||
# tower workflow wait test
|
||||
# workflow wait test
|
||||
- name: Generate a random string for test
|
||||
set_fact:
|
||||
test_id1: "{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
wfjt_name2: "AWX-Collection-tests-tower_workflow_launch--wfjt1-{{ test_id1 }}"
|
||||
wfjt_name2: "AWX-Collection-tests-workflow_launch--wfjt1-{{ test_id1 }}"
|
||||
|
||||
- name: Create our workflow
|
||||
workflow_job_template:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
label_name: "AWX-Collection-tests-tower_label-label-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
label_name: "AWX-Collection-tests-label-label-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Create a Label
|
||||
label:
|
||||
|
||||
@@ -7,21 +7,21 @@
|
||||
- name: Generate usernames
|
||||
set_fact:
|
||||
usernames:
|
||||
- "AWX-Collection-tests-tower_api_lookup-user1-{{ test_id }}"
|
||||
- "AWX-Collection-tests-tower_api_lookup-user2-{{ test_id }}"
|
||||
- "AWX-Collection-tests-tower_api_lookup-user3-{{ test_id }}"
|
||||
- "AWX-Collection-tests-api_lookup-user1-{{ test_id }}"
|
||||
- "AWX-Collection-tests-api_lookup-user2-{{ test_id }}"
|
||||
- "AWX-Collection-tests-api_lookup-user3-{{ test_id }}"
|
||||
hosts:
|
||||
- "AWX-Collection-tests-tower_api_lookup-host1-{{ test_id }}"
|
||||
- "AWX-Collection-tests-tower_api_lookup-host2-{{ test_id }}"
|
||||
group_name: "AWX-Collection-tests-tower_api_lookup-group1-{{ test_id }}"
|
||||
- "AWX-Collection-tests-api_lookup-host1-{{ test_id }}"
|
||||
- "AWX-Collection-tests-api_lookup-host2-{{ test_id }}"
|
||||
group_name: "AWX-Collection-tests-api_lookup-group1-{{ test_id }}"
|
||||
|
||||
- name: Get our collection package
|
||||
controller_meta:
|
||||
register: tower_meta
|
||||
register: controller_meta
|
||||
|
||||
- name: Generate the name of our plugin
|
||||
set_fact:
|
||||
plugin_name: "{{ tower_meta.prefix }}.controller_api"
|
||||
plugin_name: "{{ controller_meta.prefix }}.controller_api"
|
||||
|
||||
- name: Create all of our users
|
||||
user:
|
||||
@@ -177,11 +177,11 @@
|
||||
# DOCS Example Tests
|
||||
- name: Load the UI settings
|
||||
set_fact:
|
||||
tower_settings: "{{ lookup('awx.awx.controller_api', 'settings/ui') }}"
|
||||
controller_settings: "{{ lookup('awx.awx.controller_api', 'settings/ui') }}"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'CUSTOM_LOGO' in tower_settings"
|
||||
- "'CUSTOM_LOGO' in controller_settings"
|
||||
|
||||
- name: Display the usernames of all admin users
|
||||
debug:
|
||||
@@ -205,12 +205,12 @@
|
||||
role: admin
|
||||
user: "{{ usernames[0] }}"
|
||||
state: absent
|
||||
register: tower_role_revoke
|
||||
register: role_revoke
|
||||
when: "query('awx.awx.controller_api', 'users', query_params={ 'username': 'DNE_TESTING' }) | length == 1"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- tower_role_revoke is skipped
|
||||
- role_revoke is skipped
|
||||
|
||||
- name: Create an inventory group with all 'foo' hosts
|
||||
group:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
slack_not: "AWX-Collection-tests-tower_notification_template-slack-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
webhook_not: "AWX-Collection-tests-tower_notification_template-wehbook-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
email_not: "AWX-Collection-tests-tower_notification_template-email-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
twillo_not: "AWX-Collection-tests-tower_notification_template-twillo-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
pd_not: "AWX-Collection-tests-tower_notification_template-pd-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
irc_not: "AWX-Collection-tests-tower_notification_template-irc-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
slack_not: "AWX-Collection-tests-notification_template-slack-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
webhook_not: "AWX-Collection-tests-notification_template-wehbook-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
email_not: "AWX-Collection-tests-notification_template-email-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
twillo_not: "AWX-Collection-tests-notification_template-twillo-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
pd_not: "AWX-Collection-tests-notification_template-pd-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
irc_not: "AWX-Collection-tests-notification_template-irc-not-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Test deprecation warnings with legacy name
|
||||
notification_template:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
- name: Generate an org name
|
||||
set_fact:
|
||||
org_name: "AWX-Collection-tests-tower_organization-org-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-tower_instance_group-group1-{{ test_id }}"
|
||||
org_name: "AWX-Collection-tests-organization-org-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-instance_group-group1-{{ test_id }}"
|
||||
|
||||
- name: Make sure {{ org_name }} is not there
|
||||
organization:
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
project_name1: "AWX-Collection-tests-tower_project-project1-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
project_name2: "AWX-Collection-tests-tower_project-project2-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
project_name3: "AWX-Collection-tests-tower_project-project3-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
jt1: "AWX-Collection-tests-tower_project-jt1-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
scm_cred_name: "AWX-Collection-tests-tower_project-scm-cred-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
org_name: "AWX-Collection-tests-tower_project-org-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
cred_name: "AWX-Collection-tests-tower_project-cred-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
project_name1: "AWX-Collection-tests-project-project1-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
project_name2: "AWX-Collection-tests-project-project2-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
project_name3: "AWX-Collection-tests-project-project3-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
jt1: "AWX-Collection-tests-project-jt1-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
scm_cred_name: "AWX-Collection-tests-project-scm-cred-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
org_name: "AWX-Collection-tests-project-org-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
cred_name: "AWX-Collection-tests-project-cred-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- block:
|
||||
- name: Create an SCM Credential
|
||||
@@ -77,7 +77,7 @@
|
||||
scm_credential: "{{ cred_name }}"
|
||||
check_mode: true
|
||||
|
||||
- name: "Copy tower project from {{ project_name1 }}"
|
||||
- name: "Copy project from {{ project_name1 }}"
|
||||
project:
|
||||
name: "{{ project_name2 }}"
|
||||
copy_from: "{{ project_name1 }}"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
- name: Load the UI settings
|
||||
set_fact:
|
||||
project_base_dir: "{{ tower_settings.project_base_dir }}"
|
||||
project_base_dir: "{{ controller_settings.project_base_dir }}"
|
||||
vars:
|
||||
tower_settings: "{{ lookup('awx.awx.controller_api', 'config/') }}"
|
||||
controller_settings: "{{ lookup('awx.awx.controller_api', 'config/') }}"
|
||||
|
||||
- inventory:
|
||||
name: localhost
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
project_name1: "AWX-Collection-tests-tower_project_update-project-{{ test_id }}"
|
||||
project_name1: "AWX-Collection-tests-project_update-project-{{ test_id }}"
|
||||
|
||||
- name: Create a git project without credentials without waiting
|
||||
project:
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
username: "AWX-Collection-tests-tower_role-user-{{ test_id }}"
|
||||
project_name: "AWX-Collection-tests-tower_role-project-1-{{ test_id }}"
|
||||
jt1: "AWX-Collection-tests-tower_role-jt1-{{ test_id }}"
|
||||
jt2: "AWX-Collection-tests-tower_role-jt2-{{ test_id }}"
|
||||
wfjt_name: "AWX-Collection-tests-tower_role-project-wfjt-{{ test_id }}"
|
||||
username: "AWX-Collection-tests-role-user-{{ test_id }}"
|
||||
project_name: "AWX-Collection-tests-role-project-1-{{ test_id }}"
|
||||
jt1: "AWX-Collection-tests-role-jt1-{{ test_id }}"
|
||||
jt2: "AWX-Collection-tests-role-jt2-{{ test_id }}"
|
||||
wfjt_name: "AWX-Collection-tests-role-project-wfjt-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
- name: Create a User
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- name: generate random string for project
|
||||
set_fact:
|
||||
sched1: "AWX-Collection-tests-tower_schedule-sched1-{{ test_id }}"
|
||||
sched1: "AWX-Collection-tests-schedule-sched1-{{ test_id }}"
|
||||
|
||||
- name: Try to create without an rrule
|
||||
schedule:
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
- name: Get our collection package
|
||||
controller_meta:
|
||||
register: tower_meta
|
||||
register: controller_meta
|
||||
|
||||
- name: Generate the name of our plugin
|
||||
set_fact:
|
||||
plugin_name: "{{ tower_meta.prefix }}.tower_schedule_rrule"
|
||||
plugin_name: "{{ controller_meta.prefix }}.schedule_rrule"
|
||||
|
||||
- name: Test too many params (failure from validation of terms)
|
||||
debug:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
name: AWX_ISOLATION_SHOW_PATHS
|
||||
value: '["/var/lib/awx/projects/"]'
|
||||
|
||||
- name: Set the value of AWX_ISOLATION_SHOW_PATHS to get an error back from Tower
|
||||
- name: Set the value of AWX_ISOLATION_SHOW_PATHS to get an error back from the controller
|
||||
settings:
|
||||
settings:
|
||||
AWX_ISOLATION_SHOW_PATHS:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
team_name: "AWX-Collection-tests-tower_team-team-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
team_name: "AWX-Collection-tests-team-team-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Attempt to add a Tower team to a non-existant Organization
|
||||
- name: Attempt to add a team to a non-existant Organization
|
||||
team:
|
||||
name: Test Team
|
||||
organization: Missing_Organization
|
||||
@@ -11,7 +11,7 @@
|
||||
register: result
|
||||
ignore_errors: true
|
||||
|
||||
- name: Assert a meaningful error was provided for the failed Tower team creation
|
||||
- name: Assert a meaningful error was provided for the failed team creation
|
||||
assert:
|
||||
that:
|
||||
- "result is failed"
|
||||
@@ -19,7 +19,7 @@
|
||||
- "'Missing_Organization' in result.msg"
|
||||
- "result.total_results == 0"
|
||||
|
||||
- name: Create a Tower team
|
||||
- name: Create a team
|
||||
team:
|
||||
name: "{{ team_name }}"
|
||||
organization: Default
|
||||
@@ -29,7 +29,7 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Delete a Tower team
|
||||
- name: Delete a team
|
||||
team:
|
||||
name: "{{ team_name }}"
|
||||
organization: Default
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
token_description: "AWX-Collection-tests-tower_token-description-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
token_description: "AWX-Collection-tests-token-description-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Try to use a token as a dict which is missing the token parameter
|
||||
job_list:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
username: "AWX-Collection-tests-tower_user-user-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
username: "AWX-Collection-tests-user-user-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: Create a User
|
||||
user:
|
||||
@@ -101,7 +101,7 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Test tower SSL parameter
|
||||
- name: Test SSL parameter
|
||||
user:
|
||||
first_name: Joe
|
||||
last_name: User
|
||||
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
- name: Generate random names for test objects
|
||||
set_fact:
|
||||
org_name: "AWX-Collection-tests-tower_organization-org-{{ test_id }}"
|
||||
scm_cred_name: "AWX-Collection-tests-tower_workflow_job_template-scm-cred-{{ test_id }}"
|
||||
demo_project_name: "AWX-Collection-tests-tower_workflow_job_template-proj-{{ test_id }}"
|
||||
jt1_name: "AWX-Collection-tests-tower_workflow_job_template-jt1-{{ test_id }}"
|
||||
jt2_name: "AWX-Collection-tests-tower_workflow_job_template-jt2-{{ test_id }}"
|
||||
approval_node_name: "AWX-Collection-tests-tower_workflow_approval_node-{{ test_id }}"
|
||||
lab1: "AWX-Collection-tests-tower_job_template-lab1-{{ test_id }}"
|
||||
wfjt_name: "AWX-Collection-tests-tower_workflow_job_template-wfjt-{{ test_id }}"
|
||||
email_not: "AWX-Collection-tests-tower_job_template-email-not-{{ test_id }}"
|
||||
webhook_not: "AWX-Collection-tests-tower_notification_template-wehbook-not-{{ test_id }}"
|
||||
project_inv: "AWX-Collection-tests-tower_inventory_source-inv-project-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
project_inv_source: "AWX-Collection-tests-tower_inventory_source-inv-source-project-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
org_name: "AWX-Collection-tests-organization-org-{{ test_id }}"
|
||||
scm_cred_name: "AWX-Collection-tests-workflow_job_template-scm-cred-{{ test_id }}"
|
||||
demo_project_name: "AWX-Collection-tests-workflow_job_template-proj-{{ test_id }}"
|
||||
jt1_name: "AWX-Collection-tests-workflow_job_template-jt1-{{ test_id }}"
|
||||
jt2_name: "AWX-Collection-tests-workflow_job_template-jt2-{{ test_id }}"
|
||||
approval_node_name: "AWX-Collection-tests-workflow_approval_node-{{ test_id }}"
|
||||
lab1: "AWX-Collection-tests-job_template-lab1-{{ test_id }}"
|
||||
wfjt_name: "AWX-Collection-tests-workflow_job_template-wfjt-{{ test_id }}"
|
||||
email_not: "AWX-Collection-tests-job_template-email-not-{{ test_id }}"
|
||||
webhook_not: "AWX-Collection-tests-notification_template-wehbook-not-{{ test_id }}"
|
||||
project_inv: "AWX-Collection-tests-inventory_source-inv-project-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
project_inv_source: "AWX-Collection-tests-inventory_source-inv-source-project-{{ lookup('password', '/dev/null chars=ascii_letters length=16') }}"
|
||||
|
||||
- name: "Create a new organization"
|
||||
tower_organization:
|
||||
@@ -85,7 +85,7 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Add a Tower inventory
|
||||
- name: Add an inventory
|
||||
inventory:
|
||||
description: Test inventory
|
||||
organization: Default
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
- name: Generate names
|
||||
set_fact:
|
||||
wfjt_name1: "AWX-Collection-tests-tower_workflow_launch--wfjt1-{{ test_id }}"
|
||||
wfjt_name2: "AWX-Collection-tests-tower_workflow_launch--wfjt1-{{ test_id }}-2"
|
||||
approval_node_name: "AWX-Collection-tests-tower_workflow_launch_approval_node-{{ test_id }}"
|
||||
wfjt_name1: "AWX-Collection-tests-workflow_launch--wfjt1-{{ test_id }}"
|
||||
wfjt_name2: "AWX-Collection-tests-workflow_launch--wfjt1-{{ test_id }}-2"
|
||||
approval_node_name: "AWX-Collection-tests-workflow_launch_approval_node-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
identifier: leaf
|
||||
register: new_node
|
||||
|
||||
- name: Connect to Tower server but request an invalid workflow
|
||||
- name: Connect to controller server but request an invalid workflow
|
||||
workflow_launch:
|
||||
workflow_template: "Does Not Exist"
|
||||
ignore_errors: true
|
||||
@@ -176,7 +176,7 @@
|
||||
unified_job_template: "Demo Job Template"
|
||||
identifier: leaf
|
||||
|
||||
# Test tower_workflow_approval and tower_workflow_node_wait
|
||||
# Test workflow_approval and workflow_node_wait
|
||||
- name: Create approval node
|
||||
workflow_job_template_node:
|
||||
identifier: approval_test
|
||||
|
||||
Reference in New Issue
Block a user