[SSSD] Data dir and cwrap tests

Jakub Hrozek jhrozek at redhat.com
Mon Jan 5 15:36:34 UTC 2015


On Mon, Jan 05, 2015 at 05:32:25PM +0200, Nikolai Kondrashov wrote:
> 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

I think Dmitri had some plans as per "merging strategies" but I think
the current one makes the most sense as a default, even if it was just
to keep backwards-compatibility.



More information about the sssd-devel mailing list