mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07:00
Aruba indenting (#33884)
* Fixing aruba's inconsitent indenting. * Adding config with different children indentation and unit test to confirm the different spacing does not matter. * Fixing pylint check. Missed an r prefix.
This commit is contained in:
parent
53abf45cec
commit
f8e3cfe9e2
4 changed files with 34 additions and 10 deletions
|
@ -2,11 +2,16 @@
|
|||
hostname router
|
||||
!
|
||||
interface GigabitEthernet0/0
|
||||
ip address 1.2.3.4 255.255.255.0
|
||||
description test string
|
||||
ip address 1.2.3.4 255.255.255.0
|
||||
description test string
|
||||
!
|
||||
interface GigabitEthernet0/1
|
||||
ip address 6.7.8.9 255.255.255.0
|
||||
description test string
|
||||
shutdown
|
||||
!
|
||||
wlan ssid-profile "blah"
|
||||
essid "blah"
|
||||
!
|
||||
ip access-list session blah
|
||||
any any any permit
|
||||
|
|
|
@ -59,6 +59,14 @@ class TestArubaConfigModule(TestArubaModule):
|
|||
set_module_args(dict(src=src))
|
||||
self.execute_module()
|
||||
|
||||
def test_aruba_config_unchanged_different_spacing(self):
|
||||
# Tab indented
|
||||
set_module_args(dict(lines=['description test string'], parents=['interface GigabitEthernet0/0']))
|
||||
self.execute_module(changed=False)
|
||||
# 3 spaces indented
|
||||
set_module_args(dict(lines=['essid "blah"'], parents=['wlan ssid-profile "blah"']))
|
||||
self.execute_module(changed=False)
|
||||
|
||||
def test_aruba_config_src(self):
|
||||
src = load_fixture('aruba_config_src.cfg')
|
||||
set_module_args(dict(src=src))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue