1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/modules
John R Barker a23c95023b
Module deprecation: docs, scheme and tests (#34100)
Enforce module deprecation.
After module has reached the end of it's deprecation cycle we will replace it with a docs stub.

* Replace deprecated modules with docs-only sub
* Use of deprecated past deprecation cycle gives meaningful message (see examples below)
* Enforce documentation.deprecation dict via `schema.py`
* Update `ansible-doc` and web docs to display documentation.deprecation
* Document that structure in `dev_guide`
* Ensure that all modules starting with `_` have a `deprecation:` block
* Ensure `deprecation:` block is only used on modules that start with `_`
* `removed_in` A string which represents when this module needs **deleting**
* CHANGELOG.md and porting_guide_2.5.rst list removed modules as well as alternatives
* CHANGELOG.md links to porting guide index

To ensure that meaningful messages are given to the user if they try to use a module at the end of it's deprecation cycle we enforce the module to contain:
```python
if __name__ == '__main__':
    removed_module()
```
2018-01-30 12:23:52 +00:00
..
cloud Module deprecation: docs, scheme and tests (#34100) 2018-01-30 12:23:52 +00:00
monitoring Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00
net_tools nmcli: Allow setting ipv4.dhcp-client-id parameter (#34268) 2018-01-29 17:02:46 -06:00
network further fixes to rename only where required (#35432) 2018-01-29 07:02:31 +10:00
packaging rhn_channel/register: Porting tests to pytest (#33719) 2017-12-12 07:25:49 -08:00
remote_management Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
system Update pamd.py to allow module path with slashes (#32197) 2018-01-18 09:57:12 +05:30
web_infrastructure Fix jenkins_plugin test for no net situations (#30568) 2017-09-19 13:12:45 -07:00
__init__.py Some algorithmic unittests for the apt and docker modules 2016-04-27 07:23:31 -07:00
conftest.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
utils.py Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00