summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml
diff options
context:
space:
mode:
authorChris Van Heuveln <cvanheuv@cisco.com>2019-04-24 05:38:04 -0400
committerTrishna Guha <trishnaguha17@gmail.com>2019-04-24 15:08:03 +0530
commit91d187f780640cbec07eb6a0e6716b47a249737a (patch)
treeeae4df098be7b5aed00818d56e0eba7cc740245a /test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml
parent8de2acb81979cf09f661a74e1bc25bf4a3f453da (diff)
downloadansible-91d187f780640cbec07eb6a0e6716b47a249737a.tar.gz
nxos_snmp_host:sanity:6k: Add platform excludes for sanity tests (#55664)
N6K should be present wherever N5K is included/excluded.
Diffstat (limited to 'test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml')
-rw-r--r--test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml25
1 files changed, 13 insertions, 12 deletions
diff --git a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml
index ec04594494..07f2d80e78 100644
--- a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml
+++ b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml
@@ -9,7 +9,8 @@
# Select interface for test
- set_fact: intname="{{ nxos_int1 }}"
- when: not (platform is match("N5K"))
+ when: platform is not search('N5K|N6K')
+
- set_fact: run="true"
- set_fact: run="false"
@@ -19,30 +20,30 @@
nxos_snmp_host: &remove
snmp_host: 192.0.2.3
community: TESTING
- version: "{{ snmp_version }}"
- snmp_type: "{{ snmp_type }}"
- v3: "{{ snmp_auth }}"
+ version: "{{ snmp_version }}"
+ snmp_type: "{{ snmp_type }}"
+ v3: "{{ snmp_auth }}"
vrf: management
vrf_filter: management
src_intf: "{{ intname|default(omit) }}"
provider: "{{ connection }}"
- state: absent
+ state: absent
ignore_errors: yes
- block:
- - name: Configure snmp host
+ - name: Configure snmp host
nxos_snmp_host: &config
snmp_host: 192.0.2.3
community: TESTING
v3: "{{ snmp_auth|default(omit) }}"
- version: "{{ snmp_version }}"
- snmp_type: "{{ snmp_type }}"
+ version: "{{ snmp_version }}"
+ snmp_type: "{{ snmp_type }}"
vrf: management
vrf_filter: management
src_intf: "{{ intname|default(omit) }}"
provider: "{{ connection }}"
- state: present
+ state: present
register: result
- assert: &true
@@ -63,7 +64,7 @@
snmp_host: 192.0.2.3
vrf_filter: default
provider: "{{ connection }}"
- state: present
+ state: present
register: result
- assert: *true
@@ -73,7 +74,7 @@
register: result
- assert: *false
- when: not (platform is match('N35|N5K'))
+ when: platform is not search('N35|N5K|N6K')
- name: remove some configuration
nxos_snmp_host: &rem1
@@ -109,7 +110,7 @@
register: result
- assert: *false
- when: not (platform is match('N35|N5K'))
+ when: platform is not search('N35|N5K|N6K')
- name: Cleanup
nxos_snmp_host: *remove