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

Do not assert session name on idempotent eos banner (#23402)

* Check for proper response key on eos_banner map_config_to_obj

If we run the task with 'login' banner, the 'show banner' command
will return a dict containing key 'loginBanner'.
However for motd, it will just return 'motd'.
Yay naming consistency!

* Do not assert session exists on eos_banner response not changing device
This commit is contained in:
Ricardo Carrillo Cruz 2017-04-07 15:44:06 +02:00 committed by GitHub
parent ba7ba7adc3
commit 13b2f11139

View file

@ -47,7 +47,7 @@
- "result.changed == false"
- "result.commands | length == 0"
# Ensure sessions contains epoc. Will fail after 18th May 2033
- "result.session_name contains 'ansible_1'"
- "result.session_name is not defined"
# FIXME add in tests for everything defined in docs
# FIXME Test state:absent + test: