mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-14 13:09:11 -07:00
Add option to enter admin configuration mode in iosxr_user (#51430)
* Add admin mode to iosxr_user Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Update docs for admin option Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Fix review comment Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
parent
f0f23378db
commit
2f0c666b5b
2 changed files with 23 additions and 1 deletions
|
@ -87,3 +87,8 @@ class TestIosxrUserModule(TestIosxrModule):
|
|||
set_module_args(dict(name='ansible', configured_password='test', update_password='always'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['username ansible secret test'])
|
||||
|
||||
def test_iosxr_user_admin_mode(self):
|
||||
set_module_args(dict(name='ansible-2', configured_password='test-2', admin=True))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['username ansible-2', 'username ansible-2 secret test-2'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue