ansible/test/units
Trishna Guha 30aba1a7fd nxos_vlan purge fix 2.8 (#57442)
* nxos_vlan: fix broken purge behavior (issue #57101) (#57229)

* nxos_vlan: fix broken purge behavior (issue #57101)

Symptoms/Analysis:
- `nxos_vlan` `purge: true` would fail when `purge` was trying to delete all unspecified vlans, including vlan 1.
- `nxos` devices do not allow removing vlan 1 and raise a cli exception error
- Previous fix #55144 caused a side effect when `purge` was used: vlan changes specified by `aggregate` were ignored; e.g.
 - vlan 4 is not present; playbook specifies `aggregate: { vlan: 4 }, purge: true`
 - results in proper purging but vlan 4 is not created

Solutions:
- ignore vlan 1 when purging
- remove the `not purge` check from state present logic

Added additional unit tests and integration tests.
Tested against all regression platforms.

* PEP fixes

* Add agg_show_vlan_brief.txt fixture

* Add warning for removing vlan 1

* change method name check

(cherry picked from commit 6bb13bbb84)

* changelog

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2019-06-11 19:50:35 -07:00
..
cli Remove unused internal -a argument and functionality (#52602) 2019-02-19 17:49:06 -06:00
compat
config Fix encoding issues with file paths. (#50830) 2019-01-14 13:06:47 -08:00
contrib
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 2018-12-04 12:32:02 -05:00
executor Move type checking methods out of basic.py and add unit tests (#53687) 2019-03-21 09:40:19 -04:00
inventory_test_data/group_vars
mock
module_utils [stable-2.8] Ensure uri module always returns status even on failure (#56240) 2019-05-24 10:52:05 -07:00
modules nxos_vlan purge fix 2.8 (#57442) 2019-06-11 19:50:35 -07:00
parsing Fieldattribute inheritance with defaults (#50891) 2019-01-23 11:40:07 -06:00
playbook Don't pollute include_variables (#54687) 2019-04-09 10:14:42 -05:00
plugins Fix tests for the psrp connection plugin (#55061) 2019-04-10 08:22:48 +10:00
regex Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
template Native Jinja2: raise undefined error immediately (#52237) 2019-02-15 19:36:12 +01:00
utils Move the arguments module into cli/ and context_objects into utils 2019-01-03 18:12:23 -08:00
vars Fix inventory cache interface (#50446) 2019-03-06 12:12:35 -06:00
__init__.py
ansible.cfg
conftest.py Update handling of the non_local test alias. 2019-03-22 16:05:24 -07:00
test_constants.py
test_context.py Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00