From 6969bef70a7d1f0ca09f3f479e57d7989795b6eb Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Wed, 5 Apr 2017 20:00:10 +0200 Subject: [PATCH] Fix asserts on ios_banner tests (#23315) The contain assert was broken. (cherry picked from commit cf30f0f27d501ea5f155c8afdcbc079f587e45c9) --- test/integration/targets/ios_banner/tests/cli/basic-login.yaml | 3 +-- test/integration/targets/ios_banner/tests/cli/basic-motd.yaml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/integration/targets/ios_banner/tests/cli/basic-login.yaml b/test/integration/targets/ios_banner/tests/cli/basic-login.yaml index 9e86324cf2d..70500c5cab5 100644 --- a/test/integration/targets/ios_banner/tests/cli/basic-login.yaml +++ b/test/integration/targets/ios_banner/tests/cli/basic-login.yaml @@ -25,8 +25,7 @@ - assert: that: - "result.changed == true" - - "'this is my login banner' in result.commands" - - "'that has a multiline' in result.commands" + - "'banner login @\nthis is my login banner\nthat has a multiline\nstring\n@' in result.commands" - name: Set login again (idempotent) ios_banner: diff --git a/test/integration/targets/ios_banner/tests/cli/basic-motd.yaml b/test/integration/targets/ios_banner/tests/cli/basic-motd.yaml index d71ab1a369d..cec231fdf74 100644 --- a/test/integration/targets/ios_banner/tests/cli/basic-motd.yaml +++ b/test/integration/targets/ios_banner/tests/cli/basic-motd.yaml @@ -24,8 +24,7 @@ - assert: that: - "result.changed == true" - - "'this is my motd banner' in result.commands" - - "'that has a multiline' in result.commands" + - "'banner motd @\nthis is my motd banner\nthat has a multiline\nstring\n@' in result.commands" - name: Set motd again (idempotent) ios_banner: