mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Detects errors in bigip_config (#34965)
There are changes that the merge config can fail, but the module will still report success. This adds a blob of code to start collecting those failures and bubbling up a module failure accordingly.
This commit is contained in:
@@ -100,12 +100,12 @@ class TestManager(unittest.TestCase):
|
||||
|
||||
# Override methods to force specific logic in the module to happen
|
||||
mm.exit_json = Mock(return_value=True)
|
||||
mm.reset_device = Mock(return_value=True)
|
||||
mm.reset_device = Mock(return_value='reset output')
|
||||
mm.upload_to_device = Mock(return_value=True)
|
||||
mm.move_on_device = Mock(return_value=True)
|
||||
mm.merge_on_device = Mock(return_value=True)
|
||||
mm.merge_on_device = Mock(return_value='merge output')
|
||||
mm.remove_temporary_file = Mock(return_value=True)
|
||||
mm.save_on_device = Mock(return_value=True)
|
||||
mm.save_on_device = Mock(return_value='save output')
|
||||
|
||||
results = mm.exec_module()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user