summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/tower_workflow_template
diff options
context:
space:
mode:
authorHugh Ma <h_ma@u.pacific.edu>2018-11-07 13:09:40 +0100
committerMartin Krizek <martin.krizek@gmail.com>2018-11-07 13:09:40 +0100
commita858089eb29ec2832877aa5fdc96dce87eb7a5cd (patch)
tree05dd92cf864bf6d69cfe14275081f9b7a72bf3cd /test/integration/targets/tower_workflow_template
parentUpdate os_image.py (#47222) (diff)
downloadansible-a858089eb29ec2832877aa5fdc96dce87eb7a5cd.tar.xz
ansible-a858089eb29ec2832877aa5fdc96dce87eb7a5cd.zip
Add survey_spec parameter to module. (#48182)
* Add survey_spec parameter to module. Fixes #48011 * Removed trailing white space. Added integration test.
Diffstat (limited to 'test/integration/targets/tower_workflow_template')
-rw-r--r--test/integration/targets/tower_workflow_template/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/tower_workflow_template/tasks/main.yml b/test/integration/targets/tower_workflow_template/tasks/main.yml
index 8eba26c134..39a03c68d7 100644
--- a/test/integration/targets/tower_workflow_template/tasks/main.yml
+++ b/test/integration/targets/tower_workflow_template/tasks/main.yml
@@ -59,6 +59,19 @@
job_type: run
state: present
+- name: Add a Survey to second Job Template
+ tower_job_template:
+ name: my-job-2
+ project: Job Template Test Project
+ inventory: Demo Inventory
+ playbook: hello_world.yml
+ credential: Demo Credential
+ job_type: run
+ state: present
+ survey_enabled: yes
+ survey_spec: '{"spec": [{"index": 0, "question_name": "my question?", "default": "mydef", "variable": "myvar", "type": "text", "required": "false"}], "description": "test", "name": "test"}'
+
+
- name: Create a workflow job template
tower_workflow_template:
name: my-workflow