mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
Fix multiple EOS EAPI code and test issues (#26651)
This commit is contained in:
parent
035b4b95b0
commit
b81209c187
8 changed files with 178 additions and 148 deletions
|
@ -53,12 +53,6 @@ class TestEosBannerModule(TestEosModule):
|
|||
commands = ['banner login', 'test', 'banner', 'string', 'EOF']
|
||||
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 = [{'cmd': 'banner login', 'input': 'test\nbanner\nstring'}]
|
||||
self.execute_module(changed=True, commands=commands, transport='eapi')
|
||||
|
||||
def test_eos_banner_remove_with_cli_transport(self):
|
||||
set_module_args(dict(banner='login', state='absent', transport='cli'))
|
||||
commands = ['no banner login']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue