mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-23 09:29:08 -07:00
Remove deprecated options from modules (#50246)
* Remove deprecated options from modules * Update tests * Add porting guide notes
This commit is contained in:
parent
7f2b9a8a31
commit
9702893729
11 changed files with 25 additions and 121 deletions
|
@ -199,9 +199,9 @@ class TestEosConfigModule(TestEosModule):
|
|||
self.assertEqual(self.get_config.call_count, 0)
|
||||
self.assertEqual(self.load_config.call_count, 0)
|
||||
|
||||
def test_eos_config_save(self):
|
||||
def test_eos_config_save_always(self):
|
||||
self.run_commands.return_value = "hostname foo"
|
||||
set_module_args(dict(save=True))
|
||||
set_module_args(dict(save_when='always'))
|
||||
self.execute_module(changed=True)
|
||||
self.assertEqual(self.run_commands.call_count, 1)
|
||||
self.assertEqual(self.get_config.call_count, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue