mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix test_play_context fail with local config. (#17596)
If the current ansible enviroment has a config setup that doesn't use 'smart' as the configured transport test_play_context would fail when it assumes the transport will be 'smart'.
This commit is contained in:
parent
2b37bd8e67
commit
17738e6b73
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class TestPlayContext(unittest.TestCase):
|
|||
def test_play_context(self):
|
||||
(options, args) = self._parser.parse_args(['-vv', '--check'])
|
||||
play_context = PlayContext(options=options)
|
||||
self.assertEqual(play_context.connection, 'smart')
|
||||
self.assertEqual(play_context.connection, C.DEFAULT_TRANSPORT)
|
||||
self.assertEqual(play_context.remote_addr, None)
|
||||
self.assertEqual(play_context.remote_user, None)
|
||||
self.assertEqual(play_context.password, '')
|
||||
|
|
Loading…
Reference in a new issue