mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -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
|
@ -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