diff options
author | Kate Case <ncase@redhat.com> | 2022-08-31 13:22:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 12:22:59 -0500 |
commit | f75ecde228c2dd36d9bd3d0987c61d2433516505 (patch) | |
tree | 615a3fd3d1444a1f1122696632942bf6f184ee75 /test | |
parent | 702eadf21bfb0ef341febd6abf5d8cd85cc494fa (diff) | |
download | ansible-f75ecde228c2dd36d9bd3d0987c61d2433516505.tar.gz |
Replace get_persistent_connection_options in task_executor with get_options (#74446) (#78590)
Replace get_persistent_connection_options with get_options
Remove special case for network sub_plugin in _set_plugin_options
Try to avoid mock connection pretending to be persistent
Rename variables->options to reflect what they actually are
Gather options for ssh_type_conn on network_cli
Drop reliance on sub_plugin["type"]
(cherry picked from commit bf1ef5a1f3562c9a59168adbc78750304c3e4309)
Diffstat (limited to 'test')
-rw-r--r-- | test/units/executor/test_task_executor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/units/executor/test_task_executor.py b/test/units/executor/test_task_executor.py index 003cedeece..f71629781f 100644 --- a/test/units/executor/test_task_executor.py +++ b/test/units/executor/test_task_executor.py @@ -334,6 +334,8 @@ class TestTaskExecutor(unittest.TestCase): mock_play_context.update_vars.return_value = None mock_connection = MagicMock() + mock_connection.force_persistence = False + mock_connection.supports_persistence = False mock_connection.set_host_overrides.return_value = None mock_connection._connect.return_value = None |