summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_banner
diff options
context:
space:
mode:
authorRicardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com>2017-04-07 15:44:06 +0200
committerGitHub <noreply@github.com>2017-04-07 15:44:06 +0200
commit13b2f11139846a310390a699c8c31ac2bd03ed42 (patch)
tree207e4b3df4101c74a6b4196ee745c301611d8c82 /test/integration/targets/eos_banner
parentba7ba7adc37da383f8a21bdec1e2551c4365a023 (diff)
downloadansible-13b2f11139846a310390a699c8c31ac2bd03ed42.tar.gz
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
Diffstat (limited to 'test/integration/targets/eos_banner')
-rw-r--r--test/integration/targets/eos_banner/tests/eapi/basic-motd.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/targets/eos_banner/tests/eapi/basic-motd.yaml b/test/integration/targets/eos_banner/tests/eapi/basic-motd.yaml
index edceafc416..08ae54b7cc 100644
--- a/test/integration/targets/eos_banner/tests/eapi/basic-motd.yaml
+++ b/test/integration/targets/eos_banner/tests/eapi/basic-motd.yaml
@@ -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: