From a858089eb29ec2832877aa5fdc96dce87eb7a5cd Mon Sep 17 00:00:00 2001 From: Hugh Ma Date: Wed, 7 Nov 2018 04:09:40 -0800 Subject: Add survey_spec parameter to module. (#48182) * Add survey_spec parameter to module. Fixes #48011 * Removed trailing white space. Added integration test. --- .../targets/tower_workflow_template/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/integration/targets/tower_workflow_template') 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 -- cgit v1.2.3