roll up of fixes for eos modules (#21406)

* fixes issue with load_provider() not checking for an existing key
* adds updates to eos_config results key
* lots of minor syntax fixes in eos shared module
* adds eos_argument_spec to eos_eapi

fixes #21402
This commit is contained in:
Peter Sprygada 2017-02-14 13:47:29 -05:00 committed by John R Barker
parent e1761d7724
commit e1a2c6e1d3
7 changed files with 36 additions and 23 deletions

View file

@ -50,7 +50,7 @@ class TestEosEapiModule(TestEosModule):
output = list()
for cmd in commands:
output.append(load_fixture(self.command_fixtures[cmd]))
return (0, output, '')
return output
self.run_commands.side_effect = run_commands
self.load_config.return_value = dict(diff=None, session='session')
@ -86,9 +86,9 @@ class TestEosEapiModule(TestEosModule):
self.start_configured(changed=True, commands=commands)
def test_eos_eapi_http_invalid(self):
set_module_args(dict(port=80000))
set_module_args(dict(http_port=80000))
commands = []
self.start_unconfigured(failed=True)
self.start_unconfigured(failed=True, commands=commands)
def test_eos_eapi_https_enable(self):
set_module_args(dict(https=True))