mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -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
|
@ -40,7 +40,7 @@ class TestEosSystemModule(TestEosModule):
|
|||
self.mock_get_config.stop()
|
||||
self.mock_load_config.stop()
|
||||
|
||||
def load_fixtures(self, commands=None):
|
||||
def load_fixtures(self, commands=None, transport='cli'):
|
||||
self.get_config.return_value = load_fixture('eos_system_config.cfg')
|
||||
self.load_config.return_value = dict(diff=None, session='session')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue