mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07: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:
parent
fee55b41fe
commit
d030032b47
6 changed files with 733 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue