1
0
Fork 0
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:
Adrian Likins 2016-11-17 12:25:39 -05:00 committed by GitHub
parent 2b37bd8e67
commit 17738e6b73

View file

@ -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, '')