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:
Matthew Stone 2018-04-20 02:52:20 -05:00 committed by John R Barker
parent fee55b41fe
commit d030032b47
6 changed files with 733 additions and 0 deletions

View file

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