diff options
author | sean-m-ssullivan <ssulliva@redhat.com> | 2021-04-28 02:32:21 +0200 |
---|---|---|
committer | sean-m-ssullivan <ssulliva@redhat.com> | 2021-04-28 02:32:21 +0200 |
commit | c22c0a393c0d9ca37136016f4720db76efc2fea2 (patch) | |
tree | 59abfa6c2b5b5c9d63bb4f22361d58aa97128b8b /awx_collection/tests | |
parent | Merge pull request #10032 from nixocio/ui_update_timeout (diff) | |
download | awx-c22c0a393c0d9ca37136016f4720db76efc2fea2.tar.xz awx-c22c0a393c0d9ca37136016f4720db76efc2fea2.zip |
update tests and survey change status
Diffstat (limited to 'awx_collection/tests')
-rw-r--r-- | awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml b/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml index 5e9e9159f0..cb8be5a06b 100644 --- a/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_workflow_job_template/tasks/main.yml @@ -300,6 +300,124 @@ that: - "result is changed" +- name: Add Survey to Copied workflow job template + tower_workflow_job_template: + name: "copy_{{ wfjt_name }}" + organization: Default + survey_spec: + name: Basic Survey + description: Basic Survey + spec: + - question_description: Name + min: 0 + default: '' + max: 128 + required: true + choices: '' + new_question: true + variable: basic_name + question_name: Basic Name + type: text + - question_description: Choosing yes or no. + min: 0 + default: 'yes' + max: 0 + required: true + choices: |- + yes + no + new_question: true + variable: option_true_false + question_name: Choose yes or no? + type: multiplechoice + - question_description: '' + min: 0 + default: '' + max: 0 + required: true + choices: |- + group1 + group2 + group3 + new_question: true + variable: target_groups + question_name: 'Select Group:' + type: multiselect + - question_name: password + question_description: '' + required: true + type: password + variable: password + min: 0 + max: 1024 + default: '' + choices: '' + new_question: true + register: result + +- assert: + that: + - "result is changed" + +- name: Re add survey to workflow job template expected not changed. + tower_workflow_job_template: + name: "copy_{{ wfjt_name }}" + organization: Default + survey_spec: + name: Basic Survey + description: Basic Survey + spec: + - question_description: Name + min: 0 + default: '' + max: 128 + required: true + choices: '' + new_question: true + variable: basic_name + question_name: Basic Name + type: text + - question_description: Choosing yes or no. + min: 0 + default: 'yes' + max: 0 + required: true + choices: |- + yes + no + new_question: true + variable: option_true_false + question_name: Choose yes or no? + type: multiplechoice + - question_description: '' + min: 0 + default: '' + max: 0 + required: true + choices: |- + group1 + group2 + group3 + new_question: true + variable: target_groups + question_name: 'Select Group:' + type: multiselect + - question_name: password + question_description: '' + required: true + type: password + variable: password + min: 0 + max: 1024 + default: '' + choices: '' + new_question: true + register: result + +- assert: + that: + - "result is not changed" + - name: Delete copied workflow job template tower_workflow_job_template: name: "copy_{{ wfjt_name }}" |