[Freeipa-devel] [PATCH 0014-0016][Tests] Authentication indicators
Milan Kubík
mkubik at redhat.com
Fri Jul 8 12:24:41 UTC 2016
On 07/01/2016 05:13 PM, Lenka Doudova wrote:
>
>
>
> On 07/01/2016 02:42 PM, Milan Kubík wrote:
>> On 06/16/2016 03:23 PM, Lenka Doudova wrote:
>>> Hi,
>>>
>>> attached are tests for authentication indicators. Please note:
>>>
>>> 1. newly created service tracker is not exactly complete, list of
>>> unimplemented methods is in doc. These methods can be filled in when
>>> existing declarative tests are refactored.
>>>
>>> 2. patch 0015 depends on 0014, so it should not be pushed without it.
>>>
>>>
>>> Lenka
>>>
>>>
>>>
>>
>> patch 0014:
>>
>> In the update method, what happens when the updated attributes
>> contain addattr? It is not clear to me. Is it necessary?
>>
> Example:
> ipa service-mod SRV --addattr="authind=radius"
>
> Result:
> The way the tracker works, this adds /u'addattr="authind=radius"'/
> to the list of expected results (result of
> /self.attrs.update(updates)/. Of course nothing like that appears
> anywhere, so in case there's the /--addattr/ option, it's necessary to
> ensure it won't get to the /self.attrs/ atribute.
>
>> patch 0015:
>>
>> host1 and service2 do not tell anything about the purpose of the
>> fixture. Please assign more descriptive names to them.
>> Why do the fixtures have 'function' scope? Does the service entry
>> exist during the second and third test case?
>>
> Renamed.
>>
>> patch 0016:
>>
>> Per offline discussion, admin user has no special privileges here, LGTM.
>>
>> --
>> Milan Kubik
>
> Thanks for review, fixed patches (14.2 and 15.2) attached.
> Lenka
NACK,
the update method of ServiceTracker creates the entry if it doesn't
exist. Why? I know the base class has this problem also [1], though.
Given this will be addressed, the fixtures in the xmlrpc test will fail
since the fixture scope is wrong - function instead of class.
[1]: https://fedorahosted.org/freeipa/ticket/6045
--
Milan Kubik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160708/7d3db11b/attachment.htm>
More information about the Freeipa-devel
mailing list