diff options
author | Nilashish Chakraborty <nilashishchakraborty8@gmail.com> | 2019-01-30 15:37:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 15:37:28 +0530 |
commit | 2f0c666b5b3a7449047d2f76695b9a10e402f518 (patch) | |
tree | 8731d8f3bd95d009368fc5e72e6c9a582991ecf1 /test/units/modules | |
parent | f0f23378dbb74b707d3ac30fbe2aed4b68e0d28d (diff) | |
download | ansible-2f0c666b5b3a7449047d2f76695b9a10e402f518.tar.gz |
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>
Diffstat (limited to 'test/units/modules')
-rw-r--r-- | test/units/modules/network/iosxr/test_iosxr_user.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/modules/network/iosxr/test_iosxr_user.py b/test/units/modules/network/iosxr/test_iosxr_user.py index 3c07f89680..755520fffd 100644 --- a/test/units/modules/network/iosxr/test_iosxr_user.py +++ b/test/units/modules/network/iosxr/test_iosxr_user.py @@ -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']) |