[Freeipa-devel] [PATCHES] 0282-0286 Test improvements

Petr Vobornik pvoborni at redhat.com
Thu Oct 3 16:50:38 UTC 2013


On 09/24/2013 05:42 PM, Petr Viktorin wrote:
> Hello,
> These patches fix issues in the test suite, mainly those in BeakerLib
> integration.
>
>
> Patch 0282:
> When requested logs don't exist, tests shouldn't fail. The BeakerLib
> plugin was too strict here.
>
> Patch 0283:
> The Ordered plugin does not play well with generators: the generated
> tests are run, but they're not reported plugins' hooks (startTest etc.).
> I spent some time looking for ways to correct this, but was unsuccessful.
> The patch disables ordering for test generators (relative to the methods
> of a class -- the tests from one generator still run in the generated
> order).
> With this the BeakerLib plugin will report generated tests.
>
> Patch 0284:
> This adds arguments to "test names" that the BeakerLib plugin gives to
> generated tests.
> The patch only adds the names to the integration tests. As it becomes
> possible to run the rest of the suite out-of-tree, I can add them to the
> other test generators as well.
>
> Patch 0285:
> This just adds logging to Host.ldap_connect.
>
> Patch 0285:
> Correct the CLITestContext context manager used in help tests to
> re-raise unexpected exceptions.
>
>
> Except 0283/0284, these can be reviewed/applied individually.
>

ACK for 0282, 0283, 0284, 0286

NACK for 0285 - this patch has two issues:
- doesn't apply on top of paramiko patches (pvi-0278)
- has incorrect log usage: self.log("something") instead of 
self.log.debug("something") or self.log.info("something"), ...

Attaching patch which replaces 0285 and applies on top of pviktorin-0278.

-- 
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0461-ipatests.test_integration.host-Add-logging-to-ldap_c.patch
Type: text/x-patch
Size: 1191 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20131003/a22f08f1/attachment.bin>


More information about the Freeipa-devel mailing list