mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Depricate min and max interval in favor of interval
This commit is contained in:
committed by
beeankha
parent
61287f6b36
commit
e03911d378
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user