ansible/test/units
Steve Dodd ee6ab5d5aa Add support for IOS vlan parsing filter. (#40555)
* Add support for IOS vlan parsing filter.
Example usage below:

{% set parsed_vlans = vlans | vlan_parser %}
switchport trunk allowed vlan {{ parsed_vlans[0] }}
{% for i in range (1, parsed_vlans | count) %}
switchport trunk allowed vlan add {{ parsed_vlans[i] }}

* Update test_network.py

Add import statement for filter

* Fixed PEP8 issues relating to comments

* Fix PEP8 issues related to blank lines

* Removed magic numbers for line lengths. This should generalize support
to other IOS-like NOS that use similar methods for listing vlans. The
default arguments for line lengths will still be specific to Cisco IOS.
The unit tests for line length are still specific to Cisco IOS.
2018-10-17 20:50:28 +05:30
..
cli Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
contrib Fix vmware_inventory unit tests so they run. 2018-10-09 22:52:04 -07:00
errors Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
executor Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
inventory_test_data/group_vars
mock Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
module_utils Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
modules Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
parsing Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
playbook Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
plugins Add support for IOS vlan parsing filter. (#40555) 2018-10-17 20:50:28 +05:30
template Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
utils Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
vars Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
__init__.py
ansible.cfg
conftest.py Run unit tests in parallel. (#45812) 2018-09-18 13:58:22 -07:00
test_constants.py