Copy collection integration tests in

This commit is contained in:
Caleb Boylan
2020-02-28 12:36:32 -08:00
parent fe046b47b5
commit 4a6db13daa
18 changed files with 1667 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
- name: Create a User
tower_user:
first_name: Joe
last_name: User
username: joe
password: "{{ 65535 | random | to_uuid }}"
email: joe@example.org
state: present
register: result
- assert:
that:
- "result is changed"
- name: Add Joe to the update role of the default Project
tower_role:
user: joe
role: update
project: Demo Project
state: "{{ item }}"
register: result
with_items:
- "present"
- "absent"
- assert:
that:
- "result is changed"
- name: Delete a User
tower_user:
username: joe
email: joe@example.org
state: absent
register: result
- assert:
that:
- "result is changed"