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:
Ricardo Carrillo Cruz 2017-03-14 21:00:17 +01:00 committed by GitHub
parent 38eb388154
commit 604a38cac1
8 changed files with 51 additions and 20 deletions

View file

@ -53,7 +53,7 @@ class TestEosEapiModule(TestEosModule):
except RuntimeError:
pass
def load_fixtures(self, commands=None):
def load_fixtures(self, commands=None, transport='eapi'):
def run_commands(module, commands, **kwargs):
output = list()
for cmd in commands: