summaryrefslogtreecommitdiffstats
path: root/awx_collection/tests/integration/targets/tower_job_template
diff options
context:
space:
mode:
authorsean-m-ssullivan <ssulliva@redhat.com>2021-04-03 21:00:56 +0200
committersean-m-ssullivan <ssulliva@redhat.com>2021-04-03 21:00:56 +0200
commitf9d2db696b2ac3f2bbdd36574a105c973c43f054 (patch)
tree679ce833b69ca69cb034079323d6ec92ff3acb3d /awx_collection/tests/integration/targets/tower_job_template
parentMerge pull request #64 from ansible/devel (diff)
downloadawx-f9d2db696b2ac3f2bbdd36574a105c973c43f054.tar.xz
awx-f9d2db696b2ac3f2bbdd36574a105c973c43f054.zip
add instance groups
Diffstat (limited to 'awx_collection/tests/integration/targets/tower_job_template')
-rw-r--r--awx_collection/tests/integration/targets/tower_job_template/tasks/main.yml22
1 files changed, 21 insertions, 1 deletions
diff --git a/awx_collection/tests/integration/targets/tower_job_template/tasks/main.yml b/awx_collection/tests/integration/targets/tower_job_template/tasks/main.yml
index d3924b1a4a..3b56bc9094 100644
--- a/awx_collection/tests/integration/targets/tower_job_template/tasks/main.yml
+++ b/awx_collection/tests/integration/targets/tower_job_template/tasks/main.yml
@@ -14,6 +14,7 @@
lab1: "AWX-Collection-tests-tower_job_template-lab1-{{ test_id }}"
email_not: "AWX-Collection-tests-tower_job_template-email-not-{{ test_id }}"
webhook_not: "AWX-Collection-tests-tower_notification_template-wehbook-not-{{ test_id }}"
+ group_name1: "AWX-Collection-tests-tower_instance_group-group1-{{ test_id }}"
- name: Create a Demo Project
tower_project:
@@ -48,6 +49,16 @@
name: "{{ lab1 }}"
organization: Default
+- name: Create an Instance Group
+ tower_instance_group:
+ name: "{{ group_name1 }}"
+ state: present
+ register: result
+
+- assert:
+ that:
+ - "result is changed"
+
- name: Add email notification
tower_notification_template:
name: "{{ email_not }}"
@@ -81,7 +92,11 @@
project: "{{ proj1 }}"
inventory: Demo Inventory
playbook: hello_world.yml
- credentials: ["{{ cred1 }}", "{{ cred2 }}"]
+ credentials:
+ - "{{ cred1 }}"
+ - "{{ cred2 }}"
+ instance_groups:
+ - "{{ group_name1 }}"
job_type: run
state: present
register: jt1_result
@@ -384,6 +399,11 @@
organization: Default
state: absent
+- name: Delete the instance groups
+ tower_instance_group:
+ name: "{{ group_name1 }}"
+ state: absent
+
- name: Delete webhook notification
tower_notification_template:
name: "{{ webhook_not }}"