mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -07:00
Fix multiple code and test issues on iosxr (#27267)
* Fix multiple code and test issues on iosxr It passes the integration tests now. Fixes #27123 * Fix pep8 issue * Fix unit tests
This commit is contained in:
parent
b9a2dc979f
commit
3a3bdde869
4 changed files with 99 additions and 50 deletions
|
@ -68,7 +68,8 @@ class TestIosxrUserModule(TestIosxrModule):
|
|||
def test_iosxr_user_update_password_changed(self):
|
||||
set_module_args(dict(name='test', password='test', update_password='on_create'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['username test secret test'])
|
||||
self.assertEqual(result['commands'],
|
||||
['username test', 'username test secret test'])
|
||||
|
||||
def test_iosxr_user_update_password_on_create_ok(self):
|
||||
set_module_args(dict(name='ansible', password='test', update_password='on_create'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue