URL:
https://github.com/freeipa/freeipa/pull/900
Author: Tiboris
Title: #900: whoami.py: type error when running test
Action: opened
PR body:
"""
While writing xmlrpc test for this plugin I bumped into:
TypeError: whoami.validate_output():
output['arguments']: need (<type 'list'>,); got <type
'tuple'>: (u'krb_staged_user',)
After change in
[
whoami.py](https://github.com/freeipa/freeipa/blob/master/ipaserver/plugi...
:
``` python
output.Output('arguments', list, _('Arguments to details function')),
```
to:
``` python
output.Output('arguments', tuple, _('Arguments to details function')),
```
invoking command whoami fails with output **InternalError: an internal error has
occurred**
@stlaz suggested changes which are in this PR.
With these changes _whoami.validate_output()_ does not throw error and tests continue
where they should.
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/900/head:pr900
git checkout pr900