[Freeipa-devel] [PATCH 0025] proper client host setup/teardown in forced client reenrollment integration test suite

Martin Babinsky mbabinsk at redhat.com
Tue Mar 31 14:01:03 UTC 2015


On 03/31/2015 12:06 PM, Petr Viktorin wrote:
> On 03/31/2015 10:42 AM, Martin Babinsky wrote:
>> During the investigation of https://fedorahosted.org/freeipa/ticket/4614
>> I discovered a bug (?) in forced client reenrollment integration test.
>>
>> During test scenario, master and replica are setup correctly at the
>> beginning of the test, but the client is never setup resulting in a
>> couple of tracebacks.
>>
>> After some investigation I realized that the setUp/tearDown methods are
>> actually never called because they are supposed to be inherited from
>> unittest.TestCase. However, IntegrationTest no longer inherits from this
>> class, hence the bug.
>>
>> I have tried to fix this by adding a fixture which runs client
>> fixup/teardown and doing some other small modifications. Tests now work
>> as expected, but I need a review from QE guys or someone well-versed in
>> pytest framework.
>
> LGTM, from a quick glance.
>
>
Thank Petr, anyone else has some opinion on this?

-- 
Martin^3 Babinsky




More information about the Freeipa-devel mailing list