[SSSD] Data dir and cwrap tests

Nikolai Kondrashov Nikolai.Kondrashov at redhat.com
Mon Jan 5 15:32:25 UTC 2015


On 01/05/2015 05:23 PM, Jakub Hrozek wrote:
> On Mon, Jan 05, 2015 at 03:41:21PM +0200, Nikolai Kondrashov wrote:
>> On 12/19/2014 01:34 AM, Lukas Slebodnik wrote:
>>> How will be done setup/teardown of OpenLDAP/SSSD (pytest?)
>>
>> Forgot to mention sssd setup. I think we can do sssd setup/teardown directly
>> in pytest fixture setup/teardown, as required by each test or test suite.
>> We'll likely need many different sssd configurations, whereas one (possibly
>> lengthy) configuration of OpenLDAP will be sufficient.
>>
>> Each test could also have specific directory population/cleanup in its
>> (shared) fixture.
>>
>> Nick
>
> per-test configurations will magically get easier once we support
> include directives for config files.

Hmm, yes, probably.

BTW, one trick I used in QA was to just add repeated sections with repeated
options, overriding previous ones to the end of the shared configuration, in
specific tests.

Like this:

     # Added by general setup
     [domain/LDAP]
     enumerate = false
     # Some more domain options

     . . .

     # Added by a subtest
     [domain/LDAP]
     enumerate = true

Is this officially supported / planned to work in the future?

Nick



More information about the sssd-devel mailing list