1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix eos_banner basic-motd eapi asserts (#23398)

The commands in EAPI does not contain the plain command sent to the
device as a one liner, but it is split in cmd/input keys.
This commit is contained in:
Ricardo Carrillo Cruz 2017-04-07 14:18:40 +02:00 committed by GitHub
parent 2cc2b8fb4d
commit ce9826d76e

View file

@ -25,8 +25,8 @@
- assert: - assert:
that: that:
- "result.changed == true" - "result.changed == true"
- "'this is my motd banner' in result.commands" - "result.commands.0.cmd == 'banner motd'"
- "'that has a multiline' in result.commands" - "result.commands.0.input == 'this is my motd banner\nthat has a multiline\nstring'"
# Ensure sessions contains epoc. Will fail after 18th May 2033 # Ensure sessions contains epoc. Will fail after 18th May 2033
- "'ansible_1' in result.session_name" - "'ansible_1' in result.session_name"