Mark send, receive, and workflow_job_template modules as deprecated

Add routing.yml file to mark modules for deprecation and pass sanity tests

Ignore sanity tests for deprecated modules
This commit is contained in:
beeankha 2020-04-14 17:34:36 -04:00
parent 7311ddf722
commit 8926f635df
5 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,15 @@
---
plugin_routing:
modules:
tower_receive:
deprecation:
removal_date: TBD
warning_text: see plugin documentation for details
tower_send:
deprecation:
removal_date: TBD
warning_text: see plugin documentation for details
tower_workflow_template:
deprecation:
removal_date: TBD
warning_text: see plugin documentation for details

View File

@ -9,13 +9,17 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'status': ['deprecated'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: tower_receive
deprecated:
removed_in: "3.7"
why: Deprecated in favor of upcoming C(_export) module.
alternative: Once published, use M(tower_export) instead.
author: "John Westcott IV (@john-westcott-iv)"
version_added: "2.8"
short_description: Receive assets from Ansible Tower.

View File

@ -9,13 +9,17 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'status': ['deprecated'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: tower_send
deprecated:
removed_in: "3.7"
why: Deprecated in favor of upcoming C(_import) module.
alternative: Once published, use M(tower_import) instead.
author: "John Westcott IV (@john-westcott-iv)"
version_added: "2.8"
short_description: Send assets to Ansible Tower.

View File

@ -8,7 +8,7 @@ from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
ANSIBLE_METADATA = {'status': ['deprecated'],
'supported_by': 'community',
'metadata_version': '1.1'}
@ -16,6 +16,10 @@ ANSIBLE_METADATA = {'status': ['preview'],
DOCUMENTATION = '''
---
module: tower_workflow_template
deprecated:
removed_in: "3.7"
why: Deprecated in favor of C(_workflow_job_template) and C(_workflow_job_template_node) modules.
alternative: Use M(tower_workflow_job_template) and M(_workflow_job_template_node) instead.
author: "Adrien Fleury (@fleu42)"
version_added: "2.7"
short_description: create, update, or destroy Ansible Tower workflow template.

View File

@ -0,0 +1,6 @@
plugins/modules/tower_receive.py validate-modules:deprecation-mismatch
plugins/modules/tower_receive.py validate-modules:invalid-documentation
plugins/modules/tower_send.py validate-modules:deprecation-mismatch
plugins/modules/tower_send.py validate-modules:invalid-documentation
plugins/modules/tower_workflow_template.py validate-modules:deprecation-mismatch
plugins/modules/tower_workflow_template.py validate-modules:invalid-documentation