mirror of https://github.com/ansible/ansible.git
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.
25 lines
637 B
YAML
25 lines
637 B
YAML
6 years ago
|
---
|
||
|
# 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"
|