mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Setting credential_type as required (#14651)
* Setting credential_type as required * Added test for missing credential_type in credential module * Corrected test assertion --------- Co-authored-by: Lucas Benedito <lbenedit@redhat.com>
This commit is contained in:
@@ -71,6 +71,19 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Delete a credential without credential_type
|
||||
credential:
|
||||
name: "{{ ssh_cred_name1 }}"
|
||||
organization: Default
|
||||
state: absent
|
||||
register: result
|
||||
ignore_errors: true
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is failed"
|
||||
|
||||
|
||||
- name: Create an Org-specific credential with an ID with exists
|
||||
credential:
|
||||
name: "{{ ssh_cred_name1 }}"
|
||||
|
||||
Reference in New Issue
Block a user