mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Extreme Networks SLXOS Config Module (#38607)
* Adding slxos_config module and supporing util functions. * Adding slxos module_utils load_config test * Adding slxos_config module tests * Removing unneeded required false statements from slxos_config module * Removing version_aded from slxos_config module * Removing force and save from slxos config module * Removing save test
This commit is contained in:
committed by
John R Barker
parent
fee55b41fe
commit
d030032b47
@@ -129,3 +129,21 @@ class TestPluginCLIConfSLXOS(unittest.TestCase):
|
||||
module.slxos_connection.get.assert_has_calls(calls)
|
||||
|
||||
self.assertEqual(responses, run_command_responses)
|
||||
|
||||
@patch('ansible.module_utils.network.slxos.slxos.Connection')
|
||||
def test_load_config(self, connection):
|
||||
""" Test load_config
|
||||
"""
|
||||
module = MagicMock()
|
||||
|
||||
commands = [
|
||||
'what does it take',
|
||||
'to be',
|
||||
'number one?',
|
||||
'two is not a winner',
|
||||
'and three nobody remember',
|
||||
]
|
||||
|
||||
slxos.load_config(module, commands)
|
||||
|
||||
module.slxos_connection.edit_config.assert_called_once_with(commands)
|
||||
|
||||
Reference in New Issue
Block a user