mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 08:57:35 -02:30
Only pass either user or org on modules test
This commit is contained in:
@@ -40,7 +40,6 @@
|
|||||||
tower_credential:
|
tower_credential:
|
||||||
name: "{{ ssh_cred_name1 }}"
|
name: "{{ ssh_cred_name1 }}"
|
||||||
organization: Default
|
organization: Default
|
||||||
user: admin
|
|
||||||
kind: ssh
|
kind: ssh
|
||||||
authorize: false
|
authorize: false
|
||||||
authorize_password: 'test'
|
authorize_password: 'test'
|
||||||
@@ -71,11 +70,10 @@
|
|||||||
# The 20 comes from the length of OLD_INPUT_NAMES + 1 for kind
|
# The 20 comes from the length of OLD_INPUT_NAMES + 1 for kind
|
||||||
- result['deprecations'] | length() == 20
|
- result['deprecations'] | length() == 20
|
||||||
|
|
||||||
- name: Create a User-specific credential (old school)
|
- name: Create an Org-specific credential (old school)
|
||||||
tower_credential:
|
tower_credential:
|
||||||
name: "{{ ssh_cred_name1 }}"
|
name: "{{ ssh_cred_name1 }}"
|
||||||
organization: Default
|
organization: Default
|
||||||
user: admin
|
|
||||||
state: present
|
state: present
|
||||||
kind: ssh
|
kind: ssh
|
||||||
register: result
|
register: result
|
||||||
@@ -84,11 +82,10 @@
|
|||||||
that:
|
that:
|
||||||
- "result is changed"
|
- "result is changed"
|
||||||
|
|
||||||
- name: Re-create the User-specific credential (new school)
|
- name: Re-create the Org-specific credential (new school)
|
||||||
tower_credential:
|
tower_credential:
|
||||||
name: "{{ ssh_cred_name1 }}"
|
name: "{{ ssh_cred_name1 }}"
|
||||||
organization: Default
|
organization: Default
|
||||||
user: admin
|
|
||||||
credential_type: 'Machine'
|
credential_type: 'Machine'
|
||||||
state: present
|
state: present
|
||||||
register: result
|
register: result
|
||||||
@@ -97,11 +94,10 @@
|
|||||||
that:
|
that:
|
||||||
- "result is not changed"
|
- "result is not changed"
|
||||||
|
|
||||||
- name: Delete a User-specific credential
|
- name: Delete a Org-specific credential
|
||||||
tower_credential:
|
tower_credential:
|
||||||
name: "{{ ssh_cred_name1 }}"
|
name: "{{ ssh_cred_name1 }}"
|
||||||
organization: Default
|
organization: Default
|
||||||
user: admin
|
|
||||||
state: absent
|
state: absent
|
||||||
kind: ssh
|
kind: ssh
|
||||||
register: result
|
register: result
|
||||||
@@ -110,7 +106,7 @@
|
|||||||
that:
|
that:
|
||||||
- "result is changed"
|
- "result is changed"
|
||||||
|
|
||||||
- name: Create the User-specific credential tied to a user, no org
|
- name: Create the User-specific credential
|
||||||
tower_credential:
|
tower_credential:
|
||||||
name: "{{ ssh_cred_name1 }}"
|
name: "{{ ssh_cred_name1 }}"
|
||||||
user: admin
|
user: admin
|
||||||
|
|||||||
Reference in New Issue
Block a user