mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Implement eos_banner for EAPI (#22609)
On EAPI, the multi-line commands are expected to be a dict, with key/value pairs 'cmd'/'input' . This change implements that behaviour and fixes the idempotency on EAPI as well. Fixes #22494
This commit is contained in:
parent
38eb388154
commit
604a38cac1
8 changed files with 51 additions and 20 deletions
|
@ -62,9 +62,9 @@ class AnsibleFailJson(Exception):
|
|||
class TestEosModule(unittest.TestCase):
|
||||
|
||||
def execute_module(self, failed=False, changed=False, commands=None,
|
||||
sort=True, defaults=False):
|
||||
sort=True, defaults=False, transport='cli'):
|
||||
|
||||
self.load_fixtures(commands)
|
||||
self.load_fixtures(commands, transport=transport)
|
||||
|
||||
if failed:
|
||||
result = self.failed()
|
||||
|
@ -108,6 +108,6 @@ class TestEosModule(unittest.TestCase):
|
|||
self.assertEqual(result['changed'], changed, result)
|
||||
return result
|
||||
|
||||
def load_fixtures(self, commands=None):
|
||||
def load_fixtures(self, commands=None, transport='cli'):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue