diff options
| author | Ben Lipton <blipton@redhat.com> | 2016-09-08 18:29:46 -0400 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2017-01-31 10:20:28 +0100 |
| commit | a26cf0d7910dd4c0a4da08682b4be8d3d94ba520 (patch) | |
| tree | 7a77884bd6a7a03a4630a3b819945ac2433063b7 /ipaclient/plugins | |
| parent | afd7c05d11432304bfdf183832a21d419f363689 (diff) | |
| download | freeipa-a26cf0d7910dd4c0a4da08682b4be8d3d94ba520.tar.gz freeipa-a26cf0d7910dd4c0a4da08682b4be8d3d94ba520.tar.xz freeipa-a26cf0d7910dd4c0a4da08682b4be8d3d94ba520.zip | |
tests: Add tests for CSR autogeneration
This patch also contains some code changes to make the code easier to
test and to make the tests pass.
https://fedorahosted.org/freeipa/ticket/4899
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaclient/plugins')
| -rw-r--r-- | ipaclient/plugins/csrgen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaclient/plugins/csrgen.py b/ipaclient/plugins/csrgen.py index 0ad5fa1ff..0669a4775 100644 --- a/ipaclient/plugins/csrgen.py +++ b/ipaclient/plugins/csrgen.py @@ -96,11 +96,12 @@ class cert_get_requestdata(Local): raise errors.NotFound( reason=_("The principal for this request doesn't exist.")) principal_obj = principal_obj['result'] + config = api.Command.config_show()['result'] generator = CSRGenerator(FileRuleProvider()) script = generator.csr_script( - principal_obj, profile_id, helper) + principal_obj, config, profile_id, helper) result = {} if 'out' in options: |
