From 9f04d6713b715802343e2eda80d372e2477a7236 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Mon, 19 Oct 2020 23:59:32 -0700 Subject: [PATCH] fixed ansible_become_pass test, looks like regression on Ansible's end --- tests/ansible/integration/transport_config/become_pass.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/ansible/integration/transport_config/become_pass.yml b/tests/ansible/integration/transport_config/become_pass.yml index 02c6528d..a3dd7594 100644 --- a/tests/ansible/integration/transport_config/become_pass.yml +++ b/tests/ansible/integration/transport_config/become_pass.yml @@ -113,7 +113,8 @@ -# ansible_become_pass & ansible_become_password set, password takes precedence +# ansible_become_pass & ansible_become_password set, password used to take precedence +# but it's possible since https://github.com/ansible/ansible/pull/69629/files#r428376864, now it doesn't - hosts: tc-become-pass-both become: true tasks: @@ -124,7 +125,7 @@ - out.result|length == 2 - out.result[0].method == "ssh" - out.result[1].method == "sudo" - - out.result[1].kwargs.password == "a.b.c" + - out.result[1].kwargs.password == "c.b.a" # both, mitogen_via @@ -135,7 +136,7 @@ - {mitogen_get_stack: {}, register: out} - assert: that: - - out.result|length == 3 + - out.result|length == 4 - out.result[0].method == "ssh" - out.result[1].method == "sudo" - out.result[1].kwargs.password == "a.b.c"