mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
10af3874b5
* win_snmp: Initial commit * win_snmp: Better handling of lists * win_snmp: Documentation fixes * win_snmp: Updated documentation to match parameters * win_snmp: Added integration tests * win_snmp: Fixed typo in test * win_snmp: Adjusted parameter checks to match documentation * win_snmp: Updated option descriptions to be full sentences * win_snmp: Better type checking and output suppression * win_snmp: Fixed unset managers and communities * win_snmp: Fixed skipping default registry keys * win_snmp: Migrated to using add/set/remove action from replace * win_snmp: Fixed check mode * win_snmp: Fixed setting action and documentation. Expanded tests. * win_snmp: Efficiency changes and documentation cleanup * Added example of explicitly setting an empty set of managers to documentation * Made sure set will only remove items if there is a list of items provided. This list can be of length 0 * Improved efficiency in selecting next index for SNMP manager * Updated tests * win_snmp: Added output of permitted managers and community strings * win_snmp: Documentation fix
24 lines
637 B
YAML
24 lines
637 B
YAML
---
|
|
# Already tested
|
|
- name: Add an SNMP manager and an SNMP community
|
|
win_snmp:
|
|
action: add
|
|
community_strings:
|
|
- snmp-cleanup
|
|
permitted_managers:
|
|
- 192.168.1.1
|
|
|
|
- name: Run without options
|
|
register: snmp_no_options
|
|
win_snmp:
|
|
|
|
- name: Assert no changes occurred when no options provided
|
|
assert:
|
|
that:
|
|
- not snmp_no_options.changed
|
|
|
|
- name: Assert community strings and permitted managers are correctly returned
|
|
assert:
|
|
that:
|
|
- "'snmp-cleanup' in snmp_no_options.community_strings"
|
|
- "'192.168.1.1' in snmp_no_options.permitted_managers"
|