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

Petr Viktorin pviktori at redhat.com
Tue Mar 31 10:06:56 UTC 2015


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.


-- 
Petr Viktorin




More information about the Freeipa-devel mailing list