mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-09 14:50:02 -07:00
New module : tower_credential_type (#37243)
* Add new module *tower_credential_type* * Add support for credential type creation and/or deletion * Add test coverage for tower_credential_type
This commit is contained in:
parent
aaa157f140
commit
4249c5ca7f
3 changed files with 198 additions and 0 deletions
2
test/integration/targets/tower_credential_type/aliases
Normal file
2
test/integration/targets/tower_credential_type/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/tower
|
||||
shippable/tower/group1
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- name: Add Tower credential type
|
||||
tower_credential_type:
|
||||
description: Credential type for Test
|
||||
name: test-credential-type
|
||||
kind: cloud
|
||||
inputs: '{"fields": [{"type": "string", "id": "username", "label": "Username"}, {"secret": True, "type": "string", "id": "password", "label": "Password"}], "required": ["username", "password"]}'
|
||||
injectors: '{"extra_vars": {"test": "foo"}}'
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Remove a Tower credential type
|
||||
tower_credential_type:
|
||||
name: test-credential-type
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
Loading…
Add table
Add a link
Reference in a new issue