From ce9826d76e9856163ffddf81512c2b60b6fa97ae Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 7 Apr 2017 14:18:40 +0200 Subject: [PATCH] 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. --- .../integration/targets/eos_banner/tests/eapi/basic-motd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 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 59d0db8d2f8..edceafc4164 100644 --- a/test/integration/targets/eos_banner/tests/eapi/basic-motd.yaml +++ b/test/integration/targets/eos_banner/tests/eapi/basic-motd.yaml @@ -25,8 +25,8 @@ - assert: that: - "result.changed == true" - - "'this is my motd banner' in result.commands" - - "'that has a multiline' in result.commands" + - "result.commands.0.cmd == 'banner motd'" + - "result.commands.0.input == 'this is my motd banner\nthat has a multiline\nstring'" # Ensure sessions contains epoc. Will fail after 18th May 2033 - "'ansible_1' in result.session_name"