vyos_user fix idempotent (#26289)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-06-30 19:44:08 +05:30 committed by GitHub
parent 34589cee6d
commit 93bbcd8a32
3 changed files with 38 additions and 19 deletions

View file

@ -77,8 +77,7 @@ class TestVyosUserModule(TestVyosModule):
def test_vyos_user_update_password_on_create_ok(self):
set_module_args(dict(name='ansible', password='test', update_password='on_create'))
result = self.execute_module(changed=True)
self.assertEqual(result['commands'], ['set system login user ansible authentication plaintext-password test'])
self.execute_module()
def test_vyos_user_update_password_always(self):
set_module_args(dict(name='ansible', password='test', update_password='always'))