1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix ios_command unit testcase (#20031)

This commit is contained in:
Ganesh Nalawade 2017-01-09 22:58:32 +05:30 committed by Peter Sprygada
parent fb3bef7f46
commit 0305da6d6a

View file

@ -132,7 +132,7 @@ class test_iosCommandModule(unittest.TestCase):
def test_ios_command_match_all(self): def test_ios_command_match_all(self):
wait_for = ['result[0] contains "Cisco IOS"', wait_for = ['result[0] contains "Cisco IOS"',
'result[0] contains "IOSv Software"'] 'result[0] contains "IOSv Software"']
set_module_args(dict(commands=['show version'], wait_for=wait_for, match='any')) set_module_args(dict(commands=['show version'], wait_for=wait_for, match='all'))
self.execute_module() self.execute_module()
def test_ios_command_match_all_failure(self): def test_ios_command_match_all_failure(self):