mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Accept other ios_banner types (#33961)
* Accept other ios_banner types * Use 2.6-compatible format string * Doc option values prior to this update
This commit is contained in:
parent
798aa8a2d2
commit
af236f2531
2 changed files with 8 additions and 7 deletions
|
@ -46,9 +46,10 @@ class TestIosBannerModule(TestIosModule):
|
|||
self.load_config.return_value = dict(diff=None, session='session')
|
||||
|
||||
def test_ios_banner_create(self):
|
||||
set_module_args(dict(banner='login', text='test\nbanner\nstring'))
|
||||
commands = ['banner login @\ntest\nbanner\nstring\n@']
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
for banner_type in ('login', 'motd', 'exec', 'incoming', 'slip-ppp'):
|
||||
set_module_args(dict(banner=banner_type, text='test\nbanner\nstring'))
|
||||
commands = ['banner {0} @\ntest\nbanner\nstring\n@'.format(banner_type)]
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
|
||||
def test_ios_banner_remove(self):
|
||||
set_module_args(dict(banner='login', state='absent'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue