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/integration
Chris Van Heuveln 8c56c116e5 nxos_snmp_user: platform fixes for get_snmp_user (#55832)
* nxos_snmp_user: platform fixes for get_snmp_user

snmp user output behavior varies quite a bit for the different nxos platforms and required several workarounds:

- N5K/N6k
 - These platforms do not support structured output for `show snmp user`.
 - The current code lands in an `except` clause when the output is not structured; so I added a new `get_non_structured_snmp_user` method to scrape the state from the regular cli output if it's present.

- N9K-F
 - The `group` data in the JSON output is different for this platform; it has a different key (just `group` instead of `TABLE_groups` or `group_names`) and it is not indexed
 - For a single group the value is a string, for multiple groups it's a list

- sanity
 - N5K/N6K/N9K-F platforms will reject `no snmp user <name> <role>` when it's the last role defined for the user.
 - workaround is to use `nxos_user` to remove the user

- Changes validated on:
 - `N3K, N3K-F, N35, N6K, N7K, N9K, N9K-F`
 - `6.0(2)A8`
 - `7.0(3)I2, 7.0(3)I4, 7.0(3)I5, 7.0(3)I6, 7.0(3)I7`
 - `7.3(2)D1`
 - `7.3(3)N1, 7.3(4)N1`
 - `8.3(2)`
 - `9.2(2), 9.2(3)`

* fix lint warning
2019-05-10 13:10:49 +05:30
..
host_vars ansible-test: Use psrp for 2008 host ci_complete (#55273) 2019-04-23 08:13:03 +10:00
targets nxos_snmp_user: platform fixes for get_snmp_user (#55832) 2019-05-10 13:10:49 +05:30
cloud-config-aws.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-azure.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-cloudscale.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-cs.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-gcp.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-gitlab.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-hcloud.ini.template Add Hetzner Cloud to CI integration tests. 2019-04-09 15:41:50 -07:00
cloud-config-hwc.yml.template cloud: huawei: Add new module hwc_network_vpc (#54102) 2019-03-30 17:20:54 +01:00
cloud-config-opennebula.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-openshift.kubeconfig.template Initial OpenShift integration test support. (#36207) 2018-02-14 13:39:42 -08:00
cloud-config-scaleway.ini.template Migrate Scaleway tests to integration tests 2019-04-09 15:41:30 -07:00
cloud-config-tower.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-vultr.ini.template tests: vultr: convert legacy tests to targets (#50156) 2019-01-07 22:23:54 +01:00
integration.cfg Force tests to set ansible_python_interpreter. (#54191) 2019-03-21 21:54:41 -07:00
integration_config.yml Fix pip integration test. 2018-01-31 23:26:16 -08:00
inventory Overhaul ansible-test code coverage and injector. (#53510) 2019-03-13 07:14:12 -07:00
inventory.networking.template Rename MSC modules to MSO nomenclature (#50959) 2019-01-16 14:53:38 +01:00
inventory.remote.template
inventory.winrm.template Cleanup integration test inventory. (#50753) 2019-01-10 14:45:12 -08:00
network-integration.cfg Use stdout_callback yaml for network-integration tests (#56102) 2019-05-06 21:01:40 +05:30
target-prefixes.network Rename MSC modules to MSO nomenclature (#50959) 2019-01-16 14:53:38 +01:00
windows-integration.cfg Enable force_handlers for integration tests. 2019-01-25 08:51:57 -08:00