summaryrefslogtreecommitdiff
path: root/test/integration/targets/tower_credential_type/tasks/main.yml
blob: 9d7cc74e733b22c6cf14967882c9cb8409bebac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"