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
Dag Wieers e970237a2f New module: access Cisco ACI (network/aci/aci_rest) (#26029)
* aci_rest: New module to access Cisco ACI

This PR includes:
- Relicense as GPLv3+
- Check-mode support
- Cosmetic changes to documentation
- Examples in YAML format
- Removal of incorrect requirements (for this module)
- Do not log passwords
- Implement native fetch_url instead of requests
- Use standard hostname, username and password parameters
- Add alias src for parameter config_file
- Add mutual exclusive content option for inline data (and show some inline examples)
- Add timeout parameter
- Add validate_certs parameter
- Handling ACI result output (identical for JSON as XML input)
- Parse/expose ACI error output to user

* Lower case method, add use_ssl, Use python dicts

This commit includes:
- Use lowercase method names
- Add `use_ssl` parameter (not the `protocol` parameter)
- Use a python dict for the request data (not a JSON string)
- Documentation improvements

* Ensure one of 'content' or 'src' is provided

* Fix issue with totalCount being a string in JSON

This fixes the problem with JSON output where totalCount is a string and
not an integer.

This fixes jedelman8/aci-ansible#7

* Improve code documentation

* Improve error handling and module response

* Small typo

* Improve documentation and examples

* Keep protocol parameter, but deprecate it

* Extrude aci functions from module_utils

* aci_rest: Add unit tests
2017-07-17 16:32:12 +01:00
..
cloud [cloud] New module: AWS API Gageway module (#20230) 2017-06-05 10:25:56 -04:00
network New module: access Cisco ACI (network/aci/aci_rest) (#26029) 2017-07-17 16:32:12 +01:00
packaging test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
system Mv AnsibleFactCollector back to module_utils (#26150) 2017-07-11 10:44:22 -04:00
web_infrastructure Test for _get_url_data in jenkins_plugin.py (#24905) 2017-05-22 14:40:13 -07:00
__init__.py Some algorithmic unittests for the apt and docker modules 2016-04-27 07:23:31 -07:00