mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -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
|
@ -1,2 +1,8 @@
|
|||
username admin secret 5 $1$mdQIUxjg$3t3lzBpfKfITKvFm1uEIY. group sysadmin
|
||||
username ansible secret 5 $1$3yWSXiIi$VdzV59ChiurrNdGxlDeAW/ group sysadmin
|
||||
username admin
|
||||
secret 5 $1$mdQIUxjg$3t3lzBpfKfITKvFm1uEIY.
|
||||
group sysadmin
|
||||
!
|
||||
username ansible
|
||||
secret 5 $1$3yWSXiIi$VdzV59ChiurrNdGxlDeAW/
|
||||
group sysadmin
|
||||
!
|
||||
|
|
|
@ -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