From 5e09ddb6a44f16e848f3f2bd1e3e2ed436a93ac0 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Wed, 5 Apr 2017 20:37:58 +0200 Subject: [PATCH] Fix eapi basic-login asserts (#23318) The asserts where not checking the commands sent to the device (cherry picked from commit 4571ff0b524ff60224a65fb519d8759a3659d89f) --- .../targets/eos_banner/tests/eapi/basic-login.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/eos_banner/tests/eapi/basic-login.yaml b/test/integration/targets/eos_banner/tests/eapi/basic-login.yaml index b7cdb84ecc2..a7b64d47719 100644 --- a/test/integration/targets/eos_banner/tests/eapi/basic-login.yaml +++ b/test/integration/targets/eos_banner/tests/eapi/basic-login.yaml @@ -25,8 +25,8 @@ - assert: that: - "result.changed == true" - - "'this is my login banner' in result.commands" - - "'that has a multiline' in result.commands" + - "result.commands.0.cmd == 'banner login'" + - "result.commands.0.input == 'this is my login banner\nthat has a multiline\nstring'" # Ensure sessions contains epoc. Will fail after 18th May 2033 - "'ansible_1' in result.session_name"