diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-10-16 07:39:51 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-03-25 16:54:55 +0100 |
commit | d5e35f92a55d4e80d13ce157a8aa8f36276ad327 (patch) | |
tree | e714679ab1a77a92c2157f129076d41566387da8 /ipatests | |
parent | bab88eb1ed440d1e62eb59e32c4d22fa178f4869 (diff) | |
download | freeipa-d5e35f92a55d4e80d13ce157a8aa8f36276ad327.tar.gz freeipa-d5e35f92a55d4e80d13ce157a8aa8f36276ad327.tar.xz freeipa-d5e35f92a55d4e80d13ce157a8aa8f36276ad327.zip |
Update pkcs10 module functions to always load CSRs and allow selecting format.
This change makes the pkcs10 module more consistent with the x509 module.
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r-- | ipatests/test_pkcs10/test_pkcs10.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ipatests/test_pkcs10/test_pkcs10.py b/ipatests/test_pkcs10/test_pkcs10.py index 6b3534b33..c56c8d474 100644 --- a/ipatests/test_pkcs10/test_pkcs10.py +++ b/ipatests/test_pkcs10/test_pkcs10.py @@ -54,9 +54,8 @@ class test_update(object): Test simple CSR with no attributes """ csr = self.read_file("test0.csr") - request = pkcs10.load_certificate_request(csr) - subject = pkcs10.get_subject(request) + subject = pkcs10.get_subject(csr) assert(subject.common_name == 'test.example.com') assert(subject.state_name == 'California') @@ -69,7 +68,7 @@ class test_update(object): csr = self.read_file("test1.csr") request = pkcs10.load_certificate_request(csr) - subject = pkcs10.get_subject(request) + subject = request.subject assert(subject.common_name == 'test.example.com') assert(subject.state_name == 'California') @@ -86,7 +85,7 @@ class test_update(object): csr = self.read_file("test2.csr") request = pkcs10.load_certificate_request(csr) - subject = pkcs10.get_subject(request) + subject = request.subject assert(subject.common_name == 'test.example.com') assert(subject.state_name == 'California') |