mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-16 14:09:12 -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
|
@ -108,9 +108,9 @@ class TestIosConfigModule(TestIosModule):
|
|||
self.assertEqual(self.get_config.call_count, 0)
|
||||
self.assertEqual(self.conn.edit_config.call_count, 0)
|
||||
|
||||
def test_ios_config_save(self):
|
||||
def test_ios_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