mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
committed by
GitHub
parent
b9a2dc979f
commit
3a3bdde869
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user