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

(cherry picked from commit 13b2f11139)
This commit is contained in:
Ricardo Carrillo Cruz 2017-04-07 15:44:06 +02:00
parent b9ee0c5477
commit a769f0b0f4

View file

@ -46,7 +46,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: