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

Petr Viktorin pviktori at redhat.com
Wed Aug 28 17:39:25 UTC 2013


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.

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

Fixed


-- 
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0257.6-Add-CA-less-install-tests.patch
Type: text/x-patch
Size: 60575 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20130828/a1c1129e/attachment.bin>


More information about the Freeipa-devel mailing list