From b6c117ebdda8d39894bebcd2f70132da9b57f3a5 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Fri, 27 Oct 2017 22:04:25 +0530 Subject: [PATCH] eos_user testfix (#32264) * Fix eos_user tests (#32261) (cherry picked from commit be821845e206a8dd0a6a7f7a814e70f5edd3b039) * Add eos_user testfix to CHANGELOG Signed-off-by: Trishna Guha --- CHANGELOG.md | 2 ++ test/integration/targets/eos_user/tests/cli/basic.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa9ddc5901b..6fc57b6bafd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,6 +86,8 @@ Ansible Changes By Release (https://github.com/ansible/ansible/pull/32184) * Remove provider from ios integration test: (https://github.com/ansible/ansible/pull/31037) +* Fix eos_user tests + (https://github.com/ansible/ansible/pull/32261) diff --git a/test/integration/targets/eos_user/tests/cli/basic.yaml b/test/integration/targets/eos_user/tests/cli/basic.yaml index fe8bc9b5a67..381f25b4c71 100644 --- a/test/integration/targets/eos_user/tests/cli/basic.yaml +++ b/test/integration/targets/eos_user/tests/cli/basic.yaml @@ -60,11 +60,11 @@ that: - 'result.changed == true' - '"username" in result.commands[0]' - - '"role network-operator" in result.commands[0]' - - '"secret" in result.commands[1]' + - '"role network-operator" in result.commands[1]' + - '"secret" in result.commands[0]' - '"username" in result.commands[2]' - - '"role network-operator" in result.commands[2]' - - '"secret" in result.commands[3]' + - '"role network-operator" in result.commands[3]' + - '"secret" in result.commands[2]' - name: Add user without password or nopassword arg(Should fail) eos_user: