mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update test off make_become for ssh pty race mitigation (#15931)
This commit is contained in:
parent
97791f8b4e
commit
b41b6b2ec5
1 changed files with 1 additions and 0 deletions
|
@ -610,6 +610,7 @@ class TestActionBase(unittest.TestCase):
|
||||||
play_context = PlayContext()
|
play_context = PlayContext()
|
||||||
action_base = DerivedActionBase(None, None, play_context, None, None, None)
|
action_base = DerivedActionBase(None, None, play_context, None, None, None)
|
||||||
action_base._connection = MagicMock(exec_command=MagicMock(return_value=(0, '', '')))
|
action_base._connection = MagicMock(exec_command=MagicMock(return_value=(0, '', '')))
|
||||||
|
action_base._connection._shell = MagicMock(append_command=MagicMock(return_value=('JOINED CMD')))
|
||||||
|
|
||||||
play_context.become = True
|
play_context.become = True
|
||||||
play_context.become_user = play_context.remote_user = 'root'
|
play_context.become_user = play_context.remote_user = 'root'
|
||||||
|
|
Loading…
Reference in a new issue