[Freeipa-devel] [PATCH] 0257 Add initial CA-less installation tests
Jan Cholasta
jcholast at redhat.com
Wed Aug 28 16:24:44 UTC 2013
On 28.8.2013 17:15, Petr Viktorin wrote:
> On 08/28/2013 03:23 PM, Jan Cholasta wrote:
>> Thanks.
>>
>> The service-disable and host-disable tests fail with AlreadyInactive,
>> because the certificate is removed with service-mod and host-mod in
>> earlier tests. I think the service and host command tests should look
>> like this:
>>
>> 1. Verify that {service,host}-del does not attempt to revoke
>> {host,service}'s certificate
>> {service,host}-add
>> {service,host}-del
>>
>> 2. Verify that {service,host}-mod does not attempt to revoke
>> {host,service}'s certificate
>> {service,host}-add
>> {service,host}-mod
>> {service,host}-del
>>
>> 3. Verify that {service,host}-disable does not attempt to revoke
>> {host,service}'s certificate
>> {service,host}-add
>> {service,host}-disable
>> {service,host}-del
>
> Fixed. I've used context managers so the -del isn't skipped when there's
> an error.
>
>> There are a few wrong docstrings:
>>
>> + def test_service_mod_doesnt_revoke(self):
>> + "Verify that service-mod does not attempt to revoke host's
>> certificate"
>>
>> + def test_service_del_doesnt_revoke(self):
>> + "Verify that service-del does not attempt to revoke host's
>> certificate"
>>
>> + def test_ds_san(self):
>> + "Install new HTTP certificate with SAN"
>>
>
> Fixed.
The TestIPACommands.service context manager does not call service-del.
TestCertInstall.test_ds_san docstring still says "HTTP" instead of "DS".
>
> Thanks for the review, fixed patch attached.
> The service-disable test still fails, due to
> https://fedorahosted.org/freeipa/ticket/3886.
>
OK.
--
Jan Cholasta
More information about the Freeipa-devel
mailing list