Depricate min and max interval in favor of interval

This commit is contained in:
John Westcott IV
2020-03-26 09:17:18 -04:00
committed by beeankha
parent 61287f6b36
commit e03911d378
2 changed files with 46 additions and 36 deletions

View File

@@ -20,6 +20,19 @@
project: "{{ proj_name }}"
inventory: "Demo Inventory"
- name: Check deprication warnings
tower_job_wait:
min_interval: 10
max_interval: 20
job_id: "99999999"
register: result
ignore_errors: true
- assert:
that:
- "'deprecations' in result"
- "'min and max interval have been depricated, please use interval instead, interval will be set to 15' in result['deprecations'][0]['msg']"
- name: Check module fails with correct msg
tower_job_wait:
job_id: "99999999"
@@ -98,6 +111,10 @@
- name: Delete the job template
tower_job_template:
name: "{{ jt_name }}"
playbook: "sleep.yml"
job_type: run
project: "{{ proj_name }}"
inventory: "Demo Inventory"
state: absent
- name: Delete the project