From 8a1cd05fdce279198a8aad21a9775a6250c48086 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Thu, 29 Jun 2017 13:51:13 +0200 Subject: [PATCH] Assert vyos_user commands output against first element of array (#26233) --- test/integration/targets/vyos_user/tests/cli/basic.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/vyos_user/tests/cli/basic.yaml b/test/integration/targets/vyos_user/tests/cli/basic.yaml index e06619a56c8..e2d0716309b 100644 --- a/test/integration/targets/vyos_user/tests/cli/basic.yaml +++ b/test/integration/targets/vyos_user/tests/cli/basic.yaml @@ -10,8 +10,8 @@ - assert: that: - 'result.changed == true' - - '"set system login user" in result.commands' - - '"authentication plaintext-password" in result.commands' + - '"set system login user" in result.commands[0]' + - '"authentication plaintext-password" in result.commands[0]' - name: Collection of users (SetUp) vyos_user: