diff options
author | David Newswanger <gamma.dave@gmail.com> | 2017-08-17 09:36:44 -0400 |
---|---|---|
committer | Trishna Guha <trishnaguha17@gmail.com> | 2017-08-17 19:06:44 +0530 |
commit | b818e986b6c3998e590853471a6d87a52de7a498 (patch) | |
tree | 0237a020498d20cfdc815e02939d2537e4359065 /test/units/modules/network/eos/test_eos_user.py | |
parent | b1d297d1443c79e88ad0a5a4333aa2d8d4b2a982 (diff) | |
download | ansible-b818e986b6c3998e590853471a6d87a52de7a498.tar.gz |
Change network *_user modules to use configured_password to set a users password (#28187)
* WIP, update eos_user args
* refactor password for ios_user
* add eos tests, fix ios tests
* fixed password check
* refactor iosxr_user password
* fixed password arg for nxos
* [WIP] fix vyos_user password
* fix vyos tests
* update docs for net_user
* fix typo
* fix eos tests
* add warning when attempting to use password arg
* fix sanity/unit tests
* fix eos unit tests
* fix vyos_user aggregate
* fix typo in eos documentation string
* re add configured_password to vyos tests after rebase
Diffstat (limited to 'test/units/modules/network/eos/test_eos_user.py')
-rw-r--r-- | test/units/modules/network/eos/test_eos_user.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/units/modules/network/eos/test_eos_user.py b/test/units/modules/network/eos/test_eos_user.py index 9dd5d03635..5d19ecaa2f 100644 --- a/test/units/modules/network/eos/test_eos_user.py +++ b/test/units/modules/network/eos/test_eos_user.py @@ -54,7 +54,7 @@ class TestEosUserModule(TestEosModule): self.execute_module(changed=True, commands=commands) def test_eos_user_password(self): - set_module_args(dict(name='ansible', password='test')) + set_module_args(dict(name='ansible', configured_password='test')) commands = ['username ansible secret test'] self.execute_module(changed=True, commands=commands) @@ -83,15 +83,15 @@ class TestEosUserModule(TestEosModule): self.execute_module(changed=True, commands=commands) def test_eos_user_update_password_changed(self): - set_module_args(dict(name='test', password='test', update_password='on_create')) + set_module_args(dict(name='test', configured_password='test', update_password='on_create')) commands = ['username test secret test'] self.execute_module(changed=True, commands=commands) def test_eos_user_update_password_on_create_ok(self): - set_module_args(dict(name='ansible', password='test', update_password='on_create')) + set_module_args(dict(name='ansible', configured_password='test', update_password='on_create')) self.execute_module() def test_eos_user_update_password_always(self): - set_module_args(dict(name='ansible', password='test', update_password='always')) + set_module_args(dict(name='ansible', configured_password='test', update_password='always')) commands = ['username ansible secret test'] self.execute_module(changed=True, commands=commands) |