mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-07 17:51:29 -07:00
Update iosxr cliconf plugin (#43837)
* Update iosxr cliconf plugin Fixes #39056 * Update iosxr cliconf plugin * Modify iosxr module_utils code to support refactored cliconf plugin api's * Other minor changes * Fix unit test failure * Update ios, eos, nxos plugin for diff * Fix review comment
This commit is contained in:
parent
7b1cc11685
commit
d1de1e0449
14 changed files with 217 additions and 153 deletions
|
@ -34,14 +34,14 @@ class TestIosxrFacts(TestIosxrModule):
|
|||
def setUp(self):
|
||||
super(TestIosxrFacts, self).setUp()
|
||||
|
||||
self.mock_run_command = patch(
|
||||
'ansible.modules.network.iosxr.iosxr_facts.run_command')
|
||||
self.run_command = self.mock_run_command.start()
|
||||
self.mock_run_commands = patch(
|
||||
'ansible.modules.network.iosxr.iosxr_facts.run_commands')
|
||||
self.run_commands = self.mock_run_commands.start()
|
||||
|
||||
def tearDown(self):
|
||||
super(TestIosxrFacts, self).tearDown()
|
||||
|
||||
self.mock_run_command.stop()
|
||||
self.mock_run_commands.stop()
|
||||
|
||||
def load_fixtures(self, commands=None):
|
||||
|
||||
|
@ -61,7 +61,7 @@ class TestIosxrFacts(TestIosxrModule):
|
|||
output.append(load_fixture(filename))
|
||||
return output
|
||||
|
||||
self.run_command.side_effect = load_from_file
|
||||
self.run_commands.side_effect = load_from_file
|
||||
|
||||
def test_iosxr_facts_gather_subset_default(self):
|
||||
set_module_args(dict())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue