[Freeipa-devel] [PATCH] 0257 Add initial CA-less installation tests

Jan Cholasta jcholast at redhat.com
Wed Aug 28 18:10:35 UTC 2013


On 28.8.2013 19:39, Petr Viktorin wrote:
> On 08/28/2013 06:24 PM, Jan Cholasta wrote:
>> 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.
>
> That's not necessary, deleting the host deletes all its services.

Ah, I missed the "with self.host()" part. How silly of me.

>
>> TestCertInstall.test_ds_san docstring still says "HTTP" instead of "DS".
>
> Fixed
>

ACK!

-- 
Jan Cholasta




More information about the Freeipa-devel mailing list