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:
Ricardo Carrillo Cruz 2017-07-25 17:21:53 +02:00 committed by GitHub
parent b9a2dc979f
commit 3a3bdde869
4 changed files with 99 additions and 50 deletions

View file

@ -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'))