diff options
author | Kevin Breit <kevin.breit@kevinbreit.net> | 2019-06-19 17:35:10 +0200 |
---|---|---|
committer | Nathaniel Case <ncase@redhat.com> | 2019-06-19 17:35:10 +0200 |
commit | 8f68c8d43889b0651d5eb0173816c52e83a53834 (patch) | |
tree | 2e85743d2aacd11fd37dd791c6efe6a39d22d13a /test/integration/targets/meraki_snmp | |
parent | Update azure_rm_roledefinition related document (#57927) (diff) | |
download | ansible-8f68c8d43889b0651d5eb0173816c52e83a53834.tar.xz ansible-8f68c8d43889b0651d5eb0173816c52e83a53834.zip |
meraki_snmp - Enable check mode (#54625)
* Add support for check mode
* Add diff support
* Remove check mode for idempotent action
Diffstat (limited to 'test/integration/targets/meraki_snmp')
-rw-r--r-- | test/integration/targets/meraki_snmp/tasks/main.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/integration/targets/meraki_snmp/tasks/main.yml b/test/integration/targets/meraki_snmp/tasks/main.yml index c6abc9c021..24627fbaf7 100644 --- a/test/integration/targets/meraki_snmp/tasks/main.yml +++ b/test/integration/targets/meraki_snmp/tasks/main.yml @@ -19,6 +19,20 @@ - debug: msg: '{{snmp_query}}' +- name: Enable SNMPv2c with check mode + meraki_snmp: + auth_key: '{{auth_key}}' + org_name: '{{test_org_name}}' + state: present + v2c_enabled: true + delegate_to: localhost + register: snmp_v2_enable_check + check_mode: yes + +- assert: + that: + - snmp_v2_enable_check is not changed + - name: Enable SNMPv2c meraki_snmp: auth_key: '{{auth_key}}' @@ -120,6 +134,23 @@ - snmp_idempotent.changed == False - snmp_idempotent.data is defined +- name: Check for idempotency with check mode + meraki_snmp: + auth_key: '{{auth_key}}' + org_name: '{{test_org_name}}' + state: present + v3_enabled: true + v3_auth_mode: SHA + v3_auth_pass: ansiblepass + v3_priv_mode: AES128 + v3_priv_pass: ansiblepass + delegate_to: localhost + register: snmp_idempotent_check + +- assert: + that: + - snmp_idempotent_check is not changed + - name: Add peer IPs meraki_snmp: auth_key: '{{auth_key}}' |