You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/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()
```
7 years ago
..
cloud Module deprecation: docs, scheme and tests (#34100) 7 years ago
monitoring Unit tests: share common code (#31456) 7 years ago
net_tools nmcli: Allow setting ipv4.dhcp-client-id parameter (#34268) 7 years ago
network further fixes to rename only where required (#35432) 7 years ago
packaging rhn_channel/register: Porting tests to pytest (#33719) 7 years ago
remote_management Python 2.6 `str.format()` compatibility fixes. 7 years ago
system Update pamd.py to allow module path with slashes (#32197) 7 years ago
web_infrastructure Fix jenkins_plugin test for no net situations (#30568) 7 years ago
__init__.py Some algorithmic unittests for the apt and docker modules 9 years ago
conftest.py Porting tests to pytest (#33387) 7 years ago
utils.py Unit tests: share common code (#31456) 7 years ago