[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 08:42:24 UTC 2015


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.

TL;DR: I think I have fixed a bug in integration test but I need someone 
to review the fix because I may not know what I'm doing.

-- 
Martin^3 Babinsky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0025-1-proper-client-host-setup-teardown-in-forced-client-r.patch
Type: text/x-patch
Size: 5516 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150331/cae683ac/attachment.bin>


More information about the Freeipa-devel mailing list