mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
* Fixes #30281 Configure login prompt for eos_banner * Fix unit test * Fix pep8 issue
This commit is contained in:
parent
ec59650528
commit
3ff527b1d2
3 changed files with 29 additions and 7 deletions
|
@ -58,6 +58,13 @@ class TestEosBannerModule(TestEosModule):
|
|||
commands = ['no banner login']
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
|
||||
def test_eos_banner_create_with_eapi_transport(self):
|
||||
set_module_args(dict(banner='login', text='test\nbanner\nstring',
|
||||
transport='eapi'))
|
||||
commands = ['banner login']
|
||||
inputs = ['test\nbanner\nstring']
|
||||
self.execute_module(changed=True, commands=commands, inputs=inputs, transport='eapi')
|
||||
|
||||
def test_eos_banner_remove_with_eapi_transport(self):
|
||||
set_module_args(dict(banner='login', state='absent', transport='eapi'))
|
||||
commands = ['no banner login']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue