summaryrefslogtreecommitdiffstats
path: root/awx_collection/tests/integration/targets/credential/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'awx_collection/tests/integration/targets/credential/tasks/main.yml')
-rw-r--r--awx_collection/tests/integration/targets/credential/tasks/main.yml94
1 files changed, 47 insertions, 47 deletions
diff --git a/awx_collection/tests/integration/targets/credential/tasks/main.yml b/awx_collection/tests/integration/targets/credential/tasks/main.yml
index 4adc162778..4b5328330a 100644
--- a/awx_collection/tests/integration/targets/credential/tasks/main.yml
+++ b/awx_collection/tests/integration/targets/credential/tasks/main.yml
@@ -36,7 +36,7 @@
ssh_key_data: "{{ lookup('file', tempdir.stdout + '/id_rsa') }}"
- name: Test deprecation warnings
- tower_credential:
+ credential:
name: "{{ ssh_cred_name1 }}"
organization: Default
kind: ssh
@@ -70,7 +70,7 @@
- result['deprecations'] | length() == 20
- name: Create an Org-specific credential (old school)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name1 }}"
organization: Default
state: present
@@ -82,7 +82,7 @@
- "result is changed"
- name: Re-create the Org-specific credential (new school) with an ID
- tower_credential:
+ credential:
name: "{{ result.id }}"
organization: Default
credential_type: 'Machine'
@@ -94,7 +94,7 @@
- "result is not changed"
- name: Delete a Org-specific credential
- tower_credential:
+ credential:
name: "{{ ssh_cred_name1 }}"
organization: Default
state: absent
@@ -106,7 +106,7 @@
- "result is changed"
- name: Create the User-specific credential
- tower_credential:
+ credential:
name: "{{ ssh_cred_name1 }}"
user: admin
credential_type: 'Machine'
@@ -118,7 +118,7 @@
- "result is changed"
- name: Delete a User-specific credential
- tower_credential:
+ credential:
name: "{{ ssh_cred_name1 }}"
user: admin
state: absent
@@ -130,7 +130,7 @@
- "result is changed"
- name: Create a valid SSH credential (old school)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name2 }}"
organization: Default
state: present
@@ -150,7 +150,7 @@
- "result is changed"
- name: Create a valid SSH credential (new school)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name2 }}"
organization: Default
state: present
@@ -173,7 +173,7 @@
- result is changed
- name: Create a valid SSH credential (new school)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name2 }}"
organization: Default
state: present
@@ -191,7 +191,7 @@
- result is changed
- name: Check for inputs idempotency (when "inputs" is blank)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name2 }}"
organization: Default
state: present
@@ -204,7 +204,7 @@
- result is not changed
- name: Copy ssh Credential
- tower_credential:
+ credential:
name: "copy_{{ ssh_cred_name2 }}"
copy_from: "{{ ssh_cred_name2 }}"
credential_type: Machine
@@ -215,7 +215,7 @@
- result.copied
- name: Delete an SSH credential
- tower_credential:
+ credential:
name: "copy_{{ ssh_cred_name2 }}"
organization: Default
state: absent
@@ -227,7 +227,7 @@
- "result is changed"
- name: Create a valid SSH credential from lookup source (old school)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name3 }}"
organization: Default
state: present
@@ -247,7 +247,7 @@
- "result is changed"
- name: Create a valid SSH credential from lookup source (new school)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name3 }}"
organization: Default
state: present
@@ -269,7 +269,7 @@
- result is changed
- name: Fail to create an SSH credential from a file source (old school format)
- tower_credential:
+ credential:
name: "{{ ssh_cred_name4 }}"
organization: Default
state: present
@@ -292,7 +292,7 @@
- "'Invalid certificate or key' in result.msg"
- name: Create an invalid SSH credential (passphrase required)
- tower_credential:
+ credential:
name: SSH Credential
organization: Default
state: present
@@ -308,7 +308,7 @@
- "'must be set when SSH key is encrypted' in result.msg"
- name: Create an invalid SSH credential (Organization not found)
- tower_credential:
+ credential:
name: SSH Credential
organization: Missing_Organization
state: present
@@ -325,7 +325,7 @@
- "result.total_results == 0"
- name: Delete an SSH credential
- tower_credential:
+ credential:
name: "{{ ssh_cred_name2 }}"
organization: Default
state: absent
@@ -337,7 +337,7 @@
- "result is changed"
- name: Delete an SSH credential
- tower_credential:
+ credential:
name: "{{ ssh_cred_name3 }}"
organization: Default
state: absent
@@ -349,7 +349,7 @@
- "result is changed"
- name: Delete an SSH credential
- tower_credential:
+ credential:
name: "{{ ssh_cred_name4 }}"
organization: Default
state: absent
@@ -362,7 +362,7 @@
- "result is not changed"
- name: Create a valid Vault credential
- tower_credential:
+ credential:
name: "{{ vault_cred_name1 }}"
organization: Default
state: present
@@ -376,7 +376,7 @@
- "result is changed"
- name: Delete a Vault credential
- tower_credential:
+ credential:
name: "{{ vault_cred_name1 }}"
organization: Default
state: absent
@@ -388,7 +388,7 @@
- "result is changed"
- name: Delete a Vault credential
- tower_credential:
+ credential:
name: "{{ vault_cred_name2 }}"
organization: Default
state: absent
@@ -401,7 +401,7 @@
- "result is not changed"
- name: Create a valid Network credential
- tower_credential:
+ credential:
name: "{{ net_cred_name1 }}"
organization: Default
state: present
@@ -417,7 +417,7 @@
- "result is changed"
- name: Delete a Network credential
- tower_credential:
+ credential:
name: "{{ net_cred_name1 }}"
organization: Default
state: absent
@@ -429,7 +429,7 @@
- "result is changed"
- name: Create a valid SCM credential
- tower_credential:
+ credential:
name: "{{ scm_cred_name1 }}"
organization: Default
state: present
@@ -445,7 +445,7 @@
- "result is changed"
- name: Delete an SCM credential
- tower_credential:
+ credential:
name: "{{ scm_cred_name1 }}"
organization: Default
state: absent
@@ -457,7 +457,7 @@
- "result is changed"
- name: Create a valid AWS credential
- tower_credential:
+ credential:
name: "{{ aws_cred_name1 }}"
organization: Default
state: present
@@ -472,7 +472,7 @@
- "result is changed"
- name: Delete an AWS credential
- tower_credential:
+ credential:
name: "{{ aws_cred_name1 }}"
organization: Default
state: absent
@@ -484,7 +484,7 @@
- "result is changed"
- name: Create a valid VMWare credential
- tower_credential:
+ credential:
name: "{{ vmware_cred_name1 }}"
organization: Default
state: present
@@ -499,7 +499,7 @@
- "result is changed"
- name: Delete an VMWare credential
- tower_credential:
+ credential:
name: "{{ vmware_cred_name1 }}"
organization: Default
state: absent
@@ -511,7 +511,7 @@
- "result is changed"
- name: Create a valid Satellite6 credential
- tower_credential:
+ credential:
name: "{{ sat6_cred_name1 }}"
organization: Default
state: present
@@ -526,7 +526,7 @@
- "result is changed"
- name: Delete a Satellite6 credential
- tower_credential:
+ credential:
name: "{{ sat6_cred_name1 }}"
organization: Default
state: absent
@@ -538,7 +538,7 @@
- "result is changed"
- name: Create a valid GCE credential
- tower_credential:
+ credential:
name: "{{ gce_cred_name1 }}"
organization: Default
state: present
@@ -553,7 +553,7 @@
- "result is changed"
- name: Delete a GCE credential
- tower_credential:
+ credential:
name: "{{ gce_cred_name1 }}"
organization: Default
state: absent
@@ -565,7 +565,7 @@
- "result is changed"
- name: Create a valid AzureRM credential
- tower_credential:
+ credential:
name: "{{ azurerm_cred_name1 }}"
organization: Default
state: present
@@ -580,7 +580,7 @@
- "result is changed"
- name: Create a valid AzureRM credential with a tenant
- tower_credential:
+ credential:
name: "{{ azurerm_cred_name1 }}"
organization: Default
state: present
@@ -596,7 +596,7 @@
- "result is changed"
- name: Delete an AzureRM credential
- tower_credential:
+ credential:
name: "{{ azurerm_cred_name1 }}"
organization: Default
state: absent
@@ -608,7 +608,7 @@
- "result is changed"
- name: Create a valid OpenStack credential
- tower_credential:
+ credential:
name: "{{ openstack_cred_name1 }}"
organization: Default
state: present
@@ -625,7 +625,7 @@
- "result is changed"
- name: Delete a OpenStack credential
- tower_credential:
+ credential:
name: "{{ openstack_cred_name1 }}"
organization: Default
state: absent
@@ -637,7 +637,7 @@
- "result is changed"
- name: Create a valid RHV credential
- tower_credential:
+ credential:
name: "{{ rhv_cred_name1 }}"
organization: Default
state: present
@@ -652,7 +652,7 @@
- "result is changed"
- name: Delete an RHV credential
- tower_credential:
+ credential:
name: "{{ rhv_cred_name1 }}"
organization: Default
state: absent
@@ -664,7 +664,7 @@
- "result is changed"
- name: Create a valid Insights credential
- tower_credential:
+ credential:
name: "{{ insights_cred_name1 }}"
organization: Default
state: present
@@ -678,7 +678,7 @@
- "result is changed"
- name: Delete an Insights credential
- tower_credential:
+ credential:
name: "{{ insights_cred_name1 }}"
organization: Default
state: absent
@@ -690,7 +690,7 @@
- "result is changed"
- name: Create a valid Tower-to-Tower credential
- tower_credential:
+ credential:
name: "{{ tower_cred_name1 }}"
organization: Default
state: present
@@ -705,7 +705,7 @@
- "result is changed"
- name: Delete a Tower-to-Tower credential
- tower_credential:
+ credential:
name: "{{ tower_cred_name1 }}"
organization: Default
state: absent
@@ -717,7 +717,7 @@
- "result is changed"
- name: Check module fails with correct msg
- tower_credential:
+ credential:
name: test-credential
description: Credential Description
kind: ssh